INFO
This is a simple library providing the ability to generate a Python file from a YML file. It's make easy to use the data from the original file, for example for translation files.
Installation
The library is available on PyPi, so you can install it in the standard way:
Windows
pip install translation-builder
Ubuntu/macOS
pip3 install translation-builder
Example
YML file example
good-translation:
cool: "No!"
one-more-cool:
- 1
- 2
- 3
File generation
g-translation --file my_file.yml --py_result ./my_directory/
Usage in your code
from my_directory import my_file_tg
print(my_file_tg.Root.good_translation.cool)
print(my_file_tg.Root.good_translation.one_more_cool[1])
Result
No!
2
Metadata
Release files for translation-builder 1.0.4
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 | |
|---|---|---|---|---|
| translation_builder-1.0.4.tar.gz | 9.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| translation_builder-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / translation_builder-1.0.4.tar.gz
| Download URL | translation_builder-1.0.4.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a65c690f567c69ba40f182d40e4d0bbd7e51c40a2eed2fc4c3218f41063d1b6
|
|
BLAKE2b-256 checksum How to use checksums |
a628cf16fd518509fd93a77349b983efcc1e889b51ece828bcbfe1830c88c329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / translation_builder-1.0.4-py3-none-any.whl
| Download URL | translation_builder-1.0.4-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9453db2dc66d27fe67601d12bbaf472006fdb2695108a85c97bdf5c3debae7a2
|
|
BLAKE2b-256 checksum How to use checksums |
3bb53b796867c18fc118519039f7c5068f2d99346951c30554c635f58cb38ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for translation-builder 1.0.4
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.