Skip to main content

Texterify Client Library

This is an asynchronous client library for interacting with the Texterify localization platform. The library provides methods to manage projects, keys, and translations using the Texterify API.

Installation

pip install texteripy

Usage

Initialization

from texteripy import Texterify

texterify = Texterify(auth_email="your_email", auth_secret="your_secret")

Retrieve Projects

projects = await texterify.get_projects()

Retrieve Keys for a Project

project_id = "your_project_id"
keys = await texterify.get_keys(project_id)

Create a Key

project_id = "your_project_id"
key_name = "new_key_name"
key_description = "new_key_description"

new_key = await texterify.create_key(project_id, key_name, key_description)

Update a Key

project_id = "your_project_id"
key_id = "your_key_id"
new_key_name = "updated_key_name"
new_key_description = "updated_key_description"

updated_key = await texterify.update_key(project_id, key_id, new_key_name, new_key_description)

Delete Keys

project_id = "your_project_id"
keys_to_delete = ["key_id_1", "key_id_2"]

deleted_keys = await texterify.delete_keys(project_id, keys_to_delete)

Create a Translation

project_id = "your_project_id"
key_id = "your_key_id"
translation_content = "new_translation_content"
language_id = "optional_language_id"

new_translation = await texterify.create_translation(project_id, key_id, translation_content, language_id=language_id)

Export a Project

project_id = "your_project_id"
export_config_id = "your_export_config_id"
export_options = {
    "format": "json",
    "original": "true"
}

exported_project = await texterify.export_project(project_id, export_config_id, export_options)

Import a File

project_id = "your_project_id"
language_id = "your_language_id"
file_path = "path/to/your/file"

import_response = await texterify.import_project(project_id, language_id, file_path)

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Release files for texteripy 0.0.3

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

Source distribution (sdist)

Source distribution for texteripy 0.0.3
File Size Uploaded
texteripy-0.0.3.tar.gz 18.2 kB Details

Release files / texteripy-0.0.3.tar.gz

Download URL texteripy-0.0.3.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dee1ea6b066aa9cbf8c85af15f855e67876a0826e7f0fa6fa2f6cfa0966ddab6
BLAKE2b-256 checksum
How to use checksums
bf3cb5da6661bbcef13d52720fdc6781e45fe7f510e081cfc0bd8470f6fcbac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

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