Metadata-Version: 2.1
Name: strapi-client
Version: 2.7.0
Summary: Work with Strapi from Python via REST API
Home-page: https://github.com/Roslovets-Inc/strapi-client
License: MIT
Keywords: strapi,cms,api,rest
Author: Pavel Roslovets
Author-email: p.v.roslovets@gmail.com
Requires-Python: >=3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: aiohttp
Project-URL: Repository, https://github.com/Roslovets-Inc/strapi-client
Description-Content-Type: text/markdown

# Strapi Client

Work with Strapi from Python via REST API

## Install

```bash
pip install strapi-client
```

## Documentation

[Full API Reference](./docs)

## Examples

Quick start:

```python
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](https://www.conventionalcommits.org/en/v1.0.0/).

### Update documentation

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

