Skip to main content

etl pipeline for investigations with follow the money data

Project description

investigraph on pypi Python test and package Build docker container pre-commit Coverage Status MIT License

investigraph

Research and implementation of an ETL process for a curated and up-to-date public and open-source data catalog of frequently used datasets in investigative journalism.

Using prefect.io for ftm pipeline processing

Documentation

Tutorial

installation

pip install investigraph

example datasets

There is a dedicated repo for example datasets that can be used as a Block within the prefect.io deployment.

deployment

docker

docker-compose.yml for local development / testing, use docker-compose.prod.yml as a starting point for a production setup. More instructions here

run locally

Install app and dependencies (use a virtualenv):

pip install investigraph

Or, e.g. when using poetry:

poetry add investigraph

After installation, investigraph as a command should be available:

investigraph --help

Quick run a local dataset definition:

investigraph run -c ./path/to/config.yml

Register a local datasets block:

investigraph add-block -b local-file-system/investigraph-local -u ./datasets

Register github datasets block:

investigraph add-block -b github/investigraph-datasets -u https://github.com/investigativedata/investigraph-datasets.git

Run a dataset pipeline from a dataset defined in a registered block:

investigraph run -d ec_meetings -b github/investigraph-datasets

View prefect dashboard:

make server

development

This package is using poetry for packaging and dependencies management, so first install it.

Clone investigraph repository to a local destination.

Within the root directory, run

poetry install --with dev

This installs a few development dependencies, including pre-commit which needs to be registered:

poetry run pre-commit install

Before creating a commit, this checks for correct code formatting (isort, black) and some other useful stuff (see: .pre-commit-config.yaml)

test

make test

supported by

Media Tech Lab Bayern batch #3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

investigraph-0.3.1.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

investigraph-0.3.1-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file investigraph-0.3.1.tar.gz.

File metadata

  • Download URL: investigraph-0.3.1.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.1.0-10-amd64

File hashes

Hashes for investigraph-0.3.1.tar.gz
Algorithm Hash digest
SHA256 7f8135e1bf39cb97a72a5c9eb5796692e352376008d46728ed961869a333892f
MD5 07ec0f13af6e466b47adb5901d75e6e3
BLAKE2b-256 e5e940968928959809079c11dff9285f72f77c98ef668ef247c8d9d84e67c527

See more details on using hashes here.

File details

Details for the file investigraph-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: investigraph-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.2 Linux/6.1.0-10-amd64

File hashes

Hashes for investigraph-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cdb9e34c3c1b394f3244a3117a7f1b77744ae1edee435ef07c6219aef39dbe0
MD5 8e13681c296ca707f1a73e5462d8453d
BLAKE2b-256 81883f4028bae5e254ff90431409ced6526b8f191e3943c4219bc01ca444f3b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page