Skip to main content

bagof-core-magic

Core tools used by magic converters, validators, factories, etc.

It provides the type-hint introspection machinery shared by those packages - functions such as issubhint, ishintstance, unwrap, and get_default for inspecting and comparing typing hints at runtime - along with the MagicHint base class and MagicError exception that magic objects are built on.

It also lets registries (the dicts get_from_registry searches) be keyed lazily: defer(registry, ForwardRef("dask.array.Array"), value, context) registers value once someone else has imported dask.array, without ever importing it - so a package can register values for optional libraries without paying their import time. lazy_import and has_module help define such classes without importing the library.

Metadata

Release files for bagof-core-magic 0.2.0

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

Source distribution (sdist)

Source distribution for bagof-core-magic 0.2.0
File Size Uploaded
bagof_core_magic-0.2.0.tar.gz 48.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bagof-core-magic 0.2.0
File Interpreter ABI Platform
bagof_core_magic-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 78.3 kB

Release files / bagof_core_magic-0.2.0.tar.gz

Download URL bagof_core_magic-0.2.0.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7758db4eecdf3bdfd0be3280664a2250a6480f72c5331731e144fc3a58bc6de3
BLAKE2b-256 checksum
How to use checksums
7c54d6d117f5747e97e81edf5a5b4a4eb89a2ebe00e1b9cc6efc0896d362ed60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / bagof_core_magic-0.2.0-py3-none-any.whl

Download URL bagof_core_magic-0.2.0-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9af1aa49edda405742f1161ec1c74bbbe8ed442d20937379dea30fcbfbc80e7
BLAKE2b-256 checksum
How to use checksums
f834ca59c908f8a6c1b937bf45f5688eb25940d085ee1571334056f5bb641998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

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