Skip to main content

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.

Metadata

Release files for xtranslator 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xtranslator 0.1.2
File Size Uploaded Provenance Actions
xtranslator-0.1.2.tar.gz 15.2 kB With provenance Details for xtranslator-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xtranslator 0.1.2
File Interpreter ABI Platform Actions
xtranslator-0.1.2-py3-none-any.whl Python 3 none any Details for xtranslator-0.1.2-py3-none-any.whl

Total release size: 40.6 kB

Release files / xtranslator-0.1.2.tar.gz

Download URL xtranslator-0.1.2.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e257973eb6ccb117c5d83225eeee296f22893c79c57ceddc24d9b5ce714849c9
BLAKE2b-256 checksum
How to use checksums
67425d7a01f93b36e2b5a240b435822b150ce1b955197c48ef0e36f8935186e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 21, 2026.

Transparency log

Release files / xtranslator-0.1.2-py3-none-any.whl

Download URL xtranslator-0.1.2-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f8ff77c47cebf28221b2c5056b3948073a85f05b29e03ed3f97959af923501
BLAKE2b-256 checksum
How to use checksums
be9314bb575ce14e28ea7726c7f3ebc2e701b4d2fc105494fef3701bbf35c63c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 21, 2026.

Transparency log

Security for xtranslator 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xtranslator-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page