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
-
Type the following command inside your terminal to create a virtual environment named venv.
python -m venv venv
-
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
-
Type the following commands inside your terminal to install the required packages.
pip install -r requirements.txt
Add environment variables
-
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. -
The environment variables will be automatically loaded when you run any script that imports and executes
base.py
from thesrc/config
directory.
Install the package in editable mode
-
Type the following command inside your terminal to install the package in editable mode:
pip install -e .
Running Tests
-
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
Built Distribution
File details
Details for the file co_op_translator-0.1.4.tar.gz
.
File metadata
- Download URL: co_op_translator-0.1.4.tar.gz
- Upload date:
- Size: 15.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89411f3d3658cf30aa5fbd81454497f60258564862ba2da97c466248c76d2680 |
|
MD5 | 3526b487002e269fecc81dbdc63764bc |
|
BLAKE2b-256 | e44b8271e9bea86cf085c9bca17c2c8a8b11402ab98de4fc524de0b0b3071c06 |
File details
Details for the file co_op_translator-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: co_op_translator-0.1.4-py3-none-any.whl
- Upload date:
- Size: 15.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1923472dc8b13419e8efb4ef04133db2bbb69b8153f3d32dcca1d8f8e52cc997 |
|
MD5 | 15f757a14e5f3680e6ca87a62a58da88 |
|
BLAKE2b-256 | 34b2ee0aecd7fbb06f0c7a27d24cdcce980e112d185b671e63d87f3be6911502 |