From 0f38a656e0f68526e698f3674451d2823b1a9086 Mon Sep 17 00:00:00 2001 From: Annicet RAZAFINDRATOVOLAHY <47118464+stic-lab@users.noreply.github.com> Date: Tue, 3 Jan 2023 19:27:40 +0300 Subject: [PATCH 1/3] Update README.md This PR update documentation by showing how to install the library. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3546b1d..f65fcc0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,12 @@ Adds GraphQL support to your Flask application. ## Usage -Just use the `GraphQLView` view from `flask_graphql` +First install this library using `pip` +``` +pip install Flask-GraphQL +``` + +Then, just use the `GraphQLView` view from `flask_graphql` ```python from flask import Flask From ba489f117149e0616d87953be7f3078da508c152 Mon Sep 17 00:00:00 2001 From: Annicet RAZAFINDRATOVOLAHY <47118464+stic-lab@users.noreply.github.com> Date: Tue, 3 Jan 2023 19:47:29 +0300 Subject: [PATCH 2/3] Update package installation on README.md Update package installation, include conda and pip command to install the package --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f65fcc0..90e0afd 100644 --- a/README.md +++ b/README.md @@ -16,14 +16,22 @@ Adds GraphQL support to your Flask application. [conda-image]: https://img.shields.io/conda/vn/conda-forge/flask-graphql.svg [conda-url]: https://anaconda.org/conda-forge/flask-graphql -## Usage +## Installation +To install this package run one of the following: -First install this library using `pip` +- using `pip`: ``` pip install Flask-GraphQL ``` +- using `conda`: +``` +conda install -c conda-forge flask-graphql +conda install -c "conda-forge/label/cf202003" flask-graphql +``` + +## Usage -Then, just use the `GraphQLView` view from `flask_graphql` +Just use the `GraphQLView` view from `flask_graphql` ```python from flask import Flask From 9ec928552c1e8f614d8f9e3a3404d7588b3708c9 Mon Sep 17 00:00:00 2001 From: Annicet RAZAFINDRATOVOLAHY <47118464+stic-lab@users.noreply.github.com> Date: Tue, 3 Jan 2023 19:50:39 +0300 Subject: [PATCH 3/3] Update documentation Update documentation for conda installation commande --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 90e0afd..02fcb71 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ pip install Flask-GraphQL - using `conda`: ``` conda install -c conda-forge flask-graphql +``` +or + +``` conda install -c "conda-forge/label/cf202003" flask-graphql ```