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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for are_you_sure-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4287920f13484ed90ff566447b84c706287b805426d9afb28efaedf34aa2045f |
|
MD5 | 6ede9e633e7d582a984701ca8cb3f7f2 |
|
BLAKE2b-256 | 1c02e234699869a0766452c6dfce1a8d32eb2c8f96705b7b785c8035028fc815 |