Skip to main content

Generic functions. Clever registries and lookups

Project description

Reg: Clever Registries and Lookups

Reg is a Python library that provides generic function support to Python. It help you build powerful registration and configuration APIs for your application, library or framework.

Documentation.

CHANGES

0.4 (2014-01-14)

  • arginfo has been totally rewritten and is now part of the public API of reg.

0.3 (2014-01-06)

  • Experimental Python 3.3 support thanks to the future module.

0.2 (2013-12-19)

  • If a generic function implementation defines a lookup argument that argument will be the lookup used to call it.

  • Added reg.mapply(). This allows you to call things with more keyword arguments than it accepts, ignoring those extra keyword args.

  • A function that returns None is not assumed to fail, so no fallback to the original generic function is triggered anymore.

  • An optional precalc facility is made available on Matcher to avoid some recalculation.

  • Implement a specific PredicateMatcher that matches a value on predicate.

0.1 (2013-10-28)

  • Initial public release.

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

reg-0.4.zip (52.2 kB view details)

Uploaded Source

File details

Details for the file reg-0.4.zip.

File metadata

  • Download URL: reg-0.4.zip
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for reg-0.4.zip
Algorithm Hash digest
SHA256 848d5ff8c5e238db431fcf8e4ec172af5ffd91b5778a31771b2d884fb7a24025
MD5 dd357457835efc9c87a572bd7e7d4f77
BLAKE2b-256 097fccd9976504fdb8fc3ebc9e411c0fbd2758a23b3b95a17a1705ce98e958c4

See more details on using hashes here.

Supported by

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