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

investigraph requires at least Python 3.11

pip install investigraph

example datasets

There is a dedicated repo for example datasets built with investigraph.

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

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.6.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

investigraph-0.6.0-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: investigraph-0.6.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-amd64

File hashes

Hashes for investigraph-0.6.0.tar.gz
Algorithm Hash digest
SHA256 16b31d8dcbdc1be8f0e88f679f6a297fb141d2604f5cc15a207459507a708b89
MD5 68873a7a1f00a7107a7b343327305153
BLAKE2b-256 79bd83d327b6afc46afe10e591ac2438e54dfd95b4475da24e4ca5dabd3b0044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: investigraph-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.7-amd64

File hashes

Hashes for investigraph-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58ae7ff56bd727326b9b613cbd0a986f2a42300dd93653e861ae23e406fb7561
MD5 f1cecd1b3c9080b5c4d6d58f674185e1
BLAKE2b-256 d541265e31f79b319f4970e062e1a7136858ce65e2c528266788aca505495b2f

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