OpenAPI generated Python client package used for making request to Text2Motion API server.
To install the package:
python -m pip install text2motion-client-apiAfter installing text2motion-client-api
Next, obtain an API key from Developer portal.
For full example on how to use the APIs, navigate to the Download files in pypi and download the Source Distribution and open the generated Readme.md.
OpenAPI specification is being read from api-spec.
To modify the API version or any other config, change them in .env and commit the change.
Docker is requires to run local build. To test building locally, run the following command
PACKAGE_VERSION=0.1.0 ./generate.shPACKAGE_VERSION could be any version number. It would determine the final .whl file name, e.g. above example produces the generated python client under python-client/ directory, and build directory dist/ which includes python-client/dist/text2motion_client_api-0.1.0-py3-none-any.whl
When a new release is cut in the format releases/VERSION_NUMBER, Github Action will automatically call generate.sh and publish to Pypi.