Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autowrapt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autowrapt

Boostrap mechanism for monkey patches.

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

========= autowrapt

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc