Description
pseu is a CLI tool that provides the following pseudorandom utilities: picking, shuffling, dice-rolling and number generation. It's useful for people who frequently call on machines to make their life choices.
$ pseu pick "good life choice" "bad life choice"
bad life choice
$ pseu pick --n 2 </tmp/movies.txt
Boogie Nights
The Hunt for the Wilderpeople
$ pseu roll 1d6
3
$ pseu rand 100
42
$ pseu shuffle alice sue bob
bob
sue
alice
Setup
Requires Python 3. Install from PyPI using pip:
pip3 install pseu-cli
More examples
roll and rand can print stats.
$ pseu roll 3d6 --stats
4 5 4
sum: 13
max: 5
min: 4
Multiple types of dice, multiple random numbers.
$ pseu roll 2d6 6d3
6 6 1 3 3 1 2 1
$ pseu rand 1-3x5 10-20
2 2 1 3 1 16
Use a (base64) seed to repeat results.
$ pseu 1-1000 --seed abc
903
$ pseu 1-1000 --seed abc
903
Contributing
Feel free to submit tweaks.
To run tests, install tox via pip3 install tox and then run the tox command from the base directory.
Metadata
Release files for pseu-cli 1.0.2
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 |
|---|---|---|---|---|
| pseu-cli-1.0.2.tar.gz | 4.0 kB | Without provenance | Details for pseu-cli-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pseu_cli-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pseu_cli-1.0.2-py3-none-any.whl |
Total release size: 9.0 kB
Release files / pseu-cli-1.0.2.tar.gz
| Download URL | pseu-cli-1.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60b3c5274117f23dd8e845a7653f49a1b415a00854e73be5cc7f9a092898c6b8
|
|
BLAKE2b-256 checksum How to use checksums |
38f3e3cd098630d4fd173c27d32d03f19ba46df410d9187cef0556796c58af06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9
|
Release files / pseu_cli-1.0.2-py3-none-any.whl
| Download URL | pseu_cli-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d898061071b77e4ef72d99f4a0951f49667098e3dd5b87a026f21e2d6a73a465
|
|
BLAKE2b-256 checksum How to use checksums |
e4c6e9045e55b2c5871013f4da44edc90fc1b4ced1ca426891104aa79e332d2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9
|
Security for pseu-cli 1.0.2
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.