Metadata-Version: 2.1
Name: getent2
Version: 0.2
Summary: Python interface to the POSIX getent family of commands
License: MIT
Author: Wijnand Modderman-Lenstra
Author-email: maze@pyth0n.org
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/x-rst

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

.. _bug tracker at GitHub: https://github.com/tehmaze/getent/issues


Authors
=======

* `Wijnand Modderman-Lenstra <https://maze.io/>`_
* Thomas Kula
* `Olivier Cortès <http://oliviercortes.com/>`_


Build status
============

.. image:: https://landscape.io/github/tehmaze/getent/master/landscape.svg
   :target: https://landscape.io/github/tehmaze/getent/master

.. image:: https://travis-ci.org/tehmaze/getent.svg
   :target: https://travis-ci.org/tehmaze/getent

.. image:: https://coveralls.io/repos/tehmaze/getent/badge.svg
   :target: https://coveralls.io/r/tehmaze/getent


