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
@alwaysv(value)
- The function is now a generator that indefinitely yields the given value
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.5.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pointlessutils-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed28b7e54977f7bfd71e8013d71ebdb318a383414393031939dc0bbc0ef05223 |
|
MD5 | cf0657192256f3c0d6b6c492435855b1 |
|
BLAKE2b-256 | 2d37f32cdad30153344fd35389a1f0e398b5fac29185c5a49a80d9de9082feb3 |