Class-registry

Latest version: v2.1.2

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.1.2

* Fixed an issue preventing `EntryPointClassRegistry.get()` from applying branding.

Binary Distribution Checksums
* class-registry-2.1.2.tar.gz
* sha256: ade5058c6c07f0bd6838e125d840b0ee5075b47f8ad239e141638a528c45d4bf
* md5: 12a98a59f30cd84f56890e54799d875f
* class_registry-2.1.2-py2.py3-none-any.whl
* sha256: f0e586c1eb38e6577b07ee1c4091dae9dbb2ffb6aabd174a7db521b91301a9f3
* md5: 228dd667642fc90cbc79442ed5d015d7
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEc9vOP4UernObqSUWjIY/jl7U00MFAlpIIkwACgkQjIY/jl7U
00PfshAAhfBQZYotDwHi7bJ+nOXPXJ56NPIIR2u3cAIP6HoEE7kzKJF2q8IriPql
svAV+UaYwNJSEik+p7X/yUvDJck/OBGofl3t02zE7aSYQ0IiAgpc9nV6eSQI5GgU
wde/iar+4feJuzoex518JBUfzaBglwUWYyE7OM9dmu85US8SugK1bCswlt1HaDo7
7GXRh+hsmkAAUEj7j1TVQlu/4C2eUjq6YBMmHjykCqxf8X116WiYwHb/8PY3gyt4
46hm5GRoC0OidSfu9Ejg1nQtwbv38AIX/Fd+sE8AyuFIN5VCYD3/LwoL7H97qaCC
RJW9nAsWVmodXWQAIa7b4iokuSdxnTTAfqMhkpVV8PXvmB0qoK2mDaaJ6s/i/QKf
Fj74amN2szorMYV42t/kIqU78a0q+KHW9uocMUEA3K5HZrp4FYNn4xq4mAyTJR9O
Ss93aj4Oz99mRf+f0xtbLR9mHlizHmvBybofvtKR1eKdBFEVt+oymBnbA4izY7A+
DiIMuSZa00vTaBNv8fAwOCtuJ2fsTc4GTS+G6rAOzx59g2GjqcazON9YbmkRkxAp
RJxhKPfruUIVbvje25O0972XaGvBAxb6r/mpuXz7vTAayDVyQPuOVNy/gez8cuJY
fNqmzepe1R9Byrw0bduR/q3ni3cyjrcNi+Cy1JatruHFqaaFKVc=
=EjZo
-----END PGP SIGNATURE-----

2.1.1

* Calling `__contains__` no longer raises an exception if the corresponding class' initalizer requires arguments.
* `EntryPointClassRegistry` now applies branding aggressively:
* Branding is applied immediately upon initializing the registry.
* Branding is applied to both classes and instances (important for entry points that reference functions/methods).

Binary Distribution Checksums
* class-registry-2.1.1.tar.gz
* sha256: ceee0ec247074525f9493545aac7dfd7dbda388515b45eb79bdca7e5625fd969
* md5: 41cad434ca77285611c335551ee3b325
* class_registry-2.1.1-py2.py3-none-any.whl
* sha256: ea40564e5d8b0c4d6855322aee7dbdd229a273aacc7dd20fa3282af527beeb5c
* md5: 6070098cbb3020b6ea8ff532f185d81c
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEc9vOP4UernObqSUWjIY/jl7U00MFAlpIEMgACgkQjIY/jl7U
00OH+g//daeGbjdiYViTl250ZsnVbKFB0aTRApz0sUsZuBp+beBqJHyJwGvHasIL
e7Hw94vQvv8CafpMQkhxne5OPP+bHhZ1Y5Rwud5nWUAE3tsqe7zB8or5TdyqM6Oq
UbQ283+E+9kBAP1itRSqs7KuaGmnl9a2pBj5Q+leDnb9C1M1GtmIwU0Oh0YqKC8L
EofQEuL5xtKMNZGXrpCKNNWlkeJg6X8FU+anha4F5MNvZX6MZF5Dad7Y7lU3EB4E
m+ndGxksxcxAT0ISTsdDpwaeGKMY5J1KaJ90wj4DmMgkfKEgbC1A1Irz10uEYHRP
MRgFIP12Y/uVEFn13cQVpIbASgQ/QmVp/p43XRn1UR/9r2smF94MJ7h4M02S1BYq
HM6Yh5cq3xeL/S1eHO2J+eagkIXIGDRl2CIZfMWjZWz2Z2LOF5JWv9kWA/Y2SJcH
2vY3klPfBg+G8AxNMFniNmTP42+lM17RE17hBYN0utcFaK28U42VUQvGzK4h1Ilq
ypahUvgYGMMUHD0PglnHaix48GLvgJVnwzBRtQbOEo1WmhpR8HL00X8+x5EVTlOp
tDrvM7G1lQNWKZzl9BDAskNmXfsMFFAX+AMJKW60N9tJrMjGlIPFpYDwu6fP0rMW
sNKGnTbr1IEyPo4ZPPx8b2pRZ8AI4PIdhWi5GS584T96EFjK1R8=
=NC0J
-----END PGP SIGNATURE-----

2.1.0

**⚠️ This version contains changes that are not backwards-compatible with Class Registry v2.0.2. Please review the Backwards-Incompatible Changes before upgrading! ⚠️**

Backwards-Incompatible Changes
* Renamed methods in `ClassRegistryInstanceCache` to make it easier to understand what they are used for:
* `gen_cache_key` => `get_instance_key` (this method is used to determine the lookup key for cached instances)
* `gen_lookup_key` => `get_class_key` (this method is used to determine the lookup key for registered classes)

Other Changes
* Fixed incorrect PEP-484 type hints.
* Travis CI now builds universal wheels.
* Travis CI now only deploys tagged releases to PyPI.

Binary Distribution Checksums
* class-registry-2.1.0.tar.gz
* sha256: 18d1d0b215b97aa9c86c7c6815a8412ba8a605b1617eccdf3a69848812a5a2a4
* md5: cd845a9425d8f57636c43e7a22ddbcaa
* class_registry-2.1.0-py2.py3-none-any.whl
* sha256: f74ed455bb11fdbb1b99bb761c71fcff6569a0c72c2985977991b9dc231d24ed
* md5: aff88c31cbd3680d9b92b75c976e2cb2
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEc9vOP4UernObqSUWjIY/jl7U00MFAlnf7NgACgkQjIY/jl7U
00MN0Q//dc9fu+VSU4n2AiYvgC6GfRlnycacax/2bd3IXYCF7ACLRAhJSr+rg3/l
JnPmfpob6mSIblcpFan5xN+DZU2FS62ArTq9MQzGZ+NgMhl8crslfohMI0Zav738
+m9YkG/Nk29L0lN6ZUjkxuC3STBoVIZ3sUJ5QgYve3ZA9OB+mS+JhMe7aGDpk9Wt
gqYCDMGMFs91MKZNOfv5FVVtu5TEIr8ZjLn04yk2+nK2Eu27YAzfCJUalaS/HnhT
20UqTaN40flzq96CKLaaf5WxavGWTkQx5DvpKxZrxQ7iye2T1hDWpKQpCqXdHCkl
imdmcPK1b9YiLlUVrAJCZ+Jz2oGFW57YrsYy8z5QNxrbzzrxJ+3e7ZSrg3BbE+Wy
Spyha/bhqbIkj2rzz+kYFu260jKO9I71T9bQDgMtUE5tJa6iTJA5X2imR6vLQdKa
yLfojG2dvBJQQ+pRUBRtrkkN94nWbZ3eBFoRdn3oJ9o1as5hf8GzQVphRpxbXLqW
81QNniy7amv0tBC8RvwuKBVX3+miPp6y7FIPSDYuO45Ljhyi1PZFS8k6rAZR1fr6
WVR6Nob/GmLGlaM4y6kbIMDzvO+ieAzvb9Elph4fppA2V6PT6g8ji2dg6b1f6bBv
Rz3zHEd5QcAmfcDeNeJZkNGX5Tea8YyDufjRbF8hvmA94QMVdks=
=N0LA
-----END PGP SIGNATURE-----

2.0.2

**Backwards-incompatible change: class-registry now requires pip 9 or later.**

* `EntryPointClassRegistry` initializer now accepts an optional `attr_name` argument. When set, the registry will "brand" each class/object that it returns with the corresponding registry key.
* Note: If the class/object already has an attribute with the same name, it will be overwritten.
* Upgraded Travis CI configuration to use trusty images.
* Removed some dead code.

Binary Distribution Checksums
* class-registry-2.0.2.tar.gz:
* sha256: f3d1824aab9b0a6bad7fff6ceed4f97c04f640441d0f2414c191972064b05f08
* md5: 99fb490325625897d1c4128eeebff03b
* class_registry-2.0.2-py2-none-any.whl
* sha256: b562a518438af8da99af3bb2bb3dd9eb57cef690da81b361d63e16644a226471
* md5: b5cffcdeda15f5bfb14b38dc15323a1e
* class_registry-2.0.2-py3-none-any.whl
* sha256: 97b002fddcc63b48ccd8c627a407230cd1dabb60078ebb2fc99ed6168dd91a94
* md5: 3c8f2dc54bca03ee61e72c3310bd2b5e
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJZh8nVAAoJEC2oW+MnuUmsuekP/2POhq1QsE7lfCKB520M5fz7
4Rtdi9AiRSqhqtEYuwPhWHgEbug8q6Jh9ntsI7qroIOCfwL4MJw58i/xkoBvdFDh
FyOP2JSC+0md2p19kfdxxwHhcnEJR52m9irgeDLvG3E+m2zvSIms2IIayO+6VkrJ
zEkEq2jHULH7Lunxw1Wrqz9k/4lcD/be6vUafZdDwxlV9ACSv5Vr3jOM92ScbQzN
nFdZAJLrmjgNDuDVWCAIWswdDRE92FUeZzTaWfDGRIkmi762G2ceDUNnHOqV/dDQ
ZGUZSOhPoubclIpqprqxYPeh0bRHmDT1Y6cwY/wnJPjfHrL3eKOq7lF56gfInDBO
bD/5AE7DSHBoxWgdaupesrwPfBJrLyB9RQjx22/732v86UHGZTRGkcdqRkuI9K33
9UDTV8EQJuBGGvxtdtxBUHFYcUMBKElvlrfoTpRyjE02+AMNeN3/IscI93Zl9pFv
Aqv5ZQf218UdqIuvOaV+Erh6VhEQSnE9JixnsmM6oPKBC+LjsY01Xnl62P8Dm9tl
FsEONbNRs4E8lOWHcp7UIfp8X7R0Yy3LEYUdaSEgzl22PRtnG8MG7wcr+pK8cEfC
lnk+iugReCFtv3nbEy6t7Adv61wPWnPYpwwA9PyuKern1W/DgCWX4rybftH/L9Za
F2UL62Jsuone7Q9OJFye
=BEQu
-----END PGP SIGNATURE-----

2.0.1

First official release of ClassRegistry.

Ships with the following components (in no particular order):

* `ClassRegistry`: manually register/unregister classes.
* `SortedClassRegistry`: customize sort order for `ClassRegistry`.
* `EntryPointClassRegistry`: automatically register classes using setuptools entry points.
* `AutoRegister`: automatically register non-abstract subclasses of a base class.
* `ClassRegistryInstanceCache`: cache instances to create a service registry.

Plus some base classes and mixins.

Binary Distribution Checksums
* class-registry-2.0.1.tar.gz
* sha256: 3a276e32bb5d370fcac6682c2e25a13a3431d5d99e75374787bed94de9ab40b0
* md5: 8649858c0f35bed8f0ed7240a9c9515a
* class_registry-2.0.1-py2-none-any.whl
* sha256: b311e13d9b4ffa138b2135d801e7bb03fa8b9c3a32cc44808797abaa2e6c34da
* md5: b771654a80ed8d039b6a929e2d0a25e0
* class_registry-2.0.1-py3-none-any.whl
* sha256: 66d46d7972d39cff146652292da2e94beeaad80d9b98113bef4cdfcfa171bb1b
* md5: ed4920aafcf85e94d6724f037764fe64
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJZVvsvAAoJEC2oW+MnuUms3k4P/3RMYYFhn0UemU/OUb3rAkvz
3Sa9kicdekagxRF41qAO88WhkfBfqjlZQ9FPMHxY4Omnp9HzgliDBnkDxMWegS89
Ugy5vxwhgFOXkaHt+dwLqxWO+wNk2Ns/44Zphpv9pJK43f8Z9p1Oe6XB87r8V17l
EQfw8AMpsNj1lv3p+hCZWyyF++hpREpXtzDPwLIutjRtX4qgoQ7Ng0TyeI0WbHL7
nCda/CRPr+ZRPmz5dPhVoczpFwGaY8V0Xe4K6bE1ALdU4al1GI5+zhutiVjGkblM
yqbbxPYeCN6muooz9SN9qHiwURHQbluUfAZLGaeQVVeawnrSKJLLFJoqkuSn4/+T
Vbg1OtK0rtyAsV1B07qWcdZlo+2VRMb916LrrbfMvMJWJRN38mqbr5J/C2Xuei2A
z3FTTlrUaxrM396pnkOPm+b0LGH6KzKabjWtacfud98ndu2pXWCv9qWlN39+U41g
gwkrMWEto8ji82pSWQgxPQKGYPiAYo2PYfMNM1hBqTpSwgpEJDVgTSNkJSvSpdDs
wOOoXjd5M5VwTiIS9JN6eS9KgZUVtfvYw9aVMdDn7kJ34mr8wmJTgbEY8v226hqR
TjYCMeTgUsbBGQDeLhdmMBDWB6klKg90z/K/Xa+SIL176sACbd3m6rdtSZvWz+uL
M/gyVPpvwQcBuw5SoJI3
=bcld
-----END PGP SIGNATURE-----

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.