Reusable python scripts and snippets I find useful
Project description
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:
Some testing utilities:
… 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pignacio_scripts-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 048813a4100afb49f55f4224ffe8269ab057b57cb5134fd9c49e8300f1758ff9 |
|
MD5 | 58bdb9a88a697e424d76e51e215ee468 |
|
BLAKE2b-256 | 06d4a8eef221abc6c5248d5f6f65a2da694ad76cf84cd0173b46e1991b2343d9 |