Skip to main content

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! 🌟🚀🍓

Release files for strawberry-openapi 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strawberry-openapi 0.2.1
File Size Uploaded
strawberry_openapi-0.2.1.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strawberry-openapi 0.2.1
File Interpreter ABI Platform
strawberry_openapi-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.8 kB

Release files / strawberry_openapi-0.2.1.tar.gz

Download URL strawberry_openapi-0.2.1.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
42505ced93eb43aaba03e82a957c8bada784a3a4d4a2fbb4573639e7a4026e9b
BLAKE2b-256 checksum
How to use checksums
ad14822cbb15c606a68a972fdf3ee8933ac614f3923ba46833a7e34b60c24bfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.11.1 CPython/3.12.0

Release files / strawberry_openapi-0.2.1-py3-none-any.whl

Download URL strawberry_openapi-0.2.1-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5e7c171745b897c04f52334241b21c9f4700744a8abd5bbb65b5a0def087d07
BLAKE2b-256 checksum
How to use checksums
67fabb965dc8c44a50965b6148cc1304ef92b4542d17b3a0d0695e2ab9a458f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.11.1 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page