Python interface to the POSIX getent family of commands
Project description
fork
This is fork of https://github.com/tehmaze/getent
The goal is to make it installable from pypi.
getent
Python interface to the POSIX getent family of commands (getpwent, getgrent, getnetent, etc.)
Usage
Here a few examples.
Load the interface:
>>> import 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
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 getent2-0.2.tar.gz.
File metadata
- Download URL: getent2-0.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-91-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebb1ee2995b71dd24e48843e12fce7adb0a30b8494c7dd15687fb456797b350e
|
|
| MD5 |
4aa9549c1a5c6740af1fc2a1f3a778c9
|
|
| BLAKE2b-256 |
dcf2b058ecdd87114ea33a1efd7aa1de1d76f6e797ecc5b5cca6ce141fbbde97
|
File details
Details for the file getent2-0.2-py3-none-any.whl.
File metadata
- Download URL: getent2-0.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-91-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04097b123086adfa6eaa9ca8ae9b49f586194aa32b77bcd0cf33a77aa4d9cdbc
|
|
| MD5 |
54186224a011f56e555461a582aa2655
|
|
| BLAKE2b-256 |
7da174303548cbdd2eb54469ea301b215abddbfd0a0516f04b50932dcc04a390
|