<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pygraphile---postgraphile-for-python-kxvyrpqv1" -->

---
title: PyGraphile - PostGraphile for python | daily.dev
description: A developer is building PyGraphile, a Python port of PostGraphile that auto-generates GraphQL schemas from database tables. Unlike PostGraphile, which only...
canonical: https://daily.dev/posts/pygraphile---postgraphile-for-python-kxvyrpqv1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PyGraphile - PostGraphile for python | daily.dev
og:description: A developer is building PyGraphile, a Python port of PostGraphile that auto-generates GraphQL schemas from database tables. Unlike PostGraphile, which only...
og:url: https://daily.dev/posts/pygraphile---postgraphile-for-python-kxvyrpqv1
og:image: https://api.daily.dev/og/posts/kxvYRpQv1.png
og:image:alt: PyGraphile - PostGraphile for python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PyGraphile - PostGraphile for python

**[dipankar shaw](https://daily.dev/sources/hkp6zkkpttai0afiyhfwt)** · [@dipankarshaw](https://daily.dev/dipankarshaw) · 2 min read · 0 upvotes · 0 comments

## Summary

A developer is building PyGraphile, a Python port of PostGraphile that auto-generates GraphQL schemas from database tables. Unlike PostGraphile, which only works with Postgres in a Node.js environment, PyGraphile aims to support additional databases like SQLite and MariaDB/MySQL, and can be mounted as an ASGI app on FastAPI (with WSGI support under testing). Current features include automatic schema generation for SQLite and MariaDB/MySQL, querying any table, and an Apollo Playground interface. The author is soliciting community feedback and discloses that AI was used during development. Links to GitHub, a project website, and PyPI package are provided.

## Content

In my last company we had a project template which have a linear like sync engine implemented. One of the core requirement for that sync engine to work was **Postgraphile**, it ensure that we are not making backend api manually. This was the first time I can across **Postgraphile** and it was really fascinating. I don't have to create any `GET` endpoints to query data or `POST` endpoints to add new data, everything is done by **Postgraphile**.

But the problem I faced was **Postgraphile** only supports _postgres_ for database and it can only be used in a node.js backend or as a standalone process.

So I am working on a port in **Python** which will support other databases and can be used with FastAPI, Flask or any other python backend framework.

So Far what I have done

- Automatically create schema for queries in sqlite
- Automatically create schema for queries in mariadb/mysql
- Provide ASGI app which can be mounted on a FastAPI application.
- Provide WSGI app which can be mounted on a FastAPI application. [Under testing now]
- Support query to any table
- Apollo Playground

I am inviting all to try it out and share their feedback.

Github: [dshaw0004/pygraphile](https://github.com/dshaw0004/pygraphile)

Website: [link](https://pygraphile.dshaw.dev)

PyPi: [pygraphile](https://pypi.org/project/pygraphile/)

> Disclosure: AI is actively used during development of the package.

## Similar posts on daily.dev

- [Maxteabag/sqlit: A user friendly TUI for SQL databases. Written in python. Supports SQL server, Mysql, PostreSQL and SQLite, Turso and more.](https://daily.dev/posts/maxteabag-sqlit-a-user-friendly-tui-for-sql-databases-written-in-python-supports-sql-server-mysq-mkcifza37) · Hacker News · 0 upvotes · 0 comments
- [SQL/PGQ in PostgreSQL 19: Graph Queries Without the Graph Database](https://daily.dev/posts/sql-pgq-in-postgresql-19-graph-queries-without-the-graph-database-jjw0uthjc) · Planet PostgreSQL · 14 upvotes · 2 comments
- [SQLAlchemy 2 In Practice - Chapter 8: SQLAlchemy and the Web](https://daily.dev/posts/sqlalchemy-2-in-practice---chapter-8-sqlalchemy-and-the-web-czkvocl80) · Miguel Grinberg · 1 upvotes · 0 comments
- [Handling graphs with SQL/PGQ in PostgreSQL](https://daily.dev/posts/handling-graphs-with-sql-pgq-in-postgresql-nqopnkk2x) · CYBERTEC PostgreSQL · 3 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#graphql](https://daily.dev/tags/graphql), [#sqlite](https://daily.dev/tags/sqlite), [#fastapi](https://daily.dev/tags/fastapi)

[View this post on daily.dev](https://daily.dev/posts/pygraphile---postgraphile-for-python-kxvyrpqv1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/pygraphile---postgraphile-for-python-kxvyrpqv1","headline":"PyGraphile - PostGraphile for python","text":"A developer is building PyGraphile, a Python port of PostGraphile that auto-generates GraphQL schemas from database tables. Unlike PostGraphile, which only works with Postgres in a Node.js environment, PyGraphile aims to support additional databases like SQLite and MariaDB/MySQL, and can be mounted as an ASGI app on FastAPI (with WSGI support under testing). Current features include automatic schema generation for SQLite and MariaDB/MySQL, querying any table, and an Apollo Playground interface. The author is soliciting community feedback and discloses that AI was used during development. Links to GitHub, a project website, and PyPI package are provided.","url":"https://daily.dev/posts/pygraphile---postgraphile-for-python-kxvyrpqv1","datePublished":"2026-09-16T14:37:38.093Z","dateModified":"2026-09-16T14:37:56.213Z","author":{"@type":"Person","name":"dipankar shaw","url":"https://daily.dev/dipankarshaw","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":160}},"image":"https://media.daily.dev/image/upload/s--eeX3gvJJ--/f_auto/v1789569459/posts/kxvYRpQv1?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/hkp6zkkpttai0afiyhfwt","name":"dipankar shaw"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"dipankar shaw","item":"https://daily.dev/sources/hkp6zkkpttai0afiyhfwt"},{"@type":"ListItem","position":3,"name":"PyGraphile - PostGraphile for python"}]}
```

