MinifoldPython 的各种数据源查询模块
Minifold 是一个 Python 模块,用来与各种数据源(如 CSV, LDAP, SQL, twitter 等)交互,可对数据进行查询、合并和聚合,就像一个数据库操作一样。
Minifold 要求最低 Python 3 的支持。
Debian, Ubuntu 安装.
sudo apt-get update sudo apt-get install git python3 python3-pycountry python3-ldap3 python3-setuptools python3-urllib3 python3-tweepy python3-xmltodict
安装 minifold
mkdir ~/git cd ~/git git clone https://github.com/nokia/minifold cd minifold sudo python3 ./setup.py install
测试
python3 >>> import minifold
代码示例:
直观查询
from minifold.query import Query, ACTION_GET q_institution = Query( action = ACTION_GET, object = "institutions", attributes = [], filters = BinaryPredicate("institution_id", "==", 3) )
LDAP 查询:
from minifold.query import Query, ACTION_GET q_ldap = Query( action = ACTION_GET, object = "ou=users,dc=lincs,dc=fr", attributes = ["uid", "sn", "givenName", "departmentNumber"], filters = BinaryPredicate("sn", "==", "Mathieu") )
评论
Trustfall查询任何类型的数据源
Trustfall是一个查询引擎,用于查询任何类型的数据源,从API和数据库到磁盘上的任何类型的文件,甚至是AI模型。TrustfallPlayground支持针对公共数据源运行查询,例如:Hacke
Trustfall查询任何类型的数据源
0
Quicksql跨数据源统一 SQL 查询引擎
QSQL是以SQL进行单一、混合查询的一款产品。QSQL支持标准SQL语言(SQL-2003);QSQL支持查询关系型数据库、NoSQL式数据库、原生不支持SQL查询的存储(如ES、Druid),及借
Quicksql跨数据源统一 SQL 查询引擎
0