Skip to main content

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.

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

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

getent2-0.2.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

getent2-0.2-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

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