Client for the Phrase TMS API.
Project description
pyphrase
Unofficial Python client for interacting with the Phrase TMS API (formerly Memsource).
About The Project
Work in progress, with some wrinkles to be ironed out and tests to be written. Remember to pin version if you use this for something important!
Modern Python client for interacting with the Phrase TMS API, both for sync and async use.
- Implements all documented paths and operations
- Typed (where possible) for validation and code completion support
- Fully documented methods with complete content of the Phrase TMS API docs.
Built With
The code is based on the Phrase TMS OpenAPI docs as of March 1 2023, which was parsed using datamodel-code-generator (for the models) and a slightly modified version of swagger-to (for the methods).
Getting Started
Installation
Install via pip
pip install pyphrase
Or clone the repo
git clone https://github.com/kuhnemann/pyphrase.git
Usage
Initialize the client with the base URL of your Plunet instance, authenticate and start doing whatever you aim to do.
from pyphrase import SyncPhraseTMSClient, sync_get_phrase_tms_token
phrase_client = SyncPhraseTMSClient()
token_object = sync_get_phrase_tms_token(username=username, password=password)
project_data = phrase_client.project.getProject(token_object.token, projectUid="YOURPROJECT")
Complex objects are included by default, as generated by datamodel-code-generator.
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Henrik Kühnemann - @hkuhnemann - hello@yellownape.se
Project Link: https://github.com/kuhnemann/pyphrase
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.