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
Lint
Run prospector:
prospector
Create new release
Push changes to 'main' branch following Conventional Commits.
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.1.0.tar.gz
(5.0 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.1.0.tar.gz.
File metadata
- Download URL: pystrapi-3.1.0.tar.gz
- Upload date:
- Size: 5.0 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 |
f3422b8f7ad0a69df876b36855b399aa9b265098762d16bad660590d31c9dea6
|
|
| MD5 |
94f27329992bcb25ad603bee240f0f02
|
|
| BLAKE2b-256 |
9d1205cb306bd11cec11b0ba145fb3c475983eb672e134b26e71435761ffbb92
|
File details
Details for the file pystrapi-3.1.0-py3-none-any.whl.
File metadata
- Download URL: pystrapi-3.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 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 |
ba31e71e4b08ec21db3735ccf1d1df14e1bd709c45ca4c4de7faa2ab537c9ca4
|
|
| MD5 |
7f6f7939bcdf0f0f5877b705f3279d58
|
|
| BLAKE2b-256 |
245725f29eeea53d911dcfcb42783c3778660f2d2c6e32d1db88ce3ee8860685
|