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.0b3.tar.gz (2.8 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.0b3-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphbook-0.14.0b3.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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.0b3.tar.gz
Algorithm Hash digest
SHA256 94a59d0016da0ca226fb6c625f86a5eb13fc92a49b4538ca2e174dc781c2c419
MD5 c1f0075daeb3af8ad4364366c9753127
BLAKE2b-256 1f81bafa3510b0cb413b624a1adabe2d322cf29c4a223798cb475e6942e15cf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphbook-0.14.0b3-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc3a29c18cd4bb64bdfc8e3e9bd968ef5f070248cc3c0c4b8ef68080d4f9629e
MD5 9be476aacc99776ff2b48395443e9641
BLAKE2b-256 910295cb2a2eff869ce844b2a84f585399212c4f9d793cec577e776d5aa85805

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