Replies: 2 comments
-
More details about all of this:pyxattr library
(obsolete?) quote from its developer (email, 2024-10):
xattr library
Native to MacOS; Here's a quote from an email dialogue with the original developers of xattr and pyxattr (2024-10-06):
Built-in Python.OS xattr methods:
I'm currently using this library without issues (on Debian/Ubuntu, Python 3.8). The official Python.OS documentation says about its xattrs-methods:
Some remarks on value-encoding differences between "xattr vs os xattr methods? (issue #121, github:xattr). As long as the key/value size stays below 4k (tested on ext4, zfs, btrfs), all works flawlessly! |
Beta Was this translation helpful? Give feedback.
-
About handling "larger" (>4kB) xattrs in practiceHere are some things I ran into, using the native Python.OS xattr methods to write larger xattr values.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
AFAIK there are currently 3 options mentioned to be usable for
xattr-handling in python.Listed here in order of historical appearance:
(by Iustin Pop, 2002)
(by Bob Ippolito, 2004)
(since Python v3.3, Sept. 2012)
I'm writing down here what I found out about these, so if someone else (or me again) wants to know which one to use/prefer when and why.
Which one to use?
python.so methods:
Use for nice and quick linux-only (at the moment) code.
xattr:
pyxattr:
Very possibly superseded by
xattr, since they both provides the same functionalities - yetxattris the more popular choice, and more likely to cause less issues on MacOS.Beta Was this translation helpful? Give feedback.
All reactions