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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pignacio_scripts-0.0.2.tar.gz.
File metadata
- Download URL: pignacio_scripts-0.0.2.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
087376e69427ab45dbcb6fb3a3ca41dbbe2ce2da411c7a6b564c60a18cc37063
|
|
| MD5 |
5febc917b2970fafa1e88ee4ce4a6b56
|
|
| BLAKE2b-256 |
c80832369520a9122275378f7895929bc6f20dd3a76661bbdea29171b55a2d27
|
File details
Details for the file pignacio_scripts-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: pignacio_scripts-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
048813a4100afb49f55f4224ffe8269ab057b57cb5134fd9c49e8300f1758ff9
|
|
| MD5 |
58bdb9a88a697e424d76e51e215ee468
|
|
| BLAKE2b-256 |
06d4a8eef221abc6c5248d5f6f65a2da694ad76cf84cd0173b46e1991b2343d9
|