Skip to main content

Unofficial Texterify API client for Python

Project description

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.

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

texteripy-0.0.2.tar.gz (17.9 kB view details)

Uploaded Source

File details

Details for the file texteripy-0.0.2.tar.gz.

File metadata

  • Download URL: texteripy-0.0.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for texteripy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fe6b957028e442542f6ff95a7ac675dbb16e86a22a1219d70382d4194ae30593
MD5 4e9731c3cffcf00c8ec24f2e42c0ebd8
BLAKE2b-256 b9711ab8170b85d4e0d0bf423270e4b9168c24e6f0b6bb477898476f2ab842a7

See more details on using hashes here.

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