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.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
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
File details
Details for the file pignacio_scripts-0.0.3.tar.gz
.
File metadata
- Download URL: pignacio_scripts-0.0.3.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d28adf1bdcd31bc092e7753cd91dc85893d1a78d599b04ea1513ecf9af605b44 |
|
MD5 | a247a43361d382e637d9c2f581528dce |
|
BLAKE2b-256 | bc6c4017389493ac1f5c57f04b3b026c1598f07e4a920bc9766211b4c8c969f4 |
File details
Details for the file pignacio_scripts-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pignacio_scripts-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f97185f63d10a6b81ff96ab74b233469058a77803ffcfb994c53da3470cf3c |
|
MD5 | 433d815c2316e5799c12f76620f9eb4a |
|
BLAKE2b-256 | a556d7ab14f2a2158c71110d8e767b5e257e6dbab30651156b2de6827e8dc1fb |