Skip to content

Releases: Akinwalee/strapi-python

v0.1.1 - Initial Release

26 Nov 17:25

Choose a tag to compare

Initial Release

The first release of strapi-py, the unofficial Python client library for Strapi CMS.

Features

Core Functionality

  • Easy-to-use client interface with intuitive API for interacting with Strapi.
  • Authentication via the API token.
  • Collection type operations with full CRUD support (find, findOne, create, update, delete).
  • Single type operations for singleton content types.
  • Custom endpoint support via flexible fetch() method.
  • File upload management with support for single and multiple file uploads.

Request Handling

  • Custom headers support for all requests.
  • Query parameters with automatic URL encoding.
  • HTTP interceptors for request/response customization.
  • Comprehensive error handling with detailed error messages.

Developer Experience

  • Type hints throughout for better IDE support.
  • Comprehensive documentation with usage examples.
  • 100% test coverage with 201+ test cases.
  • Clean, intuitive API designed for Python developers.

Installation

pip install strapi-py

Quick Start

from strapi_client import strapi

# Initialize client
client = strapi(
    base_url="http://localhost:1337/api",
    auth="your-api-token"
)

# Fetch articles
articles = client.collection("articles").find()

Documentation

Full documentation and examples are available in the README.

Acknowledgments

Many thanks to the Strapi team for writing the JS/TS client and to everyone who will use and contribute to making this library better!

Full Changelog: https://github.com/Akinwalee/strapi-python/commits/v0.1.1