A language package manager
Project description
langSrc
Install
pip3 install langSrc
Demo
from langSrc import LanguageDetector
lang = LanguageDetector("zh", "lang.json")
lang.register(
"language",
{
"zh": "语言",
"en": "Language",
"jp": "言語",
"kor": "언어",
"fra": "Langue",
"spa": "Idioma",
"th": "ภาษา",
},
)
print(lang.language) # or print(lang["language"])
# 语言
This will generate a file named lang.json
:
{
"language": {
"zh": "语言",
"en": "Language",
"jp": "言語",
"kor": "언어",
"fra": "Langue",
"spa": "Idioma",
"th": "ภาษา"
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langsrc-0.0.9.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file langsrc-0.0.9.tar.gz
.
File metadata
- Download URL: langsrc-0.0.9.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 703344d37ef797f60fc7038064181aebda270570fb5cf001c62838f5b7c71baf |
|
MD5 | 2905776ea19439a14d2907e67a83058f |
|
BLAKE2b-256 | 309f8404e65f951dff634dd7d1d1e0784a487bb9035d89074b195b9132996729 |
File details
Details for the file langsrc-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: langsrc-0.0.9-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 724d282b57a7426398e1b375cbbe103bb7df772ed4dc2627582aca44c936122b |
|
MD5 | 683cf117f281e27f617cf2cec91b9918 |
|
BLAKE2b-256 | 12a21c4d15bef140918952e0cf7abf24020b374d980fa3c2d4fdd5c0861737f8 |