Skip to content

Datum v1.0.0 - Initial Public Release

Choose a tag to compare

@jprybylski jprybylski released this 02 Nov 17:29
· 71 commits to main since this release

Added

Core Features:

  • Data pinning and verification system with cryptographic fingerprints
  • fetch command to download data and record fingerprints
  • check command to verify data sources haven't changed
  • Lockfile system (.data.lock.yaml) for tracking fingerprints and verification timestamps
  • Three policy modes: fail (strict), update (auto-update), and log (monitoring)

Data Source Handlers:

  • HTTP/HTTPS handler with smart fingerprinting (ETag → Last-Modified+Content-Length → SHA256)
  • File handler for copying local files
  • Git handler (optional, requires -tags git) for tracking specific files from repositories
  • Command handler for custom shell commands with template variable support
  • Plugin-based handler architecture for extensibility

Multi-Source Support:

  • Automatic fallback between multiple sources for high availability
  • Sources tried in order until one succeeds
  • Useful for mirrors, geographic redundancy, and offline development

Build and Platform Support:

  • Go 1.23+ support
  • Cross-platform support (Linux, macOS, Windows)
  • Platform-specific shell handling (sh for Unix, cmd.exe for Windows)
  • Optional git support via build tags to reduce binary size
  • Build scripts for Unix (make.sh) and Windows (make.ps1)

Developer Experience:

  • JSON Schema (data-schema.json) for IDE autocomplete and validation
  • Comprehensive documentation and examples
  • Six working examples covering all handler types
  • Educational code comments explaining Go concepts

CI/CD Integration:

  • GitHub Actions workflow with test, build, lint, and examples jobs
  • Testing on Ubuntu, macOS, and Windows with Go 1.23 and stable
  • golangci-lint integration
  • Code coverage tracking

Documentation:

  • Comprehensive README with architecture explanations
  • Comparison with other tools (DVC, pins, Pooch, Quilt, LakeFS, Pachyderm)
  • Contributing guidelines (CONTRIBUTING.md)
  • MIT License
  • AI development acknowledgment

Technical Details

Package Structure:

  • cmd/datum/ - CLI entry point
  • internal/core/ - Core business logic (config, engine, lock, hash)
  • internal/handlers/ - Pluggable handler implementations
  • internal/registry/ - Handler registration system
  • internal/runtime/ - Platform-specific code

Key Patterns:

  • Interface-based handler system for polymorphism
  • Init function registration for plugin architecture
  • Context-based cancellation and timeout support
  • Atomic file operations (temp file + rename)
  • Error wrapping with %w for error chains

Security:

  • SHA256 fingerprinting for data integrity
  • Git authentication support (HTTPS tokens, SSH keys)
  • No credential storage in configuration files