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.
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
File details
Details for the file Pyng-0.5.0.tar.gz
.
File metadata
- Download URL: Pyng-0.5.0.tar.gz
- Upload date:
- Size: 42.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953aeaf854677f11bd436b8d54dc38cbb2603ce5d77345b8780d9ca03cc11b43 |
|
MD5 | 973808a3b041296fc39b16e3c2448d09 |
|
BLAKE2b-256 | bd55d4277096e33fff7d74b5ccbaf5788c6569500a57be98d28eaae386998dac |