Graph Build Tool (GBT)
Enterprise-Grade Graph Data Transformation & Schema Management
📖 What is GBT?
Graph Build Tool (GBT) is a transformative workflow framework designed specifically for graph databases (currently natively supporting Neo4j). Inspired by modern analytics engineering practices, GBT brings rigorous software engineering principles—such as declarative configurations, modularity, templatization, and version control—into graph data engineering.
Core Purpose: GBT empowers data engineers, graph developers, and analysts to build, maintain, and document graph schemas (DDL) and transform graph data (DML) reliably and efficiently. By defining your graph structures in declarative YAML and your transformations in templated Cypher/SQL, GBT reduces complexity and standardizes graph deployments across your organization.
🚀 Getting Started
Installation
Install gbt-core utilizing pip or your favorite Python package manager. To include Neo4j connector capabilities, install with the neo4j extra:
pip install "gbt-core[neo4j]"
If you are using Poetry (as used in this repository):
poetry add "gbt-core[neo4j]"
Quick Start
- Initialize a Project: Set up your project structure. (See the
example/directory for a reference structure includinggbt_project.yamland profile configurations). - Define Models: Create your node and relationship models inside the
models/directory using.sql,.cypher, andschema_*.ymlconfiguration schemas. - Run Transformations: Execute the CLI commands to parse, compile, and run your graph models:
gbt compile
gbt run --target neo4j
🏗 Architecture
GBT strictly decouples Source Extraction and Destination Loading (Graph DB), heavily utilizing a locally compiled JSON Manifest as the Source of Truth.
✨ Key Features
- Neo4j Native Integration: A robust Bolt-protocol connector capable of handling complex network executions seamlessly.
- DDL Engine: Automated Schema Management supporting structural bounds and constraints defined purely in YAML configurations.
- DML Engine: Dynamic data manipulation supporting various materialization strategies including high-speed
UNWINDappend, strict merge, and surgical delete. - Jinja2 Templating: Leverage robust macros (
.cypher.j2) to build dynamic, reusable, and modular Cypher queries. - Memory-Safe Validation: Built-in schema validation preventing corrupted typings (e.g., String to Integer) from crashing the Graph runtime.
- Command Line Interface (CLI): Intuitive CLI application providing core commands like
gbt compile,gbt run, andgbt docs.
📚 Documentation
For in-depth architectural overviews, Core Engine details, Data Validation protocols, and templating cheat sheets, please serve the unified docs locally via MkDocs:
gbt docs
(You can also visit the official documentation website hosted on GitHub Pages once deployed).
🔮 Future Roadmap
The journey doesn't stop here. The future framework enhancements include:
- Multi-Graph Database Support: Expanding connector capabilities to AWS Neptune, Memgraph, TigerGraph, and more.
- Data Testing & Quality Checks: Declarative runtime testing to enforce unique entity constraints and referential integrity.
- Automated Data Lineage UI: A visual dashboard to explore the dependency graphs (DAG) of the models and relationships.
🤝 Contributing & License
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
This project is licensed under the terms of the MIT license.
Metadata
Release files for gbt-core 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gbt_core-0.1.3.tar.gz | 39.2 kB | Without provenance | Details for gbt_core-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gbt_core-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for gbt_core-0.1.3-py3-none-any.whl |
Total release size: 98.9 kB
Release files / gbt_core-0.1.3.tar.gz
| Download URL | gbt_core-0.1.3.tar.gz |
|---|---|
| Size | 39.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e12bb1f2d22423d71b5be33500a3d82f3d3c23fba4a2c8ebf083ce2f95eced34
|
|
BLAKE2b-256 checksum How to use checksums |
4d4c21fff7a80c53d918dc1000a749f053684f3b82f39b613cfb213a8a87ee4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.2 Darwin/23.4.0
|
Release files / gbt_core-0.1.3-py3-none-any.whl
| Download URL | gbt_core-0.1.3-py3-none-any.whl |
|---|---|
| Size | 59.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d413a4a8050df432da634a98cf624b6868e5684b7c92fd5726e94e7d34bc9879
|
|
BLAKE2b-256 checksum How to use checksums |
d22f38c917df79e3ae2b4a3330ad5b1e2e702d937d245bb3368a75d30643fd82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.2 Darwin/23.4.0
|
Security for gbt-core 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.