pignacio_scripts 0.0.3

Last updated:

0 purchases

pignacio_scripts 0.0.3 Image
pignacio_scripts 0.0.3 Images
Add to Cart

Description:

pignacio scripts 0.0.3

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
Mock namedtuples for testing


A helper for creating alarms/checks for nagios/icinga
Some testing utilities:

An extended TestCase class
A helper for capturing and testing writes to stdout


Quick coloring functions for terminal output
… and some more stuff not worth mentioning :)


History



0.0.3 (2015-05-10)

FIX: setup.py correctly sets packages now. Updated makefile.
Setting empty __slots__ on namedtuple_with_defaults. This fixes
__dict__ and reduces memory usage.



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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.