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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for pointlessutils-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e482f1b69fc6ef35fa8be94cd70033008831aeedada9bd9ef884c2aa987f997 |
|
MD5 | 237075af8483341e9033fec826e8b659 |
|
BLAKE2b-256 | d4c772413c8575ca1b4120388b5cd0e72b6efecdb9aa7514a237aec4663d5470 |