--- id: flask-graphql version: "2.0.1" license: MIT license_treatment: permissive maintenance: abandoned --- # Flask-GraphQL — Adds GraphQL support to your Flask application License: permissive · Maintenance: abandoned · Downloads: 690.0K/mo ## What it is and what it does Flask-GraphQL is a lightweight integration layer that mounts a GraphQL endpoint into a Flask application. It wraps the GraphQLView class, which you register as a Flask route to handle GraphQL queries against a schema you provide. The package also optionally serves GraphiQL, a browser-based IDE for exploring and testing your GraphQL API. The package supports batch query execution, custom context and root values, pretty-printed responses, and custom executors. You can subclass GraphQLView to implement dynamic behavior per request. However, the project has been abandoned since late 2019 with no maintenance activity, and it declares no explicit runtime dependencies, making compatibility with current Flask and GraphQL library versions uncertain. Use it for: - Add a GraphQL endpoint to an existing Flask REST API without rewriting your application structure. - Serve GraphiQL in development to let frontend developers explore and test your GraphQL schema interactively. - Implement batch query support for Apollo Client or similar frameworks that benefit from query batching. - Migrate from REST to GraphQL incrementally by running both REST and GraphQL endpoints on the same Flask app. - Customize GraphQL execution behavior per request by subclassing GraphQLView and overriding get_root_value. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds a GraphQL endpoint to Flask applications, allowing you to serve GraphQL queries alongside your existing Flask routes with optional GraphiQL browser interface for testing. No, unless you are maintaining legacy code already using this package. The project is abandoned (last release 2019, no commits since 2023) with no declared runtime dependencies, making compatibility with current Flask and graphql-core versions uncertain. For new projects, use an actively maintained alternative. ## Install pip install flask-graphql uv add flask-graphql poetry add flask-graphql ## Installing Flask-GraphQL Before you install: Installation friction is high; the package has been abandoned since 2019 with no updates for over 2444 days. The last commit was 2023-01-03, but the project is no longer actively maintained. Consider whether you need ongoing support or security updates before adopting. License in practice: MIT license is permissive and imposes no significant restrictions on use, modification, or distribution in commercial or private projects. Quickstart: from flask_graphql import GraphQLView app.add_url_rule('/graphql', view_func=GraphQLView.as_view('graphql', schema=schema, graphiql=True)) You must have a GraphQL schema object already defined and Flask installed; the package itself declares no runtime dependencies. Verify before relying: - Whether this package works with current versions of Flask and graphql-core (no runtime dependencies declared, compatibility unclear). - Whether the package supports modern Python versions beyond those listed in classifiers (3.7 was the latest listed). - Security implications of using abandoned software in production environments. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 690.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags graphql flask integration, add graphql to flask app, graphql endpoint flask, graphiql browser interface, graphql query endpoint, flask graphql view, graphql api flask, graphql, abandoned [View on SkillFed](https://skillfed.io/packages/flask-graphql) · [View on PyPI](https://pypi.org/project/flask-graphql/)