Skip to main content

PyGraphile

Python Version License: MIT

A Python library inspired by PostGraphile - automatically generates GraphQL APIs from your database schema.

🚧 Project Status

This project is in early development. Currently supporting SQLite with plans to add support for PostgreSQL, MySQL, and other databases in the future.

✨ Features

  • 🗄️ Database Introspection: Automatically analyzes your database schema
  • 🔄 GraphQL API Generation: Creates a GraphQL API based on your database structure
  • 🎯 SQLite Support: Initial support for SQLite databases (more databases coming soon)
  • 🐍 Python Native: Built for Python with modern best practices
  • 📦 Easy to Use: Simple setup and configuration

🚀 Installation

Using pip

pip install pygraphile

Using uv

uv pip install pygraphile

From source

git clone https://github.com/dshaw0004/pygraphile.git
cd pygraphile
uv pip install -e .

📖 Quick Start

from pygraphile import Pygraphile

# Coming soon! Basic usage example will be:
# api = Pygraphile('path/to/database.db')
# api.serve()

🗺️ Roadmap

  • Project setup and structure
  • SQLite schema introspection
  • GraphQL schema generation
  • Query resolver implementation
  • Mutation support
  • PostgreSQL support
  • MySQL support
  • Advanced filtering and pagination
  • Authentication and authorization
  • Plugin system

🤝 Contributing

Contributions are welcome! This project is in early stages, so there's plenty of opportunity to shape its direction.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Inspired by PostGraphile - An amazing tool for PostgreSQL
  • Built with modern Python tooling including uv

📬 Contact


Note: This project is under active development. APIs and features are subject to change.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygraphile-0.2.0.tar.gz (130.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygraphile-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pygraphile-0.2.0.tar.gz.

File metadata

  • Download URL: pygraphile-0.2.0.tar.gz
  • Upload date:
  • Size: 130.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pygraphile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be116d71d255c431b46469fa5a073de78008f1a80c6ab83f1a6bc19e74096cd9
MD5 ac978a0cf4c91cce384f8f777b85694a
BLAKE2b-256 559e9b8527033461fe074ebebc77d7ec38a6b3a7cbe9a75d977ee70f3f3d3169

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraphile-0.2.0.tar.gz:

Publisher: workflow.yml on dshaw0004/pygraphile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pygraphile-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pygraphile-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pygraphile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a76ec496bf9413d4fda598dac2774f5af28b3716c4e00778dc7b6b7d5e923ca
MD5 e8270e10bc4dc9c70d91b8cda19034a7
BLAKE2b-256 66b775fc5dfaa25605e2c09fef26d651001b140e63961ca25393a27c576c5c18

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraphile-0.2.0-py3-none-any.whl:

Publisher: workflow.yml on dshaw0004/pygraphile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.2

2 files

0.5.0

2 files

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page