Skip to main content

Python monkey patching for humans.

Project description

Altered States tries to take the concept of “Python for Humans” (http://python-for-humans.heroku.com/) to the world of monkey patching.

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

altered.states-1.0.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

altered.states-1.0.0-py3.6.egg (13.8 kB view details)

Uploaded Egg

altered.states-1.0.0-py2.7.egg (13.6 kB view details)

Uploaded Egg

File details

Details for the file altered.states-1.0.0.tar.gz.

File metadata

File hashes

Hashes for altered.states-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e1d50fca77a5a9b2652605d8ba39ebf60832207eb51e84aea85eb97a0396d800
MD5 ad5133530a941b9889394a08fb3f6336
BLAKE2b-256 0a1e7c6fc6d1a3b333f22cadab1c49988f7dd57289a0b7dda6315e9c611c444d

See more details on using hashes here.

File details

Details for the file altered.states-1.0.0-py3.6.egg.

File metadata

  • Download URL: altered.states-1.0.0-py3.6.egg
  • Upload date:
  • Size: 13.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for altered.states-1.0.0-py3.6.egg
Algorithm Hash digest
SHA256 eb8a6c02500620563467ddc3358e5d668e7e33158c382306fbc784c8f31e9e2c
MD5 7cb13d8da143938dcb2b36e4492ae8b0
BLAKE2b-256 9ea56c6beb620faf0bdc937123364f9b7e6ad70f5a85ba56b17a7136c6d46a38

See more details on using hashes here.

File details

Details for the file altered.states-1.0.0-py2.7.egg.

File metadata

  • Download URL: altered.states-1.0.0-py2.7.egg
  • Upload date:
  • Size: 13.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for altered.states-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 9eb3465126b6bc91fc74b46e2a63d9b88c3f77b31e70607f5411d78f52fdc6fe
MD5 d0dad1aa0cd78ba997088875ee395cff
BLAKE2b-256 36bf9257a83593db75d37febd52c93009e5f6c308e67d53b82e7a22967523b74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page