A library for automated directory translation
Project description
Translate directory library
A library and a CLI to manage the translation text writing projects (e.g: LaTeX, Markdown, Jupyter, MyST, Typst). The library is aimed to simplify and automate the translation process and compiling of the translated version of the documents.
Credits
- Nicolas M. Thiéry - for supervising this project.
- LISN (Université Paris-Saclay) - for financing the internship and providing workspace.
- CentraleSupélec - for financing the project.
Important
The library is still in an early phase of development and may have bugs and unimplemented features
Features
- Project creation
- Source language and the source folder to translate setting
- Target language addition
- Project files syncing (between languages)
- Translation cache
- File translation
- Translation correction
The profound explanation of the logic and algorithms of the tool can be found here
Installation
For CLI usage
- Clone the repo:
git clone https://github.com/DobbiKov/translate-dir-lib - Enter to the directory:
cd translate-dir-lib - Install the CLI:
uv tool install -e . - Use it:
translate-dir
For in-project library usage
- Clone the repo:
git clone https://github.com/DobbiKov/translate-dir-lib - Enter to your project where you want to use this library (
cd <your_project_path>) - Install the library as a dependency using
pip:pip install <path_to_the_library_directory> - Enjoy!
For the library development and contribution uses
- Ensure you have uv tool installed (visit their site for the installation guide)
- Clone the repo:
git clone https://github.com/DobbiKov/translate-dir-lib - Enter
cd translate-dir-lib - Install dependencies
uv sync - Enjoy
Testing
- Install the dependencies using
uv sync - Run tests:
uv run pytest
Documentation
- Library API reference
- CLI documentation
- Architecture and algorithms
- Typst parsing and implementation
ToDo
📚 Citation
If you use this software in your research or writing, please cite it as follows:
@software{korotenko-sci-trans-git,
author = {Yehor Korotenko},
title = {sci-trans-git},
year = {2025},
publisher = {GitHub},
version = {0.2.0-alpha},
url = {https://github.com/DobbiKov/sci-trans-git},
doi = {10.5281/zenodo.15775111}
}
Contributing
The suggestions and pull requests are welcome. Visit the issues pages as well as the project's main page and the shared document in order to know the current direction and plans of the project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file translate_dir_lib-0.1.2.tar.gz.
File metadata
- Download URL: translate_dir_lib-0.1.2.tar.gz
- Upload date:
- Size: 122.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3702fd75d414df9f8d48a1ce1c4e90ba1889e6cd5368352eeca7e0132dfebe21
|
|
| MD5 |
28b3a95458bd0c85d6828dee0f8b34b5
|
|
| BLAKE2b-256 |
e91a700a83c7c39baeded19249ee85645de746ecdccc1bc3cdcf7d74424b3f3a
|
Provenance
The following attestation bundles were made for translate_dir_lib-0.1.2.tar.gz:
Publisher:
release.yml on DobbiKov/translate-dir-lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
translate_dir_lib-0.1.2.tar.gz -
Subject digest:
3702fd75d414df9f8d48a1ce1c4e90ba1889e6cd5368352eeca7e0132dfebe21 - Sigstore transparency entry: 1186200804
- Sigstore integration time:
-
Permalink:
DobbiKov/translate-dir-lib@137aed3419d709ede0ece87e1e069e104d6decbd -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/DobbiKov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@137aed3419d709ede0ece87e1e069e104d6decbd -
Trigger Event:
push
-
Statement type:
File details
Details for the file translate_dir_lib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: translate_dir_lib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 94.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c36ae125e38fb83d4a7d1b273b5f0a6dbdab756282ed40acdbed9eb2e17e63d
|
|
| MD5 |
ebfb8de25dcbf58eb7d16e4dd19ad88c
|
|
| BLAKE2b-256 |
c77657e651bd7be61203047139362854b2f7bdd1a95b61d783459c22fbcf8697
|
Provenance
The following attestation bundles were made for translate_dir_lib-0.1.2-py3-none-any.whl:
Publisher:
release.yml on DobbiKov/translate-dir-lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
translate_dir_lib-0.1.2-py3-none-any.whl -
Subject digest:
1c36ae125e38fb83d4a7d1b273b5f0a6dbdab756282ed40acdbed9eb2e17e63d - Sigstore transparency entry: 1186200813
- Sigstore integration time:
-
Permalink:
DobbiKov/translate-dir-lib@137aed3419d709ede0ece87e1e069e104d6decbd -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/DobbiKov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@137aed3419d709ede0ece87e1e069e104d6decbd -
Trigger Event:
push
-
Statement type: