Skip to main content

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)

Source distribution for fluentc-sdk 0.1.0
File Size Uploaded
fluentc_sdk-0.1.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fluentc-sdk 0.1.0
File Interpreter ABI Platform
fluentc_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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