Skip to main content

The AI-driven data pipeline and workflow framework for data scientists and machine learning engineers.

Project description

Logo

Graphbook

GitHub License GitHub Actions Workflow Status Docker Pulls PyPI Downloads PyPI - Version

Discord

The Framework for AI-driven Data Pipelines
Report bug · Request feature

OverviewStatusGetting StartedExamplesCollaboration

Overview

Graphbook is a framework for building efficient, interactive DAG-structured AI data pipelines or workflows composed of nodes written in Python. Graphbook provides common ML processing features such as multiprocessing IO and automatic batching for PyTorch tensors, and it features a web-based UI to assemble, monitor, and execute data processing workflows. It can be used to prepare training data for custom ML models, experiment with custom trained or off-the-shelf models, and to build ML-based ETL applications. Custom nodes can be built in Python, and Graphbook will behave like a framework and call lifecycle methods on those nodes.

Try out the demo!

Huggingface Pipeline Demo

Build, run, monitor!

Applications

  • Clean and curate custom large scale datasets
  • Demo ML apps on Huggingface Spaces
  • Build and deliver customizable no-code or hybrid low-code ML apps and services
  • Quickly experiment with different ML models and adjust hyperparameters
  • Maximize GPU utilization, parallelize IO, and scale across clusters
  • Wrap your Ray DAGs with a frontend for end users

Status

Graphbook is in a very early stage of development, so expect minor bugs and rapid design changes through the coming releases. If you would like to report a bug or request a feature, please feel free to do so. We aim to make Graphbook serve our users in the best way possible.

Current Features

  • ​​Graph-based visual editor to experiment and create complex ML workflows
  • Workflows can be serialized as Python and JSON files
  • Caches outputs and only re-executes parts of the workflow that changes between executions
  • UI monitoring components for logs and outputs per node
  • Custom buildable nodes with Python via OOP and functional patterns
  • Multiprocessing I/O to and from disk and network
  • Customizable multiprocessing functions
  • Ability to execute entire graphs, or individual subgraphs/nodes
  • Ability to execute singular batches of data
  • Ability to pause graph execution
  • Basic nodes for filtering, loading, and saving outputs
  • Node grouping and subflows
  • Autosaving and shareable serialized workflow files
  • Registers node code changes without needing a restart
  • Monitorable system CPU and GPU resource usage
  • Monitorable worker queue sizes for optimal worker scaling
  • Human-in-the-loop prompting for interactivity and manual control during DAG execution
  • Can switch to threaded processing per client session for demoing apps to multiple simultaneous users
  • Scale with Ray: Build all-code workflows and scale pipelines on Ray clusters
  • (BETA) Third Party Plugins *

* We plan on adding documentation for the community to build plugins, but for now, an example can be seen at example_plugin and graphbook-huggingface

Supported OS

The following operating systems are supported in order of most to least recommended:

  • Linux
  • Mac
  • Windows (not recommended) *

* There may be issues with running Graphbook on Windows. With limited resources, we can only focus testing and development on Linux.

Getting Started

Install from PyPI

  1. pip install graphbook
  2. graphbook
  3. Visit http://localhost:8005

Install with Docker

  1. Pull and run the downloaded image
    docker run --rm -p 8005:8005 -v $PWD/workflows:/app/workflows rsamf/graphbook:latest
    
  2. Visit http://localhost:8005

Recommended Plugins

Visit the docs to learn more on how to create custom nodes and workflows with Graphbook.

Examples

See plugin and workflow examples here in this folder.

Collaboration

Graphbook is in active development and very much welcomes contributors. If you would like to be actively involved in making Graphbook great, join our discord.

Run Graphbook in Development Mode

This is a guide on how to run Graphbook in development mode. If you are simply using Graphbook, view the Getting Started section. You can use any other virtual environment solution, but it is highly advised to use uv since our dependencies are managed with uv.

  1. Clone the repo and cd graphbook
  2. uv sync --group dev
  3. python graphbook/core/cli.py
  4. cd web
  5. deno install
  6. deno run dev
  7. In your browser, navigate to localhost:5173, and in the settings, change your Graph Server Host to localhost:8005.

Project details


Download files

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

Source Distribution

graphbook-0.14.0b6.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

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

graphbook-0.14.0b6-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file graphbook-0.14.0b6.tar.gz.

File metadata

  • Download URL: graphbook-0.14.0b6.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for graphbook-0.14.0b6.tar.gz
Algorithm Hash digest
SHA256 b4d99bb1e912352f4261517c13f0c636e852d6ea3fa4dedfab2ca59935c92777
MD5 e3a110c5a2907d4ad16b3d5e07a7ad40
BLAKE2b-256 37745f1f505e74aef64d3ce94934b750d17c1deaf86aa0b70a64b9a8d2169067

See more details on using hashes here.

File details

Details for the file graphbook-0.14.0b6-py3-none-any.whl.

File metadata

  • Download URL: graphbook-0.14.0b6-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for graphbook-0.14.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 43801283c3fc95f9f76dfe6dfe583a85e2d37aeb56fe04f35c3d8ecdecca0cda
MD5 b60372d43bc6fdc19017fb79bec65743
BLAKE2b-256 8ef32072088837737193c681d6485d656cc7a1b0304ec3ffe39f70e229fc25e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page