Create type-safe, context-dependent proxy objects. Inspired by werkzeug's LocalProxy
MIT License
proxy_attribute_accessor
and proxy_item_accessor
functions.proxy_field_accessor
.>=3.8
to avoid being an unsolvable dependency.Full Changelog: https://github.com/bswck/proxyvars/compare/v0.9.2...v0.10.0
Published by bswck 8 months ago
Last unstable release for allowing #11 workaround.
>=3.8,<3.13
instead of >=3.8,<=3.12
that semantically disallows 3.12
PATCH releases. (#11)Full Changelog: https://github.com/bswck/proxyvars/compare/v0.9.1...v0.9.2
Published by bswck 10 months ago
Loading template...
Finding news fragments...
Rendering news fragments...
Draft only -- nothing has been written.
What is seen below is what would be written.
__doc__
inside proxy is None
but regardless attempted to be %-formatted.Full Changelog: https://github.com/bswck/proxyvars/compare/v0.9.0...v0.9.1
Published by bswck 11 months ago
Updated the README and reformatted the codebase.
Full Changelog: https://github.com/bswck/proxyvars/compare/v0.8.0...v0.9.0
Published by bswck about 1 year ago
Added __class_getitem__
fallback scenario meant to be used with class proxies.
Added proxy_metaclass
and namespace_overwrites
params to all proxy factories.
Published by bswck about 1 year ago
Allowed to cheat instance/class checks by overwriting the __class__
property within the cls=
parameter passed to proxy()
.
Full Changelog: https://github.com/bswck/proxyvars/compare/v0.6.1...v0.7.0
Published by bswck about 1 year ago
Made const_proxy()
require cls
argument useful for cheating class/instance checking in advanced use cases.
Full Changelog: https://github.com/bswck/proxyvars/compare/v0.5.0...v0.6.1
Published by bswck about 1 year ago
Complete rewrite.
New API:
proxy()
const_proxy()
lookup_proxy()
proxy_field_accessor()
proxy_item_accessor()
proxy_attribute_accessor()
Full Changelog: https://github.com/bswck/proxyvars/compare/v0.4.2...v0.5.0
Published by bswck about 1 year ago
Common variable __class__
variable bugfix.
Full Changelog: https://github.com/bswck/commonvars/compare/v0.4.1...v0.4.2
Published by bswck about 1 year ago
Package readme fix.
Sorry, still learning automated PyPI deployment.
Full Changelog: https://github.com/bswck/commonvars/compare/v0.4.0...v0.4.1
Published by bswck about 1 year ago
AttributeDelegateManager
.Full Changelog: https://github.com/bswck/commonvars/compare/v0.3.4...v0.4.0
Published by bswck over 1 year ago
Full Changelog: https://github.com/bswck/commonvars/commits/v0.3.0