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.2.tar.gz (15.2 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.2-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

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

Hashes for xtranslator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e257973eb6ccb117c5d83225eeee296f22893c79c57ceddc24d9b5ce714849c9
MD5 d2071b4c3e679059c12675878b0b6a2f
BLAKE2b-256 67425d7a01f93b36e2b5a240b435822b150ce1b955197c48ef0e36f8935186e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtranslator-0.1.2.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.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

Hashes for xtranslator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f8ff77c47cebf28221b2c5056b3948073a85f05b29e03ed3f97959af923501
MD5 6a5c19eeee67205f75b592f9ab5af035
BLAKE2b-256 be9314bb575ce14e28ea7726c7f3ebc2e701b4d2fc105494fef3701bbf35c63c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtranslator-0.1.2-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