跳转到主要内容

在数据湖中存储来自不同数据集的原始和结构化FollowTheMoney数据

项目描述

followthemoney-store

此库提供了将实体以followthemoney数据格式存储、检索和列出为数据集的方法,这些数据集存储在SQL后端。

使用方法

命令行使用

# Insert a bunch of FtM entities into a store:
$ cat ftm-entities.ijson | ftm store write -d my_dataset
# Re-create the entities in aggregated form:
$ ftm store iterate -d my_dataset | alephclient write-entities -f my_dataset

如果您不想保留上面生成的balkhash数据集,有一个快捷方式可以结合写入和迭代函数

$ cat ftm-entities.ijson | ftm store aggregate | alephclient write-entities -f my_dataset

Python库

from ftmstore import Dataset

dataset = Dataset("US-OFAC")
dataset.put(entity, fragment='1')

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解更多关于安装包的信息。

源代码发行版

followthemoney-store-3.1.0.tar.gz (7.4 kB 查看哈希值)

上传时间: 源代码

构建发行版

followthemoney_store-3.1.0-py2.py3-none-any.whl (9.5 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下支持