Assets (image) resolver for FollowTheMoney data
Project description
ftm-assets
Resolve assets (currently images) related to FollowTheMoney entities.
Get images based on qid
cat entities.ftm.json | ftm-assets load-entities
Run api server
uvicorn --port 8000 ftm_assets.api:app --workers 4
Get asset metadata
For images:
curl https://localhost:8000/img/<entity_id>
{
"id": "<entity_id>",
"url": "...",
"alt": "...",
"attribution": {
"author": "...",
"license": "...",
}
}
Run as an OpenAleph worker service
pip install ftm-assets[openaleph]
To ingreate ftm-assets into the OpenAleph ecosystem as a worker that processes entities, start the worker queue like this:
PROCRASTINATE_APP=ftm_assets.tasks.app procrastinate worker -q ftm-assets
To defer tasks from other places, use ftm-assets as queue name and ftm_assets.tasks.resolve_image as the task identifier.
Docker
Run the queue worker with changing the entrypoint to procrastinate:
docker run ghcr.io/dataresearchcenter/ftm-asstets --entrypoint procrastinate worker -q ftm-assets
License and Copyright
ftm-assets, (C) 2025 Data and Research Center – DARC
ftm-assets is licensed under the AGPLv3 or later license.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ftm_assets-0.0.4.tar.gz.
File metadata
- Download URL: ftm_assets-0.0.4.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.12.22-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9da67ad5b0355fe01829b39112becbb729942311bbc103b0622ac1e117fcafe0
|
|
| MD5 |
58c564329f6b7544d6fea9746703fee9
|
|
| BLAKE2b-256 |
88cf1324bf6fd417a6d904866f5b69bc675254492ac59bad17e716dfa544edcb
|
File details
Details for the file ftm_assets-0.0.4-py3-none-any.whl.
File metadata
- Download URL: ftm_assets-0.0.4-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.12.22-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89ebd94571070c853b74aa472a31f90bf59638265da1f1b9b8440e2888e558e0
|
|
| MD5 |
0e862cf8c33e33d8cde8ad1b1ee1ef65
|
|
| BLAKE2b-256 |
9bbaf5b3c6d8c82d3c7a00a90b258d08fdb54800240217faf4a9f4a4f412f163
|