Python client for Phrase TMS.
This Python package was initially automatically generated by the OpenAPI Generator project.
Python 3.9+
Note: Starting with version
1.0.0, this client uses Pydantic v2. If your project requires Pydantic v1, please remain on a0.x.xrelease of this client.
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_clientInstall 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_clientExecute pytest to run the tests.
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)