Skip to main content

Reusable python scripts and snippets I find useful

Project description

Latest version Supported Python versions 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. :)

0.0.3 (2015-05-10)

  • FIX: 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pignacio_scripts, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pignacio_scripts-0.0.3-py2.py3-none-any.whl (20.0 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pignacio_scripts-0.0.3.tar.gz (36.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page