Skip to main content

Nifty tools and containers

Project description

containers

Specialized containers as alternatives to Python’s built-in types and to those defined in the collections standard module.

  • defaultnamedtuple factory function for namedtuples with default arguments

  • forwardingdict defaultdict subclass that passes missing key to factory

utils

Utility functions for manipulating containers. Thanks Jack Fischer, for the idea for rmap.

  • subdict extract a subset of a dictionary

  • match compare multiple objects based on a list of shared attributes

  • rmap recursively map a function onto items of nested containers

text

Utilities for manipulating text.

  • color add ansi colors and styles to strings

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

skrt-1.2.0.tar.gz (3.7 kB view hashes)

Uploaded Source

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