Skip to main content

Boostrap mechanism for monkey patches.

Project description

A Python module for triggering monkey patching of a Python application, without the need to actually modify the Python application itself to setup the monkey patches.

The package works in conjunction with the wrapt module. One would create post import hook patch modules per wrapt module requirements, and then list the names of the setuptools entrypoints you wish to activate in the AUTOWRAPT_BOOTSTRAP environment variable, when executing Python within the environment that the autowrapt module is installed.

To understand what is possible, a set of examples is also installed with this package. To see the examples in action run the following:

AUTOWRAPT_BOOTSTRAP=autowrapt.examples python

At the Python interpreter prompt then enter:

import this

This should print out the Zen of Python as normal, but with an extra line added to the end.

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

autowrapt-1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file autowrapt-1.0.tar.gz.

File metadata

  • Download URL: autowrapt-1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for autowrapt-1.0.tar.gz
Algorithm Hash digest
SHA256 a0dcd0092477bb22e391f136659cc7f716da06ebda66a8b51ae4955cab0f97a2
MD5 f882378fc981470e74dce120312e5dd6
BLAKE2b-256 83094eccf7c33822a70696611520ada5dd1916f742344b0a7c96b90dd301178d

See more details on using hashes here.

Supported by

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