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

Requests

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

License

MIT

Metadata

Release files for snackutils 0.1.2

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.2
File Size Uploaded Provenance Actions
snackutils-0.1.2.tar.gz 2.9 kB With provenance Details for snackutils-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 6.3 kB

Release files / snackutils-0.1.2.tar.gz

Download URL snackutils-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
81c7bd4144ec9642317d610a16340b85201d1a805e77f3d615c55f408d365eab
BLAKE2b-256 checksum
How to use checksums
4d4f174a7f59a026b012b4f230f8f60b0251ab40601d7e19340cf095361e16ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 18, 2026.

Transparency log

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

Download URL snackutils-0.1.2-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3846ba7ed3a366ffb10cc1b6c2292bede5e8530098c95d202a8014d185c3a8a2
BLAKE2b-256 checksum
How to use checksums
e72c84ee2cbf27e0910244026fd186503a0f282665857e73d74abf3b27458ff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 18, 2026.

Transparency log

Security for snackutils 0.1.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.

Full provenance

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

Select from 2 files

Attestation for snackutils-0.1.2.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 18, 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