Skip to content

Repository files navigation

phrasetms-client

Python client for Phrase TMS.

This Python package was initially automatically generated by the OpenAPI Generator project.

Requirements

Python 3.9+

Note: Starting with version 1.0.0, this client uses Pydantic v2. If your project requires Pydantic v1, please remain on a 0.x.x release of this client.

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install phrasetms-client

(you may need to run pip with root permission: sudo pip install phrasetms-client)

Then import the package:

importphrasetms_client

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:

importphrasetms_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

importtimeimportphrasetms_clientfromphrasetms_client.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to https://cloud.memsource.com/web# See configuration.py for a list of all supported configuration parameters.configuration=phrasetms_client.Configuration(
host="https://cloud.memsource.com/web"
)
# Enter a context with an instance of the API clientwithphrasetms_client.ApiClient(configuration) asapi_client:
# Create an instance of the API classapi_instance=phrasetms_client.AdditionalWorkflowStepApi(api_client)
body=phrasetms_client.AdditionalWorkflowStepRequestDto() # AdditionalWorkflowStepRequestDto | (optional)try:
# Create additional workflow stepapi_response=api_instance.create_awf_step(body=body)
print("The response of AdditionalWorkflowStepApi->create_awf_step:\n")
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling AdditionalWorkflowStepApi->create_awf_step: %s\n"%e)

About

Python client library for Phrase TMS

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages