Work with Strapi from Python via REST API
Project description
Strapi Client
Work with Strapi from Python via REST API
Install
pip install strapi-client
Documentation
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
strapi_client-2.9.1.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file strapi_client-2.9.1.tar.gz
.
File metadata
- Download URL: strapi_client-2.9.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1011-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2b3c39db341728cd1461342b7a951e4ced12242e06aa91b2a069e3c6d0c31c |
|
MD5 | e6fb6bd0e4644efbe1bb542819205968 |
|
BLAKE2b-256 | 1e39128469b0aac218ceb0ff76a2fc52022a581179f0acb8ed49b1acc4a79780 |
File details
Details for the file strapi_client-2.9.1-py3-none-any.whl
.
File metadata
- Download URL: strapi_client-2.9.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1011-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7d96bca4005103467d8b3b8ac9bcb9e192f77cd73018e7e42d34276e435cec |
|
MD5 | c5958c19116d01518571523afa92c73d |
|
BLAKE2b-256 | c7a479f3987c67011801f9705f1d0f3329646ada9366c6694c70afc031374fc1 |