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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for strawberry_openapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 42505ced93eb43aaba03e82a957c8bada784a3a4d4a2fbb4573639e7a4026e9b
MD5 7e6470489b6b1ddf275d03410b8d409c
BLAKE2b-256 ad14822cbb15c606a68a972fdf3ee8933ac614f3923ba46833a7e34b60c24bfc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for strawberry_openapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5e7c171745b897c04f52334241b21c9f4700744a8abd5bbb65b5a0def087d07
MD5 355f01f646a2bfe25bb0d40464fddb57
BLAKE2b-256 67fabb965dc8c44a50965b6148cc1304ef92b4542d17b3a0d0695e2ab9a458f9

See more details on using hashes here.

Provenance

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