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:
from strapi_client import StrapiClient
strapi = StrapiClient(strapi_url)
strapi.authorize(your_identifier, your_password) # optional
users = strapi.get_entries('users', filters={'username': {'$eq': 'Pavel'}})
user_id = users['data'][0]['id']
strapi.update_entry('users', user_id, data={'username': 'Mark'})
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-1.1.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for strapi_client-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd4bb763836824e6e0faffd9140086cc17e5c318c45aa10718a9e9806d1e4e72 |
|
MD5 | 7acd69ae6d93320040359c1a6b72a0c2 |
|
BLAKE2b-256 | f5cf3ffa3ac54bfdd0fabe5a5b1c2875af31957985aebb9826204bdf876c3606 |