DaggerML
Project description
Dagger-ML Python Library
Prerequisites
pipx
If pipx is not installed, first do that.
hatch
Then install hatch via: pipx install hatch
.
Usage
You currently need AWS_DEFAULT_REGION
and DML_ZONE
environment variables
set. Then you can run python bootstrap-docker.py
, for instance.
bootstrap-docker.py
sets up the docker-build func, so you can now run docker
stuff in your dags (e.g. as we do in the docs/examples/ directory).
Run Locally
# Start local postgres:
sudo systemctl start postgresql
# Connect to local postgres:
psql -h localhost postgres postgres
# Start local DML API server:
python infra/lib/api/server.py
# Run dag locally
DML_LOCAL_DB=1 python mydag.py
Docs
To build the docs, first make sure bootstrap-docker.py
has been run, then
run: hatch run docs:build
To serve the docs: hatch run docs:serve
Tests
To run the tests: hatch run test:cov
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
daggerml-0.0.6.tar.gz
(7.2 kB
view hashes)