Skip to main content

Python monkey-patching for Humans

Altered States is a reversible state tool. It changes values in an object. When the changes are not needed anymore, it is possible to reverse them.

Read more here: https://github.com/Plexical/altered.states/blob/master/README.rst

1.0.1

  • Fixed issue in setup.py script

  • Added missing changelog

1.0.0

  • Altered States now runs on Python 3 (tested on 2.7, 3.5 and 3.6)

  • Dropped support for Python 2.6

  • Experimental support for Kenneth Reitz Pipenv tool

  • Corrected invalid use of os.modules in examples

0.8.6

  • Better handling of objects that override __getitem__ (thanks to @merwok).

  • Drop support for Python 2.5 (no sane way to solve issue #4 there).

0.8.5

  • Added a new API entry point: alter(), that can be used to perform a two-step reversible alteration.

0.8.2

  • Updated test suites to use @pytest.fixture notation for fixtures (now requires py.test > 2.3)

  • Fixes a bug causing os.environ not to be patchable.

Fixing bug #2 means switching the dict -like object check from isinstance(x, dict) to hasattr(x, ‘__getitem__’). This change is thought to not break backwards compatibility but if you encounter unexpected behaviour in dict / object detection this might be it. I’d be very interested to know about that if you do.

0.8.1

  • Alias Expando as E for optional terseness.

0.8.0

Initial release.

Metadata

Release files for altered-states 1.1.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 altered-states 1.1.0
File Size Uploaded Provenance Actions
altered_states-1.1.0.tar.gz 11.3 kB Without provenance Details for altered_states-1.1.0.tar.gz

Release files / altered_states-1.1.0.tar.gz

Download URL altered_states-1.1.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bdcedb1d6e7d027b6bba5b93d58dc42d498d52a5346c30a0a70fc6c75e7cf038
BLAKE2b-256 checksum
How to use checksums
9504c6dcff68d972e9858bf52dd51ae419e3046b195fb13ae1f2cebacf29fbe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

Security for altered-states 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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