Random Tools
random_tools.Signal
from random_tools import Signal
on_event = Signal()
on_event.connect(print)
on_event.emit("this will be printed")
random_tools.true_every
from random_tools import true_every
this_true_every_3_calls = true_every(3) # will return True every 3 calls
false_1 = next(this_true_every_3_calls) # False
false_2 = next(this_true_every_3_calls) # False
true_1 = next(this_true_every_3_calls) # True
false_3 = next(this_true_every_3_calls) # False
false_4 = next(this_true_every_3_calls) # False
true_2 = next(this_true_every_3_calls) # True
random_tools.CSS4_ColorPicker
A tool for sampling CSS4 compatible color names
from random_tools import CSS4_ColorPicker
color_picker = CSS4_ColorPicker()
colors = set()
for i in range(nb_color):
color = color_picker.sample_color()
assert color not in colors
colors.add(color)
# The picker reset automatiquely when all color have been sampled
# but you can reset it manually too
color_picker.reset()
Metadata
Release files for random-tools 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| random_tools-0.2.0.tar.gz | 2.3 kB | Without provenance | Details for random_tools-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| random_tools-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for random_tools-0.2.0-py3-none-any.whl |
Total release size: 5.0 kB
Release files / random_tools-0.2.0.tar.gz
| Download URL | random_tools-0.2.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
566c12f167fa503f9deb4c75ec1f3e10da2f297fd388edd0ff1d1ced7d4ad2b4
|
|
BLAKE2b-256 checksum How to use checksums |
b69fe86caa4df319997a72c645017969bbe68320b7a5a6886c0abae61215994a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2
|
Release files / random_tools-0.2.0-py3-none-any.whl
| Download URL | random_tools-0.2.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5280063cf492026c0ce301aad67c01c5cc909d11184e9d2c53980dc18defe60c
|
|
BLAKE2b-256 checksum How to use checksums |
fa1106fd2c196a5e1005ac52321e85a72f8661f7b184b2519aeddf0da137e08f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.10 Linux/5.10.16.3-microsoft-standard-WSL2
|
Security for random-tools 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.