polyglot-hello
This was written with Cursor and ChatGPT-5.
Simple Python library and CLI for “Hello” and “Hello World” in 200+ languages.
- APIs: get by language name, code (ISO 639-1 and common alternates), or numeric index
- CLI:
polyglot-hello hello [id]andpolyglot-hello world [id] - Data: 200+ curated entries with
helloandhello_world
Install
pip install polyglot-hello
Usage (Python)
from polyglot_hello import say_hello, say_hello_world, get_by_code, get_by_name, list_languages
print(say_hello()) # random
print(say_hello_world()) # random
print(say_hello_world("en")) # by code
print(say_hello_world("Spanish"))
g = get_by_code("fr")
print(g.name, g.hello, g.hello_world)
langs = list_languages()
print(len(langs))
CLI
polyglot-hello hello # random “Hello”
polyglot-hello world # random “Hello World”
polyglot-hello hello en # by code
polyglot-hello world Spanish # by name
polyglot-hello list # list with indexes
polyglot-hello search hola # fuzzy search
Examples
See examples/hello_world.py for a minimal integration. Run with:
python examples/hello_world.py
API
- say_hello(identifier: str|int|None = None) -> str: returns “Hello” for the resolved language
- say_hello_world(identifier: str|int|None = None) -> str: returns “Hello World”
- get_by_name(name: str) -> Greeting
- get_by_code(code: str) -> Greeting
- get_by_index(index: int) -> Greeting
- list_languages() -> list[str]
- search(query: str) -> list[Greeting]
The Greeting object has: index, name, code, codes, hello, hello_world.
Language codes
Primary codes are ISO 639-1 when available (e.g., en, es, fr), plus helpful alternates in codes (e.g., ISO 639-2 eng, regional tags like pt-BR). You can pass any recognized code or the full language name.
Contributing
PRs to add or improve languages welcome. Please ensure entries include:
{
"name": "Language Name",
"code": "primary-code",
"codes": ["alt1", "alt2"],
"hello": "...",
"hello_world": "..."
}
License
Apache-2.0
Metadata
Release files for polyglot-hello 0.1.3
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 |
|---|---|---|---|---|
| polyglot_hello-0.1.3.tar.gz | 21.0 kB | With provenance | Details for polyglot_hello-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polyglot_hello-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for polyglot_hello-0.1.3-py3-none-any.whl |
Total release size: 44.7 kB
Release files / polyglot_hello-0.1.3.tar.gz
| Download URL | polyglot_hello-0.1.3.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6633cf3f5b914bc0226be210f8b91fff42bb99be49b434abd63b3de809a25be8
|
|
BLAKE2b-256 checksum How to use checksums |
f93601328a35f57bdf62f986dbdfe99cda93120357e6288af11e2db4d313db14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Aug 12, 2025.
Transparency logRelease files / polyglot_hello-0.1.3-py3-none-any.whl
| Download URL | polyglot_hello-0.1.3-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ea3df533a8d24be857096fdce60cbcb41b5fc4b92f3c78f22bc4c15b29a8d91
|
|
BLAKE2b-256 checksum How to use checksums |
66fc1844c55a28950fcea652d2c35b30919aea5572810e5cfb4d2589028afcd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Aug 12, 2025.
Transparency logSecurity for polyglot-hello 0.1.3
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 polyglot_hello-0.1.3.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 Aug 12, 2025.
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.