A package for translating text and detecting languages
Project description
XTranslator
XTranslator is a package that allows you to detect the language of a given text and translate it into various languages. With its simple and intuitive interface, you can easily integrate language detection and translation capabilities into your applications.
Installation
To install XTranslator, simply run the following command:
pip install xtranslator
Usage
To use XTranslator in your project, follow these steps:
- Import the XTranslator package into your code:
import xtranslator
- Detect the language of a text:
from xtranslator import detect
text = "Hello, my nam is XTranslator"
detector = "fasttext"
print(detect(text, detector))
- Translate text into another language:
from xtranslator import translate
text = "Hello, world!"
translator = "google"
model_name = "google"
dest_language = "sk"
detector = "fasttext"
print(translate(text, dest_language, translator, model_name, detector))
Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on the GitHub repository.
License
XTranslator is licensed under the MIT License.
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
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 xtranslator-0.1.2.tar.gz.
File metadata
- Download URL: xtranslator-0.1.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e257973eb6ccb117c5d83225eeee296f22893c79c57ceddc24d9b5ce714849c9
|
|
| MD5 |
d2071b4c3e679059c12675878b0b6a2f
|
|
| BLAKE2b-256 |
67425d7a01f93b36e2b5a240b435822b150ce1b955197c48ef0e36f8935186e6
|
Provenance
The following attestation bundles were made for xtranslator-0.1.2.tar.gz:
Publisher:
publish.yml on ivanvykopal/xtranslator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xtranslator-0.1.2.tar.gz -
Subject digest:
e257973eb6ccb117c5d83225eeee296f22893c79c57ceddc24d9b5ce714849c9 - Sigstore transparency entry: 1154535375
- Sigstore integration time:
-
Permalink:
ivanvykopal/xtranslator@72544b5ffcda7728eee15c28bc3c14945fc0f8fc -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/ivanvykopal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@72544b5ffcda7728eee15c28bc3c14945fc0f8fc -
Trigger Event:
release
-
Statement type:
File details
Details for the file xtranslator-0.1.2-py3-none-any.whl.
File metadata
- Download URL: xtranslator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 25.4 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 |
a0f8ff77c47cebf28221b2c5056b3948073a85f05b29e03ed3f97959af923501
|
|
| MD5 |
6a5c19eeee67205f75b592f9ab5af035
|
|
| BLAKE2b-256 |
be9314bb575ce14e28ea7726c7f3ebc2e701b4d2fc105494fef3701bbf35c63c
|
Provenance
The following attestation bundles were made for xtranslator-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on ivanvykopal/xtranslator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xtranslator-0.1.2-py3-none-any.whl -
Subject digest:
a0f8ff77c47cebf28221b2c5056b3948073a85f05b29e03ed3f97959af923501 - Sigstore transparency entry: 1154535378
- Sigstore integration time:
-
Permalink:
ivanvykopal/xtranslator@72544b5ffcda7728eee15c28bc3c14945fc0f8fc -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/ivanvykopal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@72544b5ffcda7728eee15c28bc3c14945fc0f8fc -
Trigger Event:
release
-
Statement type: