public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* python + XATTRs under cygwin?
@ 2023-05-16 21:06 Philippe Cerfon
  2023-05-30  1:37 ` set XATTR_SIZE_MAX and XATTR_LIST_MAX in cygwin/limits.h (was: python + XATTRs under cygwin?) Philippe Cerfon
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Cerfon @ 2023-05-16 21:06 UTC (permalink / raw)
  To: cygwin

Hey there.

Is there any known way to use XATTRs (which Cygwin seems to support in
some way, at least the standard attr(1) tool seems to work and somehow
map them into the Windows world) with Python?

The `os` module of Python3 (>3.3) comes with:
os.getxattr()
os.listxattr()
os.removexattr()
os.setxattr()
(see https://docs.python.org/3/library/os.html#linux-extended-attributes)
but these seem to be missing from the Cygwin python packages.

There is even an upstream bug
(https://github.com/python/cpython/issues/90026) about this, which has
however been closed (not because it would be fixed, but because Cygwin
is no officially maintained platform).


There are two external python modules that support xattrs:
python-xattr (https://github.com/xattr/xattr)
python-pyxattr (https://pyxattr.k1024.org/)
but neither seems to be available in Cygwin.


Any ideas or change to get one of these (ideally the ones from os) running?

Thanks,
Philippe

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-23  3:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16 21:06 python + XATTRs under cygwin? Philippe Cerfon
2023-05-30  1:37 ` set XATTR_SIZE_MAX and XATTR_LIST_MAX in cygwin/limits.h (was: python + XATTRs under cygwin?) Philippe Cerfon
2023-05-30 11:28   ` Philippe Cerfon
2023-05-30 11:42     ` marco atzeri
2023-05-30 12:04       ` Philippe Cerfon
2023-12-22  4:45     ` set XATTR_SIZE_MAX and XATTR_LIST_MAX in cygwin/limits.h Marco Atzeri
2023-12-22 20:33       ` Philippe Cerfon
2023-12-23  3:56         ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).