strapi-client

Work with Strapi from Python via REST API


Keywords
strapi, cms, api, rest, client, rest-api
License
MIT
Install
pip install strapi-client==2.6.1

Documentation

Strapi Client

Work with Strapi from Python via REST API

Install

pip install strapi-client

Documentation

Full API Reference

Examples

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())

Development

Create new release

Push changes to 'main' branch following Conventional Commits.

Update documentation

docs folder is being updated automatically by GitHub Actions when source files are changed.