Skip to main content

Python libraries to assist with writing Linux Ops scripts.

Project description

.. image::
:alt: badge: Supported by Clockwork
:align: right

.. image::
:alt: badge: Python Package Index version
:align: right
.. image::
:alt: badge: GitHub most recent tag
:align: right
Python libraries to assist with writing Linux Ops scripts.

Python Compatibility

This library currently requires compatibility with:

.. image::
:alt: badge: Python Package Index supported Python versions
:align: right
- 2.6
- 2.7
- 3.4

.. image::
:alt: badge: Travis CI master branch status
:align: right
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:

- `<>`_
- `<>`_
- `<>`_


- ``opscripts.config``

- `ConfigArgParse`_
- `PyYAML`_

- ``opscripts.yaml``

- `ordereddict`_ (only required by Python 2.6)
- `PyYAML`_

- Unit Tests

- `mock`_ (only required by Python < 3.3)
- `pytest`_
- `pytest-catchlog`_
- `pytest-colordots`_
- `pytest-flakes`_
- `pytest-localserver`_
- `pytest-pep8`_
- `pytest-pythonpath`_

.. _`ConfigArgParse`:
.. _`PyYAML`:
.. _`ordereddict`:
.. _`mock`:
.. _`pytest`:
.. _`pytest-catchlog`:
.. _`pytest-colordots`:
.. _`pytest-flakes`:
.. _`pytest-localserver`:
.. _`pytest-pep8`:
.. _`pytest-pythonpath`:

Testing Quick Start

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

mkvirtualenv -a . -r tests/requirements.txt opscripts_test

a. If installing requirements errors, update `pip`::

pip install --upgrade pip

b. Install requirements::

pip install -r tests/requirements.txt

3. Run pytest::


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


.. image::
:alt: badge: GitHub license (MIT)
:align: right
:target: `MIT License`_
- `<LICENSE>`_ (`MIT License`_)

.. _`MIT License`:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for OpScripts, version 1.6.7
Filename, size File type Python version Upload date Hashes
Filename, size OpScripts-1.6.7.tar.gz (15.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page