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 ofTrueorFalse@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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pointlessutils-0.1.5.tar.gz.
File metadata
- Download URL: pointlessutils-0.1.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.10 Linux/5.4.0-81-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7873fe4bcc23d565bc536c512cea6f47d647dcd4a0c1d7e20d81ee2f5a2f3687
|
|
| MD5 |
d0efaa21bd46b6f80644fe73cecbf58c
|
|
| BLAKE2b-256 |
dc67851dc5f44c421fa04f693492feb7af3dcca8d69bcef0a17488474224793f
|
File details
Details for the file pointlessutils-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pointlessutils-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.10 Linux/5.4.0-81-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed28b7e54977f7bfd71e8013d71ebdb318a383414393031939dc0bbc0ef05223
|
|
| MD5 |
cf0657192256f3c0d6b6c492435855b1
|
|
| BLAKE2b-256 |
2d37f32cdad30153344fd35389a1f0e398b5fac29185c5a49a80d9de9082feb3
|