Skip to main content

Python utilities to perform dryrun.

Project description

The module helps you to implement dryrun mode in your Python projects with an easy switch ‘on/off’ feature.

Authors:Daniele Zanotelli (
Python version:3.x


The package is supplied with Sphinx compilable documentation under the docs directory.

You can read the latest docs visiting the project docs online.


Via pip:

$ pip install drypy

or download the project from the github and compile the package

$ git clone
$ cd drypy
$ make whl

and you’ll find your brand-new whl under the dist/ subdirectory.

Basic usage

Apply the sham decorator to your function and set dryrun as on.

from drypy import dryrun
from drypy.patterns import sham

>>> @sham
>>> def foo(bar):
>>> dryrun(True)
>>> foo(42)

Will log the following output:

[DRYRUN] call to 'foo(42)'

using the python standard logging facility, thus it’s up to you to correctly configure it (check the docs for a working example).

To use custom substitutes with specific beahviours please search in the docs for the sheriff-deputy pattern.

Project details

Download files

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

Built Distribution

drypy-1.0.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page