Skip to main content

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


Download files

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

Source Distribution

tdx-0.1.5.tar.gz (13.8 kB view details)

Uploaded Source

File details

Details for the file tdx-0.1.5.tar.gz.

File metadata

  • Download URL: tdx-0.1.5.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tdx-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9c4d2a8e23a0fccdec873dba91773488d94077de2db4dc64dc5e59447e35d776
MD5 96628efac4f9eef26830c8f145cc4303
BLAKE2b-256 eff18d665f07213ec8b57695d606da8cd6048e2b20c67a9973a48c07e3f2970d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page