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.5.0.tar.gz (138.2 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.5.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pygraphile-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e1d82fb37850d28dabbb5d5e8a4b002e00b698e4e25fa0874becef20f5b72844
MD5 1602440d977bd2cb1c00c5a8bc3e5e0b
BLAKE2b-256 531523cb3aee49596528ca914cbe0582c04cfc44f74a85fd430bd3df652f38d3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pygraphile-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3102a0ec3ee7c0dd903caa058a08eb94116195db379f26e09d532fe7bd3e3b5a
MD5 f44e2d1dd54591945970d215d1469524
BLAKE2b-256 43d427bdc32849bf96f0e63f3285fbd62c83a83c300973f96ba7940c74413a70

See more details on using hashes here.

Provenance

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

This release

0.5.0 This release

2 files

0.3.0

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