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 (

License: MIT


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

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

Basic usage

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

import drypy
from drypy.sham import sham

def foo(bar):



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.

To use custom substitutes with specific beahviours please check 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.

Files for drypy, version 0.5.2
Filename, size File type Python version Upload date Hashes
Filename, size drypy-0.5.2-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size drypy-0.5.2.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page