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.1.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

strawberry_openapi-0.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strawberry_openapi-0.1.0.tar.gz
  • Upload date:
  • Size: 19.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 d393745a030aca5eccc64a8dbe5e7df903d9b77b08455f8f7f376c3900ec6a42
MD5 f9322d33d4cb5ac9ea724f61cdc83e55
BLAKE2b-256 fc11b1cb47f8e2f19d423a606979bec0765cb28fe36fb0a361e412d6d778394b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for strawberry_openapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d023f9bf469082a848c95089de0b727867174bdda5f2e1675398b1a77f529d9c
MD5 45c505728162eac6242cdc7add133669
BLAKE2b-256 0de4f8a61deea59683d0e98699ab9f232308883032b40fd178c93a2c8c3ff2e2

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