semvec/pypi-packages huggingface dataset:
sphinxcontrib-osexample 0.1.1
Sphinx extension for OS code-blocks
License: BSD
Keywords: Sphinx extension

.. -*- restructuredtext -*-

.. image:: https://readthedocs.org/projects/sphinxcontrib-osexample/badge/?version=stable
    :target: http://sphinxcontrib-osexample.readthedocs.org/en/latest/?badge=stable
    :alt: Documentation Status


==============================
osexample extension for Sphinx
==============================

This is a modified fork of Serge Domkowski's `examplecode extension <https://bitbucket.org/birkenfeld/sphinx-contrib/src/7f39b7f255e34bfe588f0065a5d9709a7d8e7614/examplecode/?at=default>`_ for Sphinx.

About
=====

This is a simple extension that, when rendered as HTML, will fold multiple
code blocks containing different operating systems administration examples into a single block
which can be toggled from one to another using buttons.

It's intended to be used for displaying package manager examples.
(e.g., apt install or dnf install).

This extension adds the ``example-code`` directive which adds a class to
a container wrapping the code blocks that should be folded. The class allows
the included Javascript and CSS to render the folded block and buttons.

Currently supported are: Debian, Ubuntu, Fedora, CentOS, OSX

Quick Example
-------------

Source would look something like this::

    .. example-code::
        .. code-block:: Debian

            sudo apt install htop

        .. code-block:: Fedora

            sudo dnf install htop


This will create an output like this:

.. image:: https://raw.githubusercontent.com/svx/sphinxcontrib-osexample/master/docs/_static/example.gif
   :alt: Example how it looks like as generated HTML


Installation
------------

.. code-block:: bash

    $ pip install sphinxcontrib-osexample


Enabling the extension in Sphinx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Just add sphinxcontrib.examplecode to the list of extensions in the conf.py file. For example:

.. code-block:: bash

    extensions = ['sphinxcontrib.osexample']



Documentation
-------------

Full documentation for end users can be found in the "docs" folder.

It is also available online on `Read The Docs <https://sphinxcontrib-osexample.readthedocs.org/en/latest/>`_

Contribute
----------

- `Issue Tracker <https://github.com/svx/sphinxcontrib-osexample/issues>`_
- `Source Code <https://github.com/svx/sphinxcontrib-osexample>`_

Support
-------

If you are having issues, please let us know.


License
-------

The project is licensed under BSD.
git-gdrive 1.0.2
git-gdrive: format-patch / am over Google Drive
License: BSD
Keywords: git development

===============================================
git-gdrive: format-patch / am over Google Drive
===============================================

`git-gdrive` allows to use Google Drive as a way to exchange patches.

Designed to quickly exchange patches between different machines or
to share with teammates.

.. code-block:: bash

  git gdrive push is the equivalent of git format-patch + upload to gdrive.
  git gdrive pull is the equivalent of download from gdrive + git am.

Installation
------------

**Linux / Mac**

.. code-block:: bash

  pip install --user git-gdrive

And add the following to you ~/.bashrc

.. code-block:: bash

  # On Linux
  export PATH="$PATH:$HOME/.local/bin"

  # On Mac
  export PATH="$PATH:$HOME/Library/Python/2.7/bin"

**Windows**

.. code-block:: bash

  # If using depot_tools
  cd C:\depot_tools\python276_bin\Scripts

  pip install git-gdrive
  git-gdrive auth

Examples
--------
**Pushing a set of patchset to GDrive**

.. code-block:: bash

  $ git gdrive push #<optional format-patch args>
  Uploading a patch consisting of 2 commits (@{upstream}..HEAD):
     10309dc patch 1 [author@gmail.com]
     1fb8c00 patch 2 [author@gmail.com]

  Uploading /git-drive/primiano-master-2016-01-15_01-03.patch

  Upload successful. Use "git gdrive pull" to apply.


**Pulling and applying a patchfile from GDrive**

.. code-block:: bash

  $ git gdrive pull
  Select which file to pull and apply:
    1) primiano-master-2016-01-15_01-03.patch
    2) primiano-master-2016-01-15_00-17.patch
    3) primiano-master-2016-01-15_00-17.patch


  Enter id or file name, just ENTER to pull 1): 1
  Pulling /git-drive/primiano-master-2016-01-15_01-03.patch
  Running git am -3 /tmp/tmptP1Swe
multiline-log-formatter 0.1.8
Python logging formatter that prefix multiline log message and trackebacks.
License: BSD
Keywords: logs,logging

========
Overview
========



Python logging formatter that prefix multiline log message and trackebacks. Makes the logs more readable, both for
tracebacks and for multiline log messages.

* Free software: BSD license

Benchmarking
============

Benchmark against pythons built in formatter **logging.Formatter**. The benchmark is done using **pytest-benchmark**,
and the below results is from a run on a faily new MacBook Pro, using Python 2.7.

One should note that we are using StringIO as stream output, so we should expect the results to be even closer with
more production alike setup, for example writing to disc.

.. image:: https://raw.github.com/peterlauri/python-multiline-log-formatter/master/docs/benchmark.png
    :alt: python-redis-lock flow diagram

Installation
============

.. code-block:: bash

    pip install multiline-log-formatter

Usage
=====

Add this to dictConfig:

.. code-block:: python

    'formatters': {
        'default': {
            '()': 'multiline_formatter.formatter.MultilineMessagesFormatter',
            'format': '[%(levelname)s] %(message)s'
        },
    },

And log messages will look like this:

.. code-block:: bash

    [ERROR] LOGGING_MESSAGE ... (49564:MainThread)
    ... (49564:MainThread) : Traceback (most recent call last):
    ... (49564:MainThread) :   File "/Users/plauri/work/opensource/python-multiline-log-formatter/tests/test_multiline_formatter.py", line 112, in test_exception
    ... (49564:MainThread) :     raise Exception('EXCEPTION_MESSAGE')
    ... (49564:MainThread) : Exception: EXCEPTION_MESSAGE

And if you don't like the default, you can customize it by extending **MultilineMessagesFormatter** and set
**multiline_marker**. You can also change **multiline_fmt**, but assure you include **%(message)s** in the formating
string.

Documentation
=============

https://python-multiline-log-formatter.readthedocs.org/

Development
===========

To run the all tests run::

    tox


Other
=====

This project sceleton is generated by ionelmc's pylibrary_ cookiecutter.

.. _pylibrary: https://github.com/ionelmc/cookiecutter-pylibrary



Changelog
=========

0.1.8 (2016-01-15)
-----------------------------------------

* First release on PyPI.
isonasacs 0.5
A module to manage ISONAS Access Control System
License: BSD

ISONAS Access Control System
============================

.. image:: https://travis-ci.org/vbastos/isonasacs.svg?branch=master
	:target: https://travis-ci.org/vbastos/isonasacs

API to communicate with the Crystal Matrix Software of ISONAS. ISONAS provides pure IP access control solutions.