Skip to main content

Allows you to create any Registry, similar to how django’s admin has you register classes, or their template library has you register tags.

Usage

from class_registry import Registry

site = Registry()

@site.register
class MyCoolClass(object):
  """
  My class that should be registered.
  """
  key = "ABC"


>>> site["ABC"]
<class 'MyCoolClass'>

Alternate use

Or, if you want your own key name, specify it when you register the class.:

container = Registry(key_name="other_key")

@container.register
class MyCoolClass(object):
  other_key = "POL-COOL-CLS"

Metadata

Release files for django-class-registry 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-class-registry 1.1.3
File Size Uploaded
django_class_registry-1.1.3.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-class-registry 1.1.3
File Interpreter ABI Platform
django_class_registry-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / django_class_registry-1.1.3.tar.gz

Download URL django_class_registry-1.1.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ef3817cb08c1d8d3fca9786f4525117ab4b81530d5c2d47c030a0f2530073700
BLAKE2b-256 checksum
How to use checksums
8d938ea452de5c8273998d5d0224201aba18109096b96a6daddd320cea3c7630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / django_class_registry-1.1.3-py3-none-any.whl

Download URL django_class_registry-1.1.3-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b356ead3953df9037dc3ea2ee42ef9543d44c17789b308f0a0bd162898cb8ebf
BLAKE2b-256 checksum
How to use checksums
4c9de9f3b2c7908f836295a5a6a33f9056a947fdda1bcf8b472ba9f4019606d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

0.0.3

1 release file

0.0.2

1 release 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