POSIX getent syscalls in python
Project description
Python interface to the POSIX getent family of commands (getpwent, getgrent, getnetent, etc.)
Usage
Here a few examples.
Load the interface:
>>> import pygetent as getent
Doing a passwd lookup:
>>> print dict(getent.passwd('root'))
{'dir': '/root',
'gecos': 'root',
'gid': 0,
'name': 'root',
'password': 'x',
'shell': '/bin/bash',
'uid': 0}
Doing a group lookup:
>>> print dict(getent.group('root'))
{'gid': 0, 'members': [], 'name': 'root', 'password': 'x'}
Bugs
Please use the bug tracker at GitHub for bugs or feature requests.
Build status
Why was this forked?
- Originally forked from https://github.com/tehmaze/getent. This fork was created since
the original repository is now archived
The package published to pypi has a broken setup.py, which leads to installation failure. This was due to the file() function being called on this very Readme. While the original repository reflects an update that uses ‘read()`, the PyPi source has not been updated. This repository exists to republish to PyPI
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygetent-0.1.tar.gz.
File metadata
- Download URL: pygetent-0.1.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e51313e0204021682faf22d7082b36cf01da9775e4918a11b25659a6e6b256b
|
|
| MD5 |
de91abbc8762b58e10ffa2d3dcb110fd
|
|
| BLAKE2b-256 |
febaa18a943ffc4144dd828383cdb6e1306814f3bb38eb1027e33a5f4df8a11e
|
File details
Details for the file pygetent-0.1-py3-none-any.whl.
File metadata
- Download URL: pygetent-0.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2044454629034dde81fa0f0311c7a4d5826642e8b227892510aa78ef9f01d9b
|
|
| MD5 |
e54fb00833444009792069a7c571a7db
|
|
| BLAKE2b-256 |
b3ab8e4bef8e92aaee3f10a0759cb27993c4bc6a7edc786e54969791304cc2f9
|