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 details)
Built Distribution
File details
Details for the file are_you_sure-1.0.2.tar.gz
.
File metadata
- Download URL: are_you_sure-1.0.2.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0813aaa672cc0a91115b57a3220552820b554142fb80c906e833381889d021ed |
|
MD5 | 2c70424757abc674e03f3be59c088f1a |
|
BLAKE2b-256 | 38528b53ee656e3630d2f09e6d5b34c5f495edbce8780ffcc6c8e50c737e351f |
File details
Details for the file are_you_sure-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: are_you_sure-1.0.2-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4287920f13484ed90ff566447b84c706287b805426d9afb28efaedf34aa2045f |
|
MD5 | 6ede9e633e7d582a984701ca8cb3f7f2 |
|
BLAKE2b-256 | 1c02e234699869a0766452c6dfce1a8d32eb2c8f96705b7b785c8035028fc815 |