Work with Strapi from Python via REST API
pip install strapi-client
Quick start:
import asyncio
from strapi_client import StrapiClient
async def main():
strapi = StrapiClient(strapi_url)
await strapi.authorize(your_identifier, your_password) # optional
users = await strapi.get_entries('users', filters={'username': {'$eq': 'Pavel'}})
user_id = users['data'][0]['id']
await strapi.update_entry('users', user_id, data={'username': 'Mark'})
asyncio.run(main())
Push changes to 'main' branch following Conventional Commits.
docs
folder is being updated automatically by GitHub Actions when source files are changed.