Skip to main content

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.

Authors

Build status

https://landscape.io/github/tehmaze/getent/master/landscape.svg https://travis-ci.org/tehmaze/getent.svg https://coveralls.io/repos/tehmaze/getent/badge.svg

Why was this forked?

Originally forked from https://github.com/tehmaze/getent. This fork was created since
  1. the original repository is now archived

  2. 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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygetent-0.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygetent-0.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

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

Hashes for pygetent-0.1.tar.gz
Algorithm Hash digest
SHA256 3e51313e0204021682faf22d7082b36cf01da9775e4918a11b25659a6e6b256b
MD5 de91abbc8762b58e10ffa2d3dcb110fd
BLAKE2b-256 febaa18a943ffc4144dd828383cdb6e1306814f3bb38eb1027e33a5f4df8a11e

See more details on using hashes here.

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

Hashes for pygetent-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2044454629034dde81fa0f0311c7a4d5826642e8b227892510aa78ef9f01d9b
MD5 e54fb00833444009792069a7c571a7db
BLAKE2b-256 b3ab8e4bef8e92aaee3f10a0759cb27993c4bc6a7edc786e54969791304cc2f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page