managing passwd, group and shadow under /etc, /usr/lib/extrausers, etc.
Project description
the standard library pwd, grp and spwd are hard wired to use /etc/passwd, /etc/group and /etc/shadow respectively.
That makes them useless for managing these files when they reside somewhere else, which is e.g. the case when using libnss.
This library reimplements the functionality by creating three classes that default to opening the files under /etc, but which can be given explicit paths.
The original module level routines are now methods on the instances that return named tuples with the fieldnames being the same as those from the stdlib modules.
This library uses the new (corrected) names for the fields. In particular sp_namep and sp_pwdp as used in Python 3 instead of the versions without trailing p from 2.7
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ruamel.nss-0.1.5.tar.gz
.
File metadata
- Download URL: ruamel.nss-0.1.5.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 975230f2195ee1299da4683f5ab0cb3d93606b9d27c534c75c1d2b1e3dc8baa8 |
|
MD5 | c80addbf4c82651bd71164591deaa90d |
|
BLAKE2b-256 | b8e2c98e1a551b0d8deec26a2d4a4a84f8df1b96d4af6a77e509f32bd1046010 |
File details
Details for the file ruamel.nss-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: ruamel.nss-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af13599ffd321dc6896ffe4450c0ff1dcf94a190b783dce1633994c9c4b7e33 |
|
MD5 | d56bd95b3f7ada037263ca4f1a2c7418 |
|
BLAKE2b-256 | cbf303fdbea64ff06de3285390fc30cad7e8e5445fedcc0bf833d2967f991e1e |