Skip to main content

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

For French users and members of Université Paris-Saclay

This CLI supports ilaas (French independent LLM service provider) and LLMs on MyDocker that any member of Paris-Saclay cluster can access for free.

In order to translate documents on MyDocker open MyDocker docs and create JupyterLab et Python instance and you will be able to open jupyter in your browser. Then, open terminal (important: in the jupyter tab in web) – you will be able to install CLI and translate your document.

For using open-source llms on jupyter: run lesia set-llm aristoteonmydocker <model> command. As of April 24, the next models are availible:

  • gemma-4-31b
  • gpt-oss-120b
  • llama-3.1-8b
  • llama-3.3-70b
  • mistral-medium-250523
  • mistral-small-3.2-24b
  • qwen-3.6-35b-instruct

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

  1. Clone the repo: git clone https://github.com/DobbiKov/lesia
  2. Enter to the directory: cd lesia
  3. Install the CLI: uv tool install -e .
  4. Use it: lesia

For in-project library usage

  1. Clone the repo: git clone https://github.com/DobbiKov/lesia
  2. Enter to your project where you want to use this library (cd <your_project_path>)
  3. Install the library as a dependency using pip: pip install <path_to_the_library_directory>
  4. Enjoy!

For the library development and contribution uses

  1. Ensure you have uv tool installed (visit their site for the installation guide)
  2. Clone the repo: git clone https://github.com/DobbiKov/lesia
  3. Enter cd lesia
  4. Install dependencies uv sync
  5. Enjoy

Testing

  1. Install the dependencies using uv sync
  2. Run tests: uv run pytest

Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lesia-0.1.4.tar.gz (127.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lesia-0.1.4-py3-none-any.whl (96.0 kB view details)

Uploaded Python 3

File details

Details for the file lesia-0.1.4.tar.gz.

File metadata

  • Download URL: lesia-0.1.4.tar.gz
  • Upload date:
  • Size: 127.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lesia-0.1.4.tar.gz
Algorithm Hash digest
SHA256 75b5f5efec0fedc7bd4ea1e1698a13f8d3bd71c49cb6953d52c228345a73286b
MD5 f8adb2684c3ae6550c45ba65d9ef5f6d
BLAKE2b-256 4ef42f154ba25f0ffa8d19945371296b26b778365b5efec3ddc650534254e2ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for lesia-0.1.4.tar.gz:

Publisher: release.yml on DobbiKov/lesia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lesia-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: lesia-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lesia-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b2e3b578bda280141e2d3e5f65683ca08632fd2f717474facdf8e8ccb41a69d
MD5 f255a32a5fdc9311c6c6414ccf3b1f45
BLAKE2b-256 43713b2573aab848ef1370349fb611dbbc1746719a4889b7c338e7c64ddeaa53

See more details on using hashes here.

Provenance

The following attestation bundles were made for lesia-0.1.4-py3-none-any.whl:

Publisher: release.yml on DobbiKov/lesia

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page