Skip to main content

Easily automate multilingual translations for your projects with co-op-translator, powered by advanced LLM technology.

Project description

translation_public

Setting up the Development Environment

Create a virtual environment

  1. Type the following command inside your terminal to create a virtual environment named venv.

    python -m venv venv
    
  2. Type the following command inside your terminal to activate the virtual environment.

    for Windows

    venv\Scripts\activate.bat
    

    for Mac / Linux

    source venv/bin/activate
    

[!NOTE]

If it worked, you should see (venv) before the command prompt. Remember to activate the virtual environment every time you work on the project by running from the repository's root directory.

Install the required packages

  1. Type the following commands inside your terminal to install the required packages.

    pip install -r requirements.txt
    

Add environment variables

  1. Create an .env file in the root directory of your project by copying the provided .env.template file. Fill in the environment variables in the .env file as a guide.

  2. The environment variables will be automatically loaded when you run any script that imports and executes base.py from the src/config directory.

Install the package in editable mode

  1. Type the following command inside your terminal to install the package in editable mode:

    pip install -e .
    

Running Tests

  1. To run tests, make sure your virtual environment is activated, then type the following command:

    pytest tests/
    

Sample notebooks

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

co_op_translator-0.2.0.tar.gz (15.6 MB view details)

Uploaded Source

Built Distribution

co_op_translator-0.2.0-py3-none-any.whl (15.6 MB view details)

Uploaded Python 3

File details

Details for the file co_op_translator-0.2.0.tar.gz.

File metadata

  • Download URL: co_op_translator-0.2.0.tar.gz
  • Upload date:
  • Size: 15.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for co_op_translator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cb3391db3beb991f0e8c596d9334d9c3a6171ebfaa379bc80b7e527e17c0a8e9
MD5 a3f5dfdea440888430f76a5ef5d8bcb0
BLAKE2b-256 f7e0584ad54a7686d79ba25dedfafb55ab01ec2d87fad72fad0e7b224adf2e79

See more details on using hashes here.

File details

Details for the file co_op_translator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for co_op_translator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca20ebb0f8fc1f64b3263843cbd99096f0711026c0c31a7450a7fca79c6ae32f
MD5 aea84dad0c5a36df68cfd056a5b1521b
BLAKE2b-256 0e583fb599ad46171dc41d15db8fa368f0d6a2902f8f71c8838acd70fa434c49

See more details on using hashes here.

Supported by

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