proxyvars

Create type-safe, context-dependent proxy objects. Inspired by werkzeug's LocalProxy

MIT License

Downloads
3.7K
Stars
3
proxyvars - v0.10.0 Latest Release

Published by bswck 6 months ago

v0.10.0 (2024-05-09)

Removed

  • proxy_attribute_accessor and proxy_item_accessor functions.

Added

  • Doctests for proxy_field_accessor.

Changed

  • Improved documentation.

Fixed

  • Relaxed supported Python versions to >=3.8 to avoid being an unsolvable dependency.
  • Type-safety in tests.

Full Changelog: https://github.com/bswck/proxyvars/compare/v0.9.2...v0.10.0

proxyvars - v0.9.2

Published by bswck 8 months ago

Last unstable release for allowing #11 workaround.

v0.9.2 (2024-02-16)

Fixed

  • Set supported Python version range to >=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

proxyvars - v0.9.1

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.

v0.9.1 (2023-12-22)

Changed

  • Upgraded the skeleton version.

Fixed

  • A bug when __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

proxyvars - v0.9.0

Published by bswck 11 months ago

Updated the README and reformatted the codebase.

What's Changed

Full Changelog: https://github.com/bswck/proxyvars/compare/v0.8.0...v0.9.0

proxyvars - v0.8.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.

proxyvars - v0.7.0

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().

What's Changed

Full Changelog: https://github.com/bswck/proxyvars/compare/v0.6.1...v0.7.0

proxyvars - v0.6.1

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

proxyvars - v0.5.0

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

proxyvars - v0.4.2

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

proxyvars - v0.4.1

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

proxyvars - v0.4.0

Published by bswck about 1 year ago

  • Added AttributeDelegateManager.

Full Changelog: https://github.com/bswck/commonvars/compare/v0.3.4...v0.4.0

proxyvars - v0.3.0

Published by bswck over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/bswck/commonvars/commits/v0.3.0

Package Rankings
Top 12.42% on Pypi.org
Badges
Extracted from project README
skeleton Supported Python versions Package version Tests Coverage Documentation Status Lifted? Poetry Ruff Pre-commit