Skip to content
/ ingest-template-local Public template

Ingest template for a new pipeline that runs on your local filesystem.

Notifications You must be signed in to change notification settings

tsdat/ingest-template-local

Repository files navigation

ingest-template-local

Note: this repository is now deprecated in favor of https://github.com/tsdat/ingest-template.

This is a template repository that can be used to set up tsdat ingests on your local computer.

Getting Started

  1. Install dependencies. We recommend using conda to manage your environment:

    $ conda create --name tsdat-local python=3.8
    ...
    $ conda activate tsdat-local
    $ pip install -r requirements.txt
    
  2. Add your data:

    • data/inputs/<your data file>
  3. Customize the configuration files:

    • config/pipeline_config.yml
    • config/storage_config_dev.yml
    • config/storage_config_prod.yml (Optional – can delete this)
  4. Customize pipeline code:

    • pipeline/pipeline.py
    • pipeline/filehandlers.py (Optional)
    • pipeline/qc.py (Optional)
    • pipeline/runner.py (Optional)
  5. Run your ingest:

    $ python run_pipeline.py
    

    Note that you can also specify some other options:

    # Specify which storage configuration to use (defaults to prod)
    $ python run_pipeline.py --mode prod
    $ python run_pipeline.py --mode dev
    
    # Specify path to different inputs
    $ python run_pipeline.py [PATH_TO_INPUTS]
    
    # Run the test suite and generate a coverage report
    pytest --cov --report-type=html
    
  6. Customize this README to better reflect your project

Additional Resources

About

Ingest template for a new pipeline that runs on your local filesystem.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published