FluentC Python SDK
A lightweight Python SDK for interacting with the FluentC Translation API — an AI-powered translation and language detection service designed for real-time, batch, and multilingual content workflows.
🚀 Installation
pip install fluentc-sdk
🔐 Authentication
All API requests require an API key (your Site UUID). You can obtain your API key from your FluentC dashboard.
from fluentc_sdk import FluentCClient
client = FluentCClient(api_key="your-site-uuid")
⚡ Quickstart
Translate Text
result = client.translate(
input_text="Hello, how are you?",
input_format="text",
target_language="es",
source_language="en",
mode="real-time"
)
print(result["translation"])
Detect Language
lang = client.detect_language(input_text="Bonjour tout le monde", input_format="text")
print(lang)
Get Available Languages
langs = client.get_languages()
print(langs)
Get Batch Translation Results
result = client.get_results(job_id="abc123jobid456")
print(result)
📘 API Methods
| Method | Description |
|---|---|
translate() |
Translate text or HTML content, in real-time or batch mode |
detect_language() |
Auto-detect language of text or HTML |
get_results() |
Retrieve batch translation results using job ID |
get_languages() |
List available target and source languages |
❗ Error Handling
All API errors raise FluentCAPIError. Example:
from fluentc_sdk.exceptions import FluentCAPIError
try:
client.translate("Hello", "text", "xx")
except FluentCAPIError as e:
print(f"Error: {e.message}")
🧪 Development
Install locally:
pip uninstall fluentc-sdk
pip install .
Build:
python setup.py sdist bdist_wheel
Publish:
twine upload dist/*
📄 License
MIT License
🔗 Useful Links
Metadata
Release files for fluentc-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fluentc_sdk-0.1.0.tar.gz | 2.3 kB | Without provenance | Details for fluentc_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fluentc_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fluentc_sdk-0.1.0-py3-none-any.whl |
Total release size: 4.4 kB
Release files / fluentc_sdk-0.1.0.tar.gz
| Download URL | fluentc_sdk-0.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89de8bdcddba9a5e640d9f73c7ffe8a20e6cc125671a25efb68279ceb009695d
|
|
BLAKE2b-256 checksum How to use checksums |
e522ea27a4a8a2ca6309f4c557445d53c7e1321a5ec7190e4849d13c2db921d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Release files / fluentc_sdk-0.1.0-py3-none-any.whl
| Download URL | fluentc_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0b9a674d983ec00d429ce41c97c17c44fb18e1e66ed2628e42c931f253a0432
|
|
BLAKE2b-256 checksum How to use checksums |
1e9a490d2e928018c2b9552cd716c85a08a2ba27d5fdd079335a551cf850403e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.4
|
Security for fluentc-sdk 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.