Humanumbers
Humanumbers is a Python package for turning rigid numeric text into more natural phrasing without losing the meaning of the original value.
Install
pip install humanumbers
Optional MCP support:
pip install "humanumbers[mcp]"
Basic usage
from humanumbers.service import get_service
from humanumbers.api_models import HumanizeRequest
service = get_service("en")
result = service.humanize(
HumanizeRequest(
text="The cable is 1245 mm long.",
source_language="auto",
output_language="en",
mode="humanize",
approximation="normal",
system_preference="si",
variants=3,
)
)
print(result.model_dump())
Included surfaces
- Python module:
humanumbers - CLI entrypoints:
humanumbers-apihumanumbers-mcp
Requirements
Python 3.12+
Metadata
Release files for humanumbers 0.1.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 | |
|---|---|---|---|
| humanumbers-0.1.0.tar.gz | 86.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| humanumbers-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 198.6 kB
Release files / humanumbers-0.1.0.tar.gz
| Download URL | humanumbers-0.1.0.tar.gz |
|---|---|
| Size | 86.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d03f03c8ce924e4fae7d6828f3960db2699e11bb1cb3f6dd2f15130e341ee76c
|
|
BLAKE2b-256 checksum How to use checksums |
0629ebe1e5deb19d492d364693fe4b50a98f673931705a90c9f6150f0e24ec48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / humanumbers-0.1.0-py3-none-any.whl
| Download URL | humanumbers-0.1.0-py3-none-any.whl |
|---|---|
| Size | 112.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0ccfb844fa68d39dbcdef7029206e5264430bd6a129a69b6d9bcc880885a41c
|
|
BLAKE2b-256 checksum How to use checksums |
cacb4f2306c68c79c49dea4e2653dd8f1bec1de10e8fcb4f840c114a99bf3d85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|