Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Yet another collection of Python utility functions

Project Description

Pyng is a collection of Python utility functions I’ve written over the years, and that I keep wishing were available everywhere. Sadly, in many cases I’ve simply pasted copies of individual functions as needed. But no more!

It’s organized as follows:

  • dicts: dict subsets, dict searching
  • exc: manipulate exceptions, e.g. reraise, retry
  • genio: generator-based file I/O, loosely related to Java file streams
  • graph: filter DAG represented as dict of (key, otherkeys)
  • iters: generic iterator functionality, akin to itertools
  • relwalk: os.walk() filtered to produce pathnames relative to the starting directory
  • replacefile: filter a text file in-place
  • toposort: topological sort of DAG represented as dict of (key, otherkeys)

Please see the individual docstrings for more information.

Release History

Release History

This version
History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Pyng-0.5.0.tar.gz (42.1 kB) Copy SHA256 Checksum SHA256 Source Dec 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting