Pointless utilities for python.
Project description
Pointless Utils
A collection of utilities that are (probably) pointless.
Decorators
There are currently 5 pointless decorators available to use:
@none
- Causes the function to always returnNone
@true
- Causes the function to always returnTrue
@false
- Causes the function to always returnFalse
@maybe
- Causes the function to return a random choice ofTrue
orFalse
@never
- The function will never return and will block indefinitely
These decorators can be used on either normal or async functions. For example:
@maybe
def ex_1():
pass
@maybe
async def ex_2():
pass
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
pointlessutils-0.1.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for pointlessutils-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98d8229dbded06cb3d2fbc0e0d0c3c1a3c8f4ec332cbd358acfa13546f693f4c |
|
MD5 | cc84bef93b39408e314049597032072b |
|
BLAKE2b-256 | 5194662f05dc082b0fed4c40168b7cbddc46294742a625c355650ef236b29e00 |