Registry / serialization / sorcery

sorcery

JSON →
library0.2.2pypypi✓ verified 80d ago

A library of dark magic delights for Python, providing a set of utility decorators and context managers for cleaner code. Currently at version 0.2.2 (though effectively abandoned since 2020). No release cadence; last release May 2019.

pip install sorcery
INSTALL
IMPORT
SIG · SORCERY
S
sorcery
serializationpythonv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

call_with_name
from sorcery import call_with_name
from sorcery import call_from

Basic usage of call_from and spell decorator.

from sorcery import call_from, spell, delegate_to_instance class Foo: def __init__(self): self.x = 10 @spell def bar(self): return call_from() # returns (self, 'bar') foo = Foo() assert foo.bar() == (foo, 'bar') print('Quickstart works')
Debug
Known issues
abandonedRepository archived and no updates since 2020. Not compatible with Python 3.11+ due to reliance on removed inspect features.
fix
Consider alternatives like 'magicattr' or implement own utilities.
affects: >=0.2.2
breakingThe library modifies frame introspection and may break in newer Python versions (especially 3.11+).
fix
Avoid using in production; test thoroughly.
affects: Python >=3.11
deprecatedNo official deprecation, but effectively unmaintained.
fix
Pin version if you must use, but prefer migration.
affects: all
Upgrade
Version history
0.2.2latest on PyPI · released Nov 11, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
sorcery — pip install sorcery · libregistry