Skip to main content

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.5 (2014-01-21)

  • Make reg.ANY public. Used for predicates that match any value.

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.

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.5.zip (52.3 kB view details)

Uploaded Source

File details

Details for the file reg-0.5.zip.

File metadata

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

File hashes

Hashes for reg-0.5.zip
Algorithm Hash digest
SHA256 fa263a3b62d337c0614f0e7e10a8c4793e954df2424d823ca4fe090c5dec3777
MD5 0ccc054a24c7be20a40c2f8acb3333cd
BLAKE2b-256 12247a1774a691e14072c3d971380a986447d8d819a615424011abd4bc0d7344

See more details on using hashes here.

Release history Release notifications | RSS feed

0.12

2 files

0.11

2 files

0.10

1 file

0.9.3

1 file

0.9.2

1 file

0.9.1

1 file

0.9

1 file

0.8

1 file

0.7

1 file

0.6

1 file

This release

0.5 This release

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page