Skip to main content

Work with Strapi from Python via REST API

Project description

PyStrapi

Work with Strapi from Python via REST API

Install

pip install pystrapi

Documentation

Full API Reference

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystrapi-3.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for pystrapi-3.0.0.tar.gz
Algorithm Hash digest
SHA256 1bc10343023071f3fb3d8a095b878efde459f92eba9c73e38f79f68aeaf639df
MD5 8f26648ab3b9e2c44c0f613097b66b91
BLAKE2b-256 77d5479aee4e5f40ae041cf9892d5728b66d144624782219eae7060ac75e88e7

See more details on using hashes here.

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

Hashes for pystrapi-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 424901baabd823acbe9070da20a225a0acbb0b653ca2c2c7140ea221d4bfdbec
MD5 dc6041699cd65320d64d3057fcfe0cb2
BLAKE2b-256 77136d98d711bc813cc280ea45a3566446d5fb44a1bcf3dadc6ffd8b66bf7bcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page