Skip to main content

A data model for anti corruption data modeling and analysis.

Project description

Follow the Money

ftm-build

This repository contains a pragmatic data model for the entities most commonly used in investigative reporting and financial crime investigations: people, companies, assets, payments, ownership relations, court cases, etc.

The purpose of this is not to model reality in an ideal data model, but rather to have a working data structure for researchers. Complex legal considerations are simplified to allow for efficient data processing.

followthemoney also contains code used to validate and normalize many of the elements of data, and to map tabular data into the model.

Documentation

For a general introduction to followthemoney, check the high-level introduction:

Part of this package is a command-line tool that can be used to process and transform data in various ways. You can find a tutorial here:

Besides the introductions, there is also a full reference documentation for the library and the contained ontology:

There's also a number of viewers for the RDF schema definitions generated from FollowTheMoney, eg:

Installation

You can install followthemomey via PyPI like this:

pip install followthemoney

The most tricky dependency of followthemoney is pyicu, which helps us to perform certain text operations. Please review their documentation if you run into any issues with ICU.

Development environment

For local development with a virtualenv:

python3 -mvenv .env
source .env/bin/activate
pip install -e ".[dev]"

Now you can run the tests with

make test

Releasing

We release a lot of version of followthemoney because even small changes to the code base require a pypi release to begin being used in downstream applications. To this end, here's the steps for making a release:

git pull --rebase
make build
make test
git add . && git commit -m "Updating translation files"
bumpversion patch
git push --atomic origin main $(git describe --tags --abbrev=0)

This will create a new patch release and upload a distribution of it. If the changes are more significant, you can run bumpversion with the minor or major arguments.

When the schema is updated, please update the docs, ideally including the diagrams. For the RDF namespace and JavaScript version of the model, run make generate.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

followthemoney-4.9.2.tar.gz (430.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

followthemoney-4.9.2-py3-none-any.whl (505.4 kB view details)

Uploaded Python 3

File details

Details for the file followthemoney-4.9.2.tar.gz.

File metadata

  • Download URL: followthemoney-4.9.2.tar.gz
  • Upload date:
  • Size: 430.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for followthemoney-4.9.2.tar.gz
Algorithm Hash digest
SHA256 d7fbf24b94ddb3fe8d94e49c7552711741b59e1d4041e7a2accdccfa36e1d674
MD5 9c997b79ad59e9675ff4240439055328
BLAKE2b-256 dab0919e2f3c2d37b79fac480c1553840e983b5f7925875a1babfcbaae0365cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for followthemoney-4.9.2.tar.gz:

Publisher: build.yml on opensanctions/followthemoney

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file followthemoney-4.9.2-py3-none-any.whl.

File metadata

  • Download URL: followthemoney-4.9.2-py3-none-any.whl
  • Upload date:
  • Size: 505.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for followthemoney-4.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2427b6bf7765b23877f330a1fd25889c3371dd10a5c923530e64ab0c63d8b838
MD5 5e8eab6513dbef5cc3cc86a41169c1a0
BLAKE2b-256 62ad1492b0be1df1784facd844147da952166d1c1b2cd3a948c7a5c0bc6110ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for followthemoney-4.9.2-py3-none-any.whl:

Publisher: build.yml on opensanctions/followthemoney

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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