Skip to main content

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

Release files for ruamel.nss 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ruamel.nss 0.1.5
File Size Uploaded
ruamel.nss-0.1.5.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ruamel.nss 0.1.5
File Interpreter ABI Platform
ruamel.nss-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / ruamel.nss-0.1.5.tar.gz

Download URL ruamel.nss-0.1.5.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
975230f2195ee1299da4683f5ab0cb3d93606b9d27c534c75c1d2b1e3dc8baa8
BLAKE2b-256 checksum
How to use checksums
b8e2c98e1a551b0d8deec26a2d4a4a84f8df1b96d4af6a77e509f32bd1046010
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ruamel.nss-0.1.5-py3-none-any.whl

Download URL ruamel.nss-0.1.5-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0af13599ffd321dc6896ffe4450c0ff1dcf94a190b783dce1633994c9c4b7e33
BLAKE2b-256 checksum
How to use checksums
cbf303fdbea64ff06de3285390fc30cad7e8e5445fedcc0bf833d2967f991e1e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.2

1 release file

0.1.0

1 release file

0.1.0.dev0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page