Myth Hash
Myth Hash is a Python package designed to create human-readable hashes that are not only functional but also cognitively engaging. A key feature of this tool is its multilingual support, enabling the generation of hashes in multiple languages. The concept behind these human-readable hashes is to enhance communication and recognition by creating hashes that form vivid, memorable mental images. The goal is to make the hash as human-compatible as possible, ensuring it effectively serves its purpose in an intuitive and user-friendly manner.
Features
- Character Name Generation: Generates a unique fantasy name based on an input string.
- Supported Languages: Currently supports English (
en) and German (de). - CLI Support: Easily generate names via the command line.
- Library Usage: Integrate
Myth Hashinto your Python projects. - Customizable Data: Modify the included JSON files to customize the generated names.
Requirements
- Python: 3.11, 3.12, 3.13, 3.14, 3.15 (including free-threaded 3.14t and 3.15t)
- Platforms: Linux, macOS, Windows
Installation
You can install Myth Hash using pip:
pip install myth-hash
Usage
Command Line Interface (CLI)
After installing the package, you can use the myth-hash command to generate fantasy names.
Basic Example:
myth-hash "The moon whispered secrets, but only the cats understood."
Example Output:
exotic-thoughtful-Griffin
Using as a Library
You can also use Myth Hash within your Python code:
Example:
import myth_hash
# Generate a character name using the hash_name function
name_parts = myth_hash.hash_name(
"The moon whispered secrets, but only the cats understood.", "en"
)
print(name_parts) # Output: ('exotic', 'thoughtful', 'Griffin')
# Access individual parts of the name
physical_attr, personality_attr, mystical_character = name_parts
print(f"Physical Attribute: {physical_attr}")
print(f"Personality Trait: {personality_attr}")
print(f"Mystical Character: {mystical_character}")
Uniqueness and Collisions
A name is built from one of 259 physical attributes, one of 239 personality attributes and one of 153 creatures, so there are 9,470,853 possible names. That is a small space compared to a cryptographic hash, and different inputs will regularly map to the same name.
The slow test (uv run nox -s test_slow) hashes 1,000,000 distinct inputs and counts duplicates:
| Generated names | Duplicates | Uniqueness |
|---|---|---|
| 1,000,000 | 119,949 | 88.0% |
By the birthday problem, the chance of at least one collision is about 5% for 1,000 inputs and above 99% for 10,000 inputs.
Use Myth Hash to make values easy to recognize and talk about, for example in logs, dashboards or UIs, but not as a unique identifier. Keep the original hash around when you need to tell values apart reliably.
These numbers apply to the bundled word lists; adding entries to the JSON files enlarges the name space and lowers the collision rate.
Future Improvements
- Improved Uniqueness: Add more attributes and characters to reduce the likelihood of name collisions.
- Additional Languages: Add support for more languages with help from the community.
Development
The project uses uv for dependency management and Nox as task runner.
uv sync # create .venv with all dev dependencies
uv run nox -s check # ruff (format + lint), pyrefly (strict), bandit
uv run nox -s test-3.14 # tests with coverage on a single Python version
uv run nox -s test # tests on all supported Python versions
uv run nox -s format_files # auto-format and apply safe lint fixes
Contributing
Contributions are welcome! Please fork the repository, create a new branch for your feature or bug fix, and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for myth-hash 0.3.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 |
|---|---|---|---|---|
| myth_hash-0.3.0.tar.gz | 24.1 kB | With provenance | Details for myth_hash-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myth_hash-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for myth_hash-0.3.0-py3-none-any.whl |
Total release size: 49.5 kB
Release files / myth_hash-0.3.0.tar.gz
| Download URL | myth_hash-0.3.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cb4c293c95fd78327165506e6bf3bf45d3052f1ec71174161fb34a7a0e4a93b
|
|
BLAKE2b-256 checksum How to use checksums |
ddd41fe2849c55983d00a2b4325cac1092d6e11ca13a17c15d2cfd80298b5583
|
| 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 Nov 3, 2026.
Transparency logRelease files / myth_hash-0.3.0-py3-none-any.whl
| Download URL | myth_hash-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc051f983c63a388f16f4b3e50d4dd35175de51478202dec2c7becc120916c4d
|
|
BLAKE2b-256 checksum How to use checksums |
dd0af8ef6224340bf937f09079f0a8c9091fd4b931e11b5f11878ebbf01fac59
|
| 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 Nov 3, 2026.
Transparency logSecurity for myth-hash 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for myth_hash-0.3.0.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 Nov 3, 2026.
Transparency logA 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.