Metadata-Version: 2.0
Name: pignacio-scripts
Version: 0.0.2
Summary: Reusable python scripts and snippets I find useful
Home-page: https://github.com/pignacio/pignacio_scripts
Author: Ignacio Rossi
Author-email: rossi.ignacio@gmail.com 
License: LGPLv2.1
Keywords: pignacio_scripts
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Requires-Dist: six

==================
pignacio's scripts
==================

.. image:: https://pypip.in/version/pignacio_scripts/badge.svg?style=flat
    :target: https://pypi.python.org/pypi/pignacio_scripts/
    :alt: Latest version

.. image:: https://pypip.in/py_versions/pignacio_scripts/badge.svg?style=flat
    :target: https://pypi.python.org/pypi/pignacio_scripts/
    :alt: Supported Python versions

.. image:: https://travis-ci.org/pignacio/pignacio_scripts.svg?branch=master
    :target: https://travis-ci.org/pignacio/pignacio_scripts

.. image:: https://coveralls.io/repos/pignacio/pignacio_scripts/badge.svg?branch=master
    :target: https://coveralls.io/r/pignacio/pignacio_scripts?branch=master

.. image:: https://pypip.in/license/pignacio_scripts/badge.svg?style=flat
    :target: https://pypi.python.org/pypi/pignacio_scripts/
    :alt: License


Reusable python scripts and snippets I find useful.

This is a bundle of scripts and snippets I packaged to avoid copypasting code.

Some are tested, some are not. Some are not tested at all.

You've been warned: here be dragons.

Suggestions, comments, bug reports and pull requests are always accepted. :)

* Free software: LGPLv2.1 license
* Documentation: https://pignacio_scripts.readthedocs.org.

Features
--------

* I like namedtuples, so:

  * `Namedtuple with default values
    <http://pignacio_scripts.rtfd.org/en/latest/namedtuple/namedtuple-with-defaults.html>`_
  * `Mock namedtuples for testing
    <http://pignacio_scripts.rtfd.org/en/latest/namedtuple/mock-namedtuple.html>`_

* `A helper for creating alarms/checks for nagios/icinga
  <http://pignacio_scripts.rtfd.org/en/latest/nagios/nagios-logger.html>`_
* Some testing utilities:

  * `An extended TestCase class
    <http://pignacio_scripts.rtfd.org/en/latest/testing/testcase.html>`_
  * `A helper for capturing and testing writes to stdout
    <http://pignacio_scripts.rtfd.org/en/latest/testing/capture-stdout.html>`_

* `Quick coloring functions for terminal output
  <http://pignacio_scripts.rtfd.org/en/latest/terminal/color.html>`_
* ... and some more stuff not worth mentioning :)




History
#######

0.0.2 (2015-04-30)
------------------

* Simpler ``NagiosLogger`` interface. (backwards incompatible)

* Feature: ``Testcase.assertSoftCalledWith`` method for mock partial call
  assertions.

* FIX: ``NagiosLogger`` was not restoring stdout.

* FIX: ``NagiosLogger`` choked when output contained empty lines.

* Feature: ``namedtuple_with_defaults`` uses a ``lambda`` instead of a
  classmethod for mutable defaults. (backwards incompatible)

0.0.1 (2015-03-29)
------------------

* Packaging
* Namedtuple with defaults
* Mock namedtuple
* NagiosLogger
* Custom TestCase
* capture_stdout
* Colors for the terminal


