tree: 5c3bb8ca182031e3e0ee95e02cb2687738717aff [path history] [tgz]
  1. data/
  2. all_functions.png
  3. analysis.py
  4. download_data.py
  5. notebook.ipynb
  6. README.md
  7. requirements.txt
  8. run.py
examples/people_data_labs/README.md

People Data Labs

People Data Labs is a data provider that offers several data APIs for person enrichment & search, company enrichment & search, and IP enrichment.

This example showcases how Hamilton can help you write modular data transformations.

Dataflow visualization generated directly from the Hamilton code.

Content

  • notebook.ipynb is a step-by-step introduction to Hamilton. Start there.
  • analysis.py contains data transformations used by run.py. They're the same as the ones defined in notebook.ipynb.
  • run.py contains code to execute the analysis.

Set up

  1. Create a virtual environment and activate it

    python -m venv venv && . venv/bin/active
    
  2. Install requirements

    pip install -r requirements.txt
    
  3. Download the data with this command (it should take ~3mins)

    python download_data.py
    
  4. Visit the notebook or execute the script

    python run.py
    

Resources