Metadata-Version: 2.4
Name: phrasetms_client
Version: 1.0.0
Summary: Phrase TMS API
Home-page: https://github.com/Martin005/phrasetms-python
Author: Martin Chrástek
Author-email: 
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: setuptools>=21.0.0
Requires-Dist: python-dateutil>=2.5.3
Requires-Dist: urllib3>=1.25.3
Requires-Dist: pydantic>=2.0.0
Dynamic: author
Dynamic: home-page
Dynamic: license-file

# phrasetms-client

Python client for Phrase TMS.

This Python package was initially automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.

## Requirements

Python 3.9+

> Note: Starting with version `1.0.0`, this client uses [Pydantic v2](https://docs.pydantic.dev/2.12/). If your project requires [Pydantic v1](https://docs.pydantic.dev/1.10/), 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:

```sh
pip install phrasetms-client
```

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

Then import the package:

```python
import phrasetms_client
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```

(or `sudo python setup.py install` to install the package for all users)

Then import the package:

```python
import phrasetms_client
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python
import time
import phrasetms_client
from phrasetms_client.rest import ApiException
from pprint import pprint

# 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 client
with phrasetms_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = phrasetms_client.AdditionalWorkflowStepApi(api_client)
    body = phrasetms_client.AdditionalWorkflowStepRequestDto() # AdditionalWorkflowStepRequestDto |  (optional)

    try:
        # Create additional workflow step
        api_response = api_instance.create_awf_step(body=body)
        print("The response of AdditionalWorkflowStepApi->create_awf_step:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AdditionalWorkflowStepApi->create_awf_step: %s\n" % e)
```
