Work with Strapi from Python via REST API
Project description
PyStrapi
Work with Strapi from Python via REST API
Install
pip install pystrapi
Documentation
Examples
Quick start:
import asyncio
from pystrapi 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
pystrapi-3.0.0.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pystrapi-3.0.0.tar.gz.
File metadata
- Download URL: pystrapi-3.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1029-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc10343023071f3fb3d8a095b878efde459f92eba9c73e38f79f68aeaf639df
|
|
| MD5 |
8f26648ab3b9e2c44c0f613097b66b91
|
|
| BLAKE2b-256 |
77d5479aee4e5f40ae041cf9892d5728b66d144624782219eae7060ac75e88e7
|
File details
Details for the file pystrapi-3.0.0-py3-none-any.whl.
File metadata
- Download URL: pystrapi-3.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1029-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
424901baabd823acbe9070da20a225a0acbb0b653ca2c2c7140ea221d4bfdbec
|
|
| MD5 |
dc6041699cd65320d64d3057fcfe0cb2
|
|
| BLAKE2b-256 |
77136d98d711bc813cc280ea45a3566446d5fb44a1bcf3dadc6ffd8b66bf7bcf
|