fastgraphql-0.0.9
توضیحات
FastGraphQL is intended to help developer create code driven GraphQL APIs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fastgraphql-0.0.9 |
| نام | fastgraphql |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hugo Wruck Schneider |
| ایمیل نویسنده | hugowschneider@gmail.com |
| آدرس صفحه اصلی | https://github.com/hugowschneider/fastgraphql |
| آدرس اینترنتی | https://pypi.org/project/fastgraphql/ |
| مجوز | MIT |
# FastGraphQL

<p style="text-align: center;">FastGraphQL is a tool for creating code-driven GraphQL APIs.</p>
----------



[](https://codecov.io/gh/hugowschneider/fastgraphql)

[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
[](https://sonarcloud.io/summary/new_code?id=hugowschneider_fastgraphql)
-------
Documentation: <a href="https://hugowschneider.github.io/fastgraphql" target="_blank">https://hugowschneider.github.io/fastgraphql</a>
Source Code: <a href="https://github.com/hugowschneider/fastgraphql" target="_blank">https://github.com/hugowschneider/fastgraphql</a>
# Disclaimer
*This is still a work in progress and all support is welcomed*
# Motivation
So far most of the projects that use GraphQL need to duplicate
many definitions to be able to have a consistent GraphQL API schema
alongside well-defined models that governs the development and the application.
FastGraphQL proposes to shortcut the path between python models and GraphQL schema
using **Pydantic** models. This ensures not only a single source of truth when comes to
type, input, query and mutation definitions, but also the
ability to use **Pydantic** to features on models and inputs.
# Installation
```shell
$ pip install "fastgraphql[all]"
```
You will also need an ASGI server as well to serve your API
```shell
$ pip install "uvicorn[standard]"
```
# Usage
The very first Hello Work example.
```python
from fastapi import FastAPI
from fastgraphql import FastGraphQL
from fastgraphql.fastapi import make_ariadne_fastapi_router
app = FastAPI()
fast_graphql = FastGraphQL()
@fast_graphql.query()
def hello() -> str:
return "Hello FastGraphQL!!!"
app.include_router(make_ariadne_fastapi_router(fast_graphql=fast_graphql))
```
```shell
$ uvicorn main:app --reload
```
A simple example will not show you the all **FastGraphQL** capabilities, but it
shows how simple this can be.
# Learn
To start your journey into **FastGraphQL**, please refer to [Getting Started](https://hugowschneider.github.io/fastgraphql/tutorial/).
You can find the API documentation [here](https://hugowschneider.github.io/fastgraphql/api/fastgraphql/).
# Integration
FastGraphQL generates independently of any integration a data structure containing all GraphQL definitions and resolvers, which
generates a GraphQL schema.
With that said, all integration will add functionalities and provide
easy and alternative deployments of the defined API.
You can find out more about the different integrations under [Integrations](https://hugowschneider.github.io//fastgraphql/under-construction/)
# Acknowledgment
Thanks to [FastAPI](https://fastapi.tiangolo.com) for the inspiration!
نیازمندی
| مقدار | نام |
|---|---|
| >=1.4.0,<1.5.0 | SQLAlchemy[mypy] |
| >=0.14,<1.0 | ariadne |
| >=0.70,<1.0 | fastapi |
| >=3.0,<4.0 | graphql-core |
| >=1.10.2,<2.0.0 | pydantic |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.1,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl fastgraphql-0.0.9:
pip install fastgraphql-0.0.9.whl
نصب پکیج tar.gz fastgraphql-0.0.9:
pip install fastgraphql-0.0.9.tar.gz