Skip to main content

🧬 Formed

CI Docs Python version License PyPI version Ask DeepWiki

Formed is a flexible framework for managing data, experiments, and workflows in both research and production environments. It provides a simple yet powerful DAG-based workflow system with automatic caching, dependency tracking, and seamless integration with popular ML tools.

Key Features

  • 📊 DAG-based workflows: Define complex workflows as directed acyclic graphs with automatic dependency resolution
  • 💾 Smart caching: Content-based automatic caching that detects code changes via AST analysis
  • 🔧 Flexible configuration: Use Jsonnet/JSON for declarative workflow definitions with type safety
  • 🔌 Rich integrations: Built-in support for PyTorch, 🤗 Transformers, MLflow, and more
  • 🎯 Type-safe: Leverage Python type hints for automatic object construction and validation
  • 📦 Extensible: Easy to extend with custom steps, formats, and organizers

Quick Example

Define reusable computation steps with automatic caching:

# mysteps.py
from collections.abc import Iterator
from formed import workflow

@workflow.step
def load_dataset(size: int) -> Iterator[int]:
    for i in range(size):
        yield i

@workflow.step
def square(dataset: Iterator[int]) -> Iterator[int]:
    for i in dataset:
        yield i * i

Connect steps in a workflow configuration:

// workflow.jsonnet
{
  steps: {
    dataset: {
      type: 'load_dataset',
      size: 10
    },
    results: {
      type: 'square',
      dataset: { type: 'ref', ref: 'dataset' }
    }
  }
}

Configure and run:

# formed.yml
workflow:
  organizer:
    type: filesystem

required_modules:
  - mysteps
formed workflow run workflow.jsonnet --execution-id my-experiment

Results are automatically cached - rerunning only executes changed steps!

Installation

pip install formed

With integrations:

pip install formed[mlflow]         # MLflow integration
pip install formed[torch]          # PyTorch integration
pip install formed[transformers]   # 🤗 Transformers integration
pip install formed[all]            # All integrations

Documentation

📖 Full documentation available here

Why Formed?

Formed bridges the gap between experimental notebooks and production pipelines:

  • Reproducible: Content-based caching ensures consistent results
  • Iterative: Only re-execute what changed, speeding up development
  • Collaborative: Declarative configs make workflows easy to share and review
  • Production-ready: Same code works in research and deployment

Whether you're prototyping in Jupyter or deploying at scale, formed adapts to your workflow.

License

MIT License - see LICENSE file for details.

Download files

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

Source Distribution

formed-0.0.13.tar.gz (196.0 kB view details)

Uploaded Source

Built Distribution

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

formed-0.0.13-py3-none-any.whl (248.4 kB view details)

Uploaded Python 3

File details

Details for the file formed-0.0.13.tar.gz.

File metadata

  • Download URL: formed-0.0.13.tar.gz
  • Upload date:
  • Size: 196.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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 formed-0.0.13.tar.gz
Algorithm Hash digest
SHA256 694da879db7660a22274335d332d27b5b0719cf10efe6a196cd0fdb85d99c8a3
MD5 3bb5bc7f759fe02ad3bade833f2705ef
BLAKE2b-256 9be66a8baa2345e313a7f6b0677d9dbcd10673f25a49a820ad09fccd8044335b

See more details on using hashes here.

File details

Details for the file formed-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: formed-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 248.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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 formed-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2f9dd1c525e6e9d241c0eb54b6b6be5d2ad85e50a843a4ed6fcf35247acb1e6c
MD5 1f75a8beba5b1e9a179ccb7a7b5f8b2f
BLAKE2b-256 d062289d939c75bb9598c2e9d214338291e92771b79dc5e965d9dc1cea14c475

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

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