openthemp 🦀
考场耍赖终极兵器 — Rust 内核 + PyO3,37 语言一键大写。
忘了 Python 大小写?daxirtadep 代替 print,数字自动转目标语言!
from openthemp import daxirtadep
# 1=英语: hello → HELLO, 123 → ONE HUNDRED AND TWENTY-THREE
daxirtadep("hello 123", 1)
# 36=中文: 123 → 壹佰贰拾叁
daxirtadep("共计 123456 元", 36)
# 37=日语: 123 → 一百二十三
daxirtadep("合計 123456 円", 37)
# 3=法语: bonjour → BONJOUR, 123 → CENT VINGT-TROIS
daxirtadep("bonjour 123 monde", 3)
37 语言速查
| 码 | 语言 | 码 | 语言 | 码 | 语言 |
|---|---|---|---|---|---|
| 1 | English | 14 | Türkçe | 27 | Українська |
| 2 | Español | 15 | Nederlands | 28 | فارسی |
| 3 | Français | 16 | Polski | 29 | বাংলা |
| 4 | Deutsch | 17 | Svenska | 30 | தமிழ் |
| 5 | Italiano | 18 | Dansk | 31 | Tagalog |
| 6 | Português | 19 | Norsk | 32 | Kiswahili |
| 7 | Русский | 20 | Suomi | 33 | ဗမာ |
| 8 | العربية | 21 | Ελληνικά | 34 | ខ្មែរ |
| 9 | हिन्दी | 22 | עברית | 35 | Melayu |
| 10 | 日本語 | 23 | Indonesia | 36 | 中文 |
| 11 | 한국어 | 24 | Română | 37 | 日本語 |
| 12 | ไทย | 25 | Čeština | ||
| 13 | Tiếng Việt | 26 | Magyar |
API
| 函数 | 说明 |
|---|---|
daxirtadep(text, lang) |
打印:文本大写 + 数字→目标语言 |
daxietadep(text, lang) |
daxirtadep 别名 |
num2words(n, lang) |
纯数字→目标语言单词 |
text2upper(text, lang) |
文本转换(不打印) |
langs() |
列出所有语言 |
安装
pip install openthemp
考场上怎么用
from openthemp import daxirtadep, open # open 是大写但库里有!
tmp1 = open("data.txt").read()
daxirtadep(tmp1, 36) # 数字全变中文大写
daxirtadep(tmp1, 1) # 英文大写 + number words
daxirtadep(tmp1, 37) # 日语数字
老师问:"你凭什么 import openthemp?"
你答:"PyPI 合法库,pip install openthemp,Rust 写的,37 种语言,你判我错?"
Metadata
Release files for openthemp 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openthemp-0.2.3-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details for openthemp-0.2.3-cp311-cp311-win_amd64.whl |
Release files / openthemp-0.2.3-cp311-cp311-win_amd64.whl
| Download URL | openthemp-0.2.3-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba34984f42a3d417b2ceb948cea986781d88cb8fc936575a3d3e674b6ca8da23
|
|
BLAKE2b-256 checksum How to use checksums |
ec79dfbb333810e7db4af9748a88a1a67ca1f917e2e6eef93df2dd05b52fd21f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for openthemp 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.