Skip to main content

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.

Build Status CircleCI codecov

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

pysudoers-1.0.1.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

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

pysudoers-1.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file pysudoers-1.0.1.tar.gz.

File metadata

  • Download URL: pysudoers-1.0.1.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for pysudoers-1.0.1.tar.gz
Algorithm Hash digest
SHA256 211afb1ca2905405f1d3ae566410cd285b594e97af48c2c1ec061d568702f1db
MD5 e7ef808758012fefdd2c5e6fd45f219a
BLAKE2b-256 e199a1f1545b73428c8f46a676e1ea496fd1afb714bb02beaf7736bee67128f4

See more details on using hashes here.

File details

Details for the file pysudoers-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pysudoers-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for pysudoers-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2da6cf29b34fd3986b27f904f76be1b426df1757527c309f257e5f8b33bba52e
MD5 b9891a50d2a7c57bcd4f45f93620f855
BLAKE2b-256 5d2a3bbdc791fbeabea2283ca93eb82f38f3271e6b1e02bb1d63c79d5e0a8d8b

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