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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file are_you_sure-1.0.2.tar.gz.

File metadata

File hashes

Hashes for are_you_sure-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0813aaa672cc0a91115b57a3220552820b554142fb80c906e833381889d021ed
MD5 2c70424757abc674e03f3be59c088f1a
BLAKE2b-256 38528b53ee656e3630d2f09e6d5b34c5f495edbce8780ffcc6c8e50c737e351f

See more details on using hashes here.

File details

Details for the file are_you_sure-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for are_you_sure-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4287920f13484ed90ff566447b84c706287b805426d9afb28efaedf34aa2045f
MD5 6ede9e633e7d582a984701ca8cb3f7f2
BLAKE2b-256 1c02e234699869a0766452c6dfce1a8d32eb2c8f96705b7b785c8035028fc815

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