Skip to content

Python libraries to assist with writing Linux Ops scripts

License

Notifications You must be signed in to change notification settings

Python3pkg/OpScripts

 
 

Repository files navigation

badge: Supported by Clockwork

OpScripts

badge: Python Package Index version

badge: GitHub most recent tag

Python libraries to assist with writing Linux Ops scripts.

Python Compatibility

This library currently requires compatibility with:

badge: Python Package Index supported Python versions

  • 2.6
  • 2.7
  • 3.4

badge: Travis CI master branch status

However, additional versions are tested automatically.

API Versioning

Each module is versioned so that they can undergo significant changes without impacting the function and stability of the scripts that use them.

For example:

from opscripts.config import v6 as ops_config
from opscripts.logging import v2 as ops_logging
from opscripts.utils import v8 as ops_utils

For a more in-depth examples, see the:

Dependencies

Testing Quick Start

  1. Change directory into repository (into same directory as where this README resides).
  2. Install virtual environment:

    mkvirtualenv -a . -r tests/requirements.txt opscripts_test
    1. If installing requirements errors, update `pip`:

      pip install --upgrade pip
    2. Install requirements:

      pip install -r tests/requirements.txt
  3. Run pytest:

    py.test

To test against alternate Python versions, it may be useful to create virtual environments with an interpreter other than the one with which virtualenv was installed, e.g. for non-default python3:

mkvirtualenv -a . -p $(which python3) -r tests/requirements.txt \
    opscripts_test3

License

badge: GitHub license (MIT)

About

Python libraries to assist with writing Linux Ops scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%