AccessibleTranslator SDK API
Project description
accessibletranslator-python
Official SDK API for AccessibleTranslator - automated cognitive accessibility
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.1.0
- Package version: 1.1.0
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import accessibletranslator
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import accessibletranslator
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import accessibletranslator
from accessibletranslator.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.accessibletranslator.com
# See configuration.py for a list of all supported configuration parameters.
configuration = accessibletranslator.Configuration(
host = "https://api.accessibletranslator.com"
)
# Enter a context with an instance of the API client
async with accessibletranslator.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = accessibletranslator.SystemApi(api_client)
try:
# Public Health Check
api_response = await api_instance.check()
print("The response of SystemApi->check:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling SystemApi->check: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.accessibletranslator.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| SystemApi | check | GET /health | Public Health Check |
| TranslationApi | target_languages | GET /api/target-languages | Get Available Target Languages |
| TranslationApi | transformations | GET /api/transformations | Get Available Transformations |
| TranslationApi | translate | POST /api/translate | Translate Text |
| UserManagementApi | word_balance | GET /users/word-balance | Get Word Balance |
Documentation For Models
- BasicHealthCheck
- FunctionInfo
- HTTPValidationError
- TargetLanguagesResponse
- TokenVerificationResponse
- TransformationInfo
- TransformationsResponse
- TranslationRequest
- TranslationResponse
- UserProfileResponse
- ValidationError
- ValidationErrorLocInner
- WordBalanceResponse
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file accessibletranslator-1.1.0.tar.gz.
File metadata
- Download URL: accessibletranslator-1.1.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2092fda0e0caed5d0869b240cf3abf86395a2a7ff6adb31ba4a1e31fe6fe045
|
|
| MD5 |
f004d5354fc997bca458f87213b76fd6
|
|
| BLAKE2b-256 |
c364c5be1f19525036c9b2626676990e9f10e838bc5145120d10c7f3c8035103
|
File details
Details for the file accessibletranslator-1.1.0-py3-none-any.whl.
File metadata
- Download URL: accessibletranslator-1.1.0-py3-none-any.whl
- Upload date:
- Size: 46.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8d42b778380866a75907dad68e4cf9669e2087258eaa5b6a248538b221cedf7
|
|
| MD5 |
dafd65ba5ec94ac3bc629703bd409f83
|
|
| BLAKE2b-256 |
73a3a2997f0fcdcc691dd0a3df4ff64a890451c9e29611cb66effe09264dc8a1
|