Metaflow extensions from Netflix. This is a monorepo containing the following packages:
| Package | Description | PyPI |
|---|---|---|
| metaflow-netflixext | Conda/Pip environment management for Metaflow | |
| metaflow-functions | Relocatable computation: avro/json functions, memory/local/ray backends |
pip install metaflow-netflixext
pip install metaflow-functions- Python 3.10+
- Docker (for the local devstack)
git clone https://github.com/Netflix/metaflow-nflx-extensions.git
cd metaflow-nflx-extensions
python -m venv .venv
source .venv/bin/activate
pip install -e metaflow-netflixext
pip install -e metaflow-functions
pip install pytest fastavro cffiUnit tests (no external dependencies):
pytest tests/functions/ --ignore=tests/functions/ux -vUX integration tests require the metaflow_rc devstack (MinIO for S3, local metadata):
# Start the devstack
cd /path/to/metaflow_rc
docker compose -f devtools/devtools/docker-compose.yml up -d
# Back in this repo, source the devstack env and run
cd /path/to/metaflow-nflx-extensions
source /path/to/metaflow_rc/run_test.sh # sets env vars
pytest tests/functions/ux/ -v --timeout=600Apache-2.0