Skip to main content

Easily convert your Strawberry GraphQL schema to OpenAPI

Project description

Strawberry OpenAPI

🍓 Introduction

Strawberry OpenAPI is a dynamic library that bridges the gap between GraphQL and REST APIs. Leveraging Strawberry GraphQL, this library allows developers to create REST APIs compliant with OpenAPI specifications using GraphQL operations and schemas. Ideal for Python developers looking to combine the best of both GraphQL and REST worlds.

🚀 Features

  • GraphQL to REST: Easily convert GraphQL operations to RESTful endpoints.
  • OpenAPI Compliance: Generates OpenAPI specs for your REST API, ensuring standardization and interoperability.
  • Strawberry Integration: Seamlessly integrates with existing Strawberry GraphQL schemas.
  • Customizable: Flexible enough to suit various project needs.
  • Supports multiple frameworks: Supports Django, FastAPI, and more!

🔧 Installation

pip install strawberry-openapi

🛠️ Usage

Basic Setup

from strawberry_openapi import StrawberryOpenAPI

# Create your Strawberry GraphQL schema
schema = ...

# Initialize Strawberry OpenAPI
openapi = StrawberryOpenAPI(schema, operations="./operations/**/*.graphql")


app = openapi.as_django()

📚 Documentation

For more in-depth documentation, please visit our official documentation.

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines for more information.

📄 License

This project is licensed under the MIT License.


Feel free to fork, star, and contribute! Let's make API development easier and more efficient together! 🌟🚀🍓

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

strawberry_openapi-0.2.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

strawberry_openapi-0.2.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file strawberry_openapi-0.2.0.tar.gz.

File metadata

  • Download URL: strawberry_openapi-0.2.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.4 CPython/3.12.0

File hashes

Hashes for strawberry_openapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aa815eb49ab129daebac81f126bd905c135ca760a3ce7d72052c3dae63815196
MD5 1b5f3f6558914760b3fc6366afcbebf4
BLAKE2b-256 af9c0f7759b9a1899536ef91b2fcde24057edf8c56b721afa33a14ba9a85415e

See more details on using hashes here.

File details

Details for the file strawberry_openapi-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for strawberry_openapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 618625b32587520d658a8a1def6690e114032de4647c243bfd411aad510102e4
MD5 1c3649dd90212b5ecde116963195871e
BLAKE2b-256 312311af34eb61a349dbf05c0b5cee3c61be4d507bc500a1f25fb88a30eb22e7

See more details on using hashes here.

Supported by

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