Read and write to .lang files.
Project description
mclang
Create or open Minecraft: Bedrock Edition .lang files.
Installation
Install the module with pip:
pip3 install mclang
Update existing installation: pip3 install mclang --upgrade
Links
Features
- Read and write to
.langfiles. - Supports comments
- Add translation support to your Python application.
- Translate your .lang file between different languages.
Example
lang = """
test=This is cool!
test2=It worked!
"""
doc = mclang.loads(lang)
print(doc.tl("test"))
# This is cool!
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
mclang-1.1.2.tar.gz
(8.1 kB
view details)
File details
Details for the file mclang-1.1.2.tar.gz.
File metadata
- Download URL: mclang-1.1.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9143019b3bf6aec2c77d223f9edb985561bd0c8ac40f9b44e08daa7106e0cf9
|
|
| MD5 |
b5c78cecf0cd5118754b682a46b4347a
|
|
| BLAKE2b-256 |
62ca445b11e0ebf7e736d5f18a32b79918fa3861b11154ac2c17494841724dc7
|