Skip to main content

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:

  1. Import the XTranslator package into your code:
import xtranslator
  1. Detect the language of a text:
from xtranslator import detect
text = "Hello, my nam is XTranslator"
detector = "fasttext"
print(detect(text, detector))
  1. 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

xtranslator-0.1.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

xtranslator-0.1.1-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file xtranslator-0.1.1.tar.gz.

File metadata

  • Download URL: xtranslator-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xtranslator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c357afb17e8099027d3d1171c70d77586ac5158d9ff3302000433331b7e6fae3
MD5 2e0dd6feefd1b629570c2044b172d3a6
BLAKE2b-256 30edab9fc93adb5241fdd28a058562aad62fd3971d2118dad60834cf25d60450

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtranslator-0.1.1.tar.gz:

Publisher: publish.yml on ivanvykopal/xtranslator

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

File details

Details for the file xtranslator-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: xtranslator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xtranslator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42881606f2634180062e97477d9315e46f5dcf6d7de263ed9c3effcca7fb693c
MD5 325eac2b06221e2cdf64696e01060885
BLAKE2b-256 4e14102e92d2fbe54d4e484bd35f5fa47d8719719e0b33c6300eabad0107e398

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtranslator-0.1.1-py3-none-any.whl:

Publisher: publish.yml on ivanvykopal/xtranslator

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