Tools for working with container types, command data operations, and concise exception handling
Project description
In collections.py there are some tools for working with lists, sets, dicts, and iterables more declaratively.
In data.py there are some functiions to more concisely read and write yaml in the most common use cases.
In exceptions.py there are some error handling tools. They are all callback-oriented, so not necessarily user-friendly; mostly they are intended for use in decorators.py.
In decorators.py there are some general decorator tools, in particular one to wrap a function in a debugger call on error and one to attach context to exception messages. There’s also a wraptify function that will convert decorators that use functools.wraps (and therefore clobber a lot of metadata from the target) into decorators which preserve metadata using wrapt.decorator.
In validation.py there are some general validation checks that seem to come in handy in lots of contexts. For example, making sure that a dict has all of a set of required keys, and all other keys are part of some optional set.
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 tdx-0.1.3.tar.gz
.
File metadata
- Download URL: tdx-0.1.3.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f4d7f2a4ca41f19d18ffd78e8b680d3f95f7bee29795b9646e3e5cf98066f6 |
|
MD5 | 5969edf1b263ec710ada402a51eb5e66 |
|
BLAKE2b-256 | 3cfe94683f5b15a826545e3c5392f7999728464fe3e7ad924e68840ee62113f7 |