Metadata-Version: 2.1
Name: py-bsdauth
Version: 1.0.0
Summary: Python interface to OpenBSD's BSD Auth api in libc.
Home-page: https://github.com/rbaylon/py-bsdauth
Author: Ricardo Baylon
Author-email: rbaylon@outlook.com
License: ISC
Description: # py-bsdauth
        
        - Python interface to OpenBSD's BSD Auth api in libc
        - Currently only implements auth_userokay(3) since this is most suitable for authenticating to OpenBSD from python
        
        ### Note
        - Your application must have root privileges in order to use this module.
        
        Usage:
        ```sh
        >>> from bsdauth.bsdauth import UserOkay
        >>> u='user1'
        >>> pw='goodpassword'
        >>> uo=UserOkay(u,pw)
        >>> uo.login()
        True
        >>> pw='badpassword'
        >>> uo = UserOkay(ur,pw)
        >>> uo.login()
        False
        >>> ur='baduser'
        >>> pw='goodpassword'
        >>> uo = UserOkay(ur,pw)
        >>> uo.login()
        False
        >>> exit()
        ```
        
Platform: OpenBSD
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
