Skip to main content

Dreamlake

A simple and flexible SDK for ML experiment tracking and data storage.

Features

  • Three Usage Styles: Decorator, context manager, or direct instantiation
  • Dual Operation Modes: Remote (API server) or local (filesystem)
  • Auto-creation: Automatically creates namespace, workspace, and folder hierarchy
  • Upsert Behavior: Updates existing episodes or creates new ones
  • Simple API: Minimal configuration, maximum flexibility
  • Time-Based Queries: MCAP-like API for querying track data by timestamp ranges
  • Multi-Modal Sync: Timestamp inheritance for synchronizing pose, images, and sensor data

Installation

Using uv (recommended) Using pip
uv add dreamlake@0.6.0
pip install dreamlake==0.6.0

CLI (deprecated)

The dreamlake console script bundled with this package is deprecated — the CLI has been reimplemented in TypeScript as @dreamlake/cli, which installs the same dreamlake bin with the same commands, flags, and env vars (including artifact push and the workflow group):

npm i -g @dreamlake/cli

The Python console script keeps working for now (it prints a pointer on stderr), but new features land in the TS CLI only. The internal artifact|workflow append-local writers are NOT deprecated — they remain the canonical DreamDB writers that dreamlake-server spawns.

Quick Start

Remote Mode (with API Server)

from dreamlake import Episode

with Episode(
    name="my-experiment",
    workspace="my-workspace",
    remote="https://cu3thurmv3.us-east-1.awsapprunner.com",
    api_key="your-jwt-token"
) as episode:
    print(f"Episode ID: {episode.id}")

Local Mode (Filesystem)

from dreamlake import Episode

with Episode(
    name="my-experiment",
    workspace="my-workspace",
    local_path=".dreamlake"
) as episode:
    pass  # Your code here

See examples/ for more complete examples.

Development Setup

Installing Dev Dependencies

To contribute to Dreamlake or run tests, install the development dependencies:

Using uv (recommended) Using pip
uv sync --extra dev
pip install -e ".[dev]"

This installs:

  • pytest>=8.0.0 - Testing framework
  • pytest-asyncio>=0.23.0 - Async test support
  • sphinx>=7.2.0 - Documentation builder
  • sphinx-rtd-theme>=2.0.0 - Read the Docs theme
  • sphinx-autobuild>=2024.0.0 - Live preview for documentation
  • myst-parser>=2.0.0 - Markdown support for Sphinx
  • ruff>=0.3.0 - Linter and formatter
  • mypy>=1.9.0 - Type checker

Running Tests

Using uv Using pytest directly
uv run pytest
pytest

Building Documentation

Documentation is built using Sphinx with Read the Docs theme.

Build docs Live preview Clean build
uv run python -m sphinx -b html docs docs/_build/html
uv run sphinx-autobuild docs docs/_build/html
rm -rf docs/_build

The live preview command starts a local server and automatically rebuilds when files change.

Alternatively, you can use the Makefile from within the docs directory:

cd docs
make html          # Build HTML documentation
make clean         # Clean build files

For maintainers, to build and publish a new release: uv build && uv publish

Download files

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

Source Distribution

dreamlake-0.6.0.tar.gz (139.1 kB view details)

Uploaded Source

Built Distribution

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

dreamlake-0.6.0-py3-none-any.whl (170.4 kB view details)

Uploaded Python 3

File details

Details for the file dreamlake-0.6.0.tar.gz.

File metadata

  • Download URL: dreamlake-0.6.0.tar.gz
  • Upload date:
  • Size: 139.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dreamlake-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2b912a883569466e3cad40cc387f2146158d2d10ac7f041fc0baf531c85829ff
MD5 f1dd1433c63e8e887c924d278e4ff1d5
BLAKE2b-256 060ef1ee6235cf84f04add9869e9d1d6c22ddc50b729d6c3718eb51761a52911

See more details on using hashes here.

File details

Details for the file dreamlake-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: dreamlake-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 170.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dreamlake-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 362da99bf5f906fe4103aa7ab220ab6fca10788671d207f9c14d54ca211dc98a
MD5 49c46755124802606dc2b8d5853bfa4f
BLAKE2b-256 0ef2386e3794e7f5c03ff6ba803cf1e385463ed022379874994f6487aa4228fe

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 Sentry Error logging StatusPage Status page