This is the official Python client for the Motif Studio API, which allows you to query and interact with motif search results from various hosts.
https://motifstudio.bossdb.org
from motifstudio_client import MotifStudioClient
client = MotifStudioClient()
# List available hosts
hosts = client.list_hosts()
print(hosts)
For more examples, see the docs.
To generate the FastAPI client for the Motif Studio API, you can use the openapi-python-client
tool. This tool will create a Python client based on the OpenAPI specification provided by the Motif Studio API.
uvx openapi-python-client generate --url https://api.motifstudio.bossdb.org/openapi.json --overwrite --meta setup --output-path ./motifstudio_client/fastapi_client/