Pointless utilities for python.
Project description
Pointless Utils
A collection of utilities that are (probably) pointless.
Decorators
There are currently 6 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@always
- The function is now a generator that indefinitely yieldsTrue
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.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for pointlessutils-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b960d0681279fdfd7b53012ac0b0625e2ee26939e5a3f52b470ceec7f7b6ef |
|
MD5 | 765dbe4bc1693d2740d880cea558e5cc |
|
BLAKE2b-256 | c3f909ec8955295bd4719cb1ebada5514ff0f38c916a5ef41eb9af5bd561184f |