Python interface to the Linux sudoers file
Project description
pysudoers
This library provides a Python interface to the Linux sudoers file. python-sudoers is open sourced under the BSD 3-Clause license.
Basics
pysudoers still runs on Python 2.7, and Python >= 3.4
Features
Installing
You can use pip to install pysudoers:
pipenv install pysudoers
Examples
Contributing
Pull requests to add functionality and fix bugs are always welcome. Please check the CONTRIBUTING.md for specifics on contributions.
Testing
We try to have a high level of test coverage on the code. Therefore, when adding anything to the repo, tests should be written to test a new feature or to test a bug fix so that there won't be a regression. This library is setup to be pretty simple to build a working development environment using Docker. Therefore, it is suggested that you have Docker installed where you clone this repository to make development easier.
To start a development environment, you should be able to just run the dev.sh
script. This script will use the Dockerfile
in this repository to build a Docker container with all the dependencies for development installed using Pipenv.
./dev.sh
The first time you run the script, it should build the Docker image and then drop you into the container's shell. The directory where you cloned this repository should be volume mounted in to /usr/src
, which should also be the current working directory. From there, you can make changes as you see fit. Tests can be run from the /usr/src
directory by simply typing green
as green has been setup to with the correct parameters.
Project details
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
Hashes for pysudoers-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da6cf29b34fd3986b27f904f76be1b426df1757527c309f257e5f8b33bba52e |
|
MD5 | b9891a50d2a7c57bcd4f45f93620f855 |
|
BLAKE2b-256 | 5d2a3bbdc791fbeabea2283ca93eb82f38f3271e6b1e02bb1d63c79d5e0a8d8b |