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.3.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.3.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygraphile-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 3a1cb1516af5fd738f3b33d846e2e73ab866a78f253a77d6f697a4e4bfa25a78
MD5 3cba7f6cb67c358e1f69eb24703e6738
BLAKE2b-256 e12f4292a898592ad8de14f4ac9f877a2f638fc62e7f58596b3defe2f3ef8263

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraphile-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: pygraphile-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3be8c229f2e0a7f9dbf69edf0119485fb48b34bbbcf642cd4951711cbd78e72e
MD5 545be0dba10ce97cd88361e89810f453
BLAKE2b-256 36cb06225fb07778ba9e164b927408cbfc5610d7ceac4f5c20ddb54cae768a20

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygraphile-0.3.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

This release

0.3.0 This release

2 files

0.2.0

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