Skip to main content

Snackutils

Tiny utilities that could save you a few lines
Github
PyPi

Install

pip install snackutils

Utilities

Want a utility? Suggest it in issues!

Function What it does
eight_ball() Returns a random magic 8-ball answer
flip_coin() Returns "Heads" or "Tails"
roll_dice() Rolls a six-sided die, returns 1 to 6
detect_os() Returns your OS name, like "Windows", "MacOS", or "Linux"
average(a, b) / mean(a, b) Average of two numbers
average_list(numbers) / mean_list(numbers) Average of a list of numbers
percent_choose(a,b) Chooses 1(a) or 2(b) using the percent given (a and b). Goes up to a float of one decimal (rounds if not) and a and b has to add to 100 or it doesn't work properly
better_sleep(a, b) Sleep but you can use units (seconds, minutes, hours, days)
ai_detector(text) Detects if text was made with AI with 100% accuracy (checks if there's em dashes)
lazy_randint(num) Gives you a random integer from 1 to num, saves you like 1 key press and all the control
unhelpful_friend(question) Your friend gives you unhelpful answers. Input is optional as it doesn't do anything

Requests

Bug? Issue? Feature request? Submit it in issues!

License

MIT

Metadata

Release files for snackutils 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snackutils 0.1.5
File Size Uploaded Provenance Actions
snackutils-0.1.5.tar.gz 4.1 kB With provenance Details for snackutils-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snackutils 0.1.5
File Interpreter ABI Platform Actions
snackutils-0.1.5-py3-none-any.whl Python 3 none any Details for snackutils-0.1.5-py3-none-any.whl

Total release size: 8.7 kB

Release files / snackutils-0.1.5.tar.gz

Download URL snackutils-0.1.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72316bc2987760a75383680cd9b4e92274a28f2e8ec9ac340680f03accb9c3d9
BLAKE2b-256 checksum
How to use checksums
4800c91b0bf4124296d48746f8fd7e8ddd80f1db68d9ed5cd4aeb69813b9d63f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / snackutils-0.1.5-py3-none-any.whl

Download URL snackutils-0.1.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3aae7f5c40009f53314efccc9ceb79be1adb6478c3debc668ad4c90486aad6d
BLAKE2b-256 checksum
How to use checksums
fc14ad8a0a34694f43bb3e6f47710502ec5dff22faf2496ab40f22be2808f278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for snackutils 0.1.5

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for snackutils-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page