Skip to main content

Simple decorator to check before running

Project description

Are you sure

Simple decorator to ask before evaluating a function (just one very simple function)

Usage example

from are_you_sure import are_you_sure

@are_you_sure
def dangerous_function(*args, **kwargs):
    print(f'Running {dangerous_function.__name__} with {args,kwargs}')

if __name__ == '__main__':
    dangerous_function(1, "arg_example", name='lol')

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

are_you_sure-1.0.2.tar.gz (1.4 kB view hashes)

Uploaded Source

Built Distribution

are_you_sure-1.0.2-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

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