agentdata 0.3.26__tar.gz → 0.3.36__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentdata-0.3.26 → agentdata-0.3.36}/PKG-INFO +129 -136
- {agentdata-0.3.26 → agentdata-0.3.36}/README.md +128 -135
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/__init__.py +1 -1
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/cli.py +1 -1
- agentdata-0.3.36/agentdata/company/__init__.py +4 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/cli.py +159 -0
- agentdata-0.3.36/agentdata/company/cz_ares.py +196 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/faces.py +426 -0
- agentdata-0.3.36/agentdata/company/gg_gfsc.py +184 -0
- agentdata-0.3.36/agentdata/company/in_sebi_intm.py +203 -0
- agentdata-0.3.36/agentdata/company/je_jfsc.py +124 -0
- agentdata-0.3.36/agentdata/company/kz_gbd_ul.py +158 -0
- agentdata-0.3.36/agentdata/company/nzco.py +217 -0
- agentdata-0.3.36/agentdata/company/tr_spk_borsa.py +134 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/__init__.py +2 -2
- agentdata-0.3.36/agentdata/economy/bls.py +179 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/cli.py +142 -101
- agentdata-0.3.36/agentdata/economy/comext.py +115 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/faces.py +116 -0
- agentdata-0.3.36/agentdata/economy/oecd_sdmx.py +169 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/un_comtrade.py +1 -1
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/wb.py +3 -3
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/who_xmart.py +2 -2
- agentdata-0.3.36/agentdata/legal/__init__.py +5 -0
- agentdata-0.3.36/agentdata/legal/cfpb.py +308 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/cli.py +209 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/faces.py +381 -2
- agentdata-0.3.36/agentdata/legal/gazette.py +139 -0
- agentdata-0.3.36/agentdata/legal/ie_revenue.py +173 -0
- agentdata-0.3.36/agentdata/legal/in_sebi.py +148 -0
- agentdata-0.3.36/agentdata/legal/occ.py +353 -0
- agentdata-0.3.36/agentdata/legal/tr_spk.py +168 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/security/__init__.py +1 -1
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/security/cli.py +18 -5
- agentdata-0.3.36/agentdata/security/euvd.py +145 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/security/faces.py +61 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata.egg-info/PKG-INFO +129 -136
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata.egg-info/SOURCES.txt +17 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/pyproject.toml +1 -1
- agentdata-0.3.26/agentdata/company/__init__.py +0 -3
- agentdata-0.3.26/agentdata/legal/__init__.py +0 -4
- {agentdata-0.3.26 → agentdata-0.3.36}/LICENSE +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/__main__.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/cache.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/client.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/cf.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/ch_zefix.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/co_rues.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/edgar_cik.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/edgar_fts.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/fdic_bankfind.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/fi_ytj.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/fr_recherche.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/fts.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/gleif.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/kr_hometax.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/no_brreg.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/ror.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/ted.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/usaspending.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/company/vies.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/daterange.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/bis.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/ecb.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/eurostat.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/fred.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/ilo_stat.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/imf_sdmx.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/economy/unsd_sdg.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/entries.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/errors.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/__init__.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/cli.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/climatetrace.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/eiti.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/epa_frs.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/euasl.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/eutl.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/faces.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/paris_mou.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/esg/thetis_mrv.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/__init__.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/au_tga.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/ca_dpd.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/ca_mdall.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/cli.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/ctgov.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/dailymed.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/epmc.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/eudamed.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/faces.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/fda_crl.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/fda_devices.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/fda_drugs.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/fda_recalls.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/gb_mhra.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/gudid.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/mesh.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/rasff.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/rxnav.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/safety_gate.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/healthcare/shortages.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/afdb.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/ca_sema.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/co_sic.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/courtlistener.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/csl.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/dgcomp.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/ecfr.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/federalregister.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/gb_cma.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/gb_tna_caselaw.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/idb.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/lda.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/sipri.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/ukec.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/legal/wb.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/__init__.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/br_pncp.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/cli.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/co_secop.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/faces.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/ny_open_data.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/ungm.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/procurement/wb_proc.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/__init__.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/biorxiv.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/cli.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/crossref.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/faces.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/gb_gtr.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/icite.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/nih_reporter.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/nsf.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/openalex.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/research/opencitations.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/security/cisa_kev.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/security/osv.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata/transport.py +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata.egg-info/dependency_links.txt +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata.egg-info/entry_points.txt +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/agentdata.egg-info/top_level.txt +0 -0
- {agentdata-0.3.26 → agentdata-0.3.36}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentdata
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.36
|
|
4
4
|
Summary: AgentData domain API SDK — corpus (hosted) + third-party enrichment (local, keyless); stdlib-only
|
|
5
5
|
Author-email: dicaria <contact@dicaria.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -28,16 +28,46 @@ Dynamic: license-file
|
|
|
28
28
|
[](https://pypi.org/project/agentdata/)
|
|
29
29
|
[](https://github.com/dicaria/agentdata/blob/main/LICENSE)
|
|
30
30
|
[](https://www.python.org)
|
|
31
|
-
[](https://github.com/dicaria/agentdata/blob/main/docs/domains/api.md)
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
**One Python client and CLI over 141 public datasets — company registries,
|
|
34
|
+
sanctions lists, procurement awards, drug approvals — with no API keys and no
|
|
35
|
+
accounts.**
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
Government data holds the decisive facts about companies, but it is scattered
|
|
38
|
+
across nearly a hundred public APIs, each with its own pagination, rate
|
|
39
|
+
limits, and undocumented quirks. **agentdata puts 141 of those datasets behind
|
|
40
|
+
one interface**: a pure-standard-library client and CLI across 21
|
|
41
|
+
jurisdictions. Every upstream gotcha we hit live is already pinned — politeness
|
|
42
|
+
and caching are built in.
|
|
43
|
+
|
|
44
|
+
## Install
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python -m pip install agentdata
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
For a reproducible install, pin the release: `python -m pip install agentdata==0.3.36`.
|
|
51
|
+
|
|
52
|
+
Prefer not to touch PyPI? Install straight from a release tarball:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.36.tar.gz
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Or via git (pin a tag for reproducible installs):
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.36
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Or track the latest release (convenience for agents and scripts — a fresh
|
|
65
|
+
release does not trigger a reinstall under the same URL, so pass
|
|
66
|
+
`--force-reinstall` when you want the new one):
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
python -m pip install --force-reinstall https://github.com/dicaria/agentdata/releases/latest/download/agentdata-latest.tar.gz
|
|
70
|
+
```
|
|
41
71
|
|
|
42
72
|
## Two API families
|
|
43
73
|
|
|
@@ -60,47 +90,57 @@ dataset, parameters kept under their upstream names. Every row below works as
|
|
|
60
90
|
| Question | Commands |
|
|
61
91
|
|---|---|
|
|
62
92
|
| Is this company sanctioned? | `legal csl_screening_list` · `legal co_sic_sanctions` · `legal wb_debarred_firms` · `legal ca_sema_sanctions` |
|
|
93
|
+
| Do consumers complain about this company? | `legal cfpb_complaints` · `legal cfpb_suggest_company` |
|
|
63
94
|
| Who owns or controls it? | `company gleif_direct_parent` · `company no_brreg_roller` · `company fr_recherche_search` |
|
|
64
95
|
| Did it win public contracts? | `procurement br_pncp_contracts` · `procurement ungm_contract_awards` · `procurement wb_procnotices` |
|
|
65
96
|
| Is its drug or device approved — or recalled? | `healthcare fda_drug_approvals` · `healthcare gb_mhra_alerts` · `healthcare fda_drug_recalls` |
|
|
66
97
|
| What does this facility or fleet emit? | `esg climatetrace_sources` · `esg thetis_mrv_datasets` · `esg paris_mou_detentions` |
|
|
67
|
-
| Pull a company card from a national registry | `company ch_zefix_firm` · `company co_rues_companies` · `company kr_hometax_biz_status` |
|
|
98
|
+
| Pull a company card from a national registry | `company ch_zefix_firm` · `company co_rues_companies` · `company kr_hometax_biz_status` · `company kz_gbd_ul_companies` · `company cz_ares_ekonomicke_subjekty` · `company in_sebi_intermediaries` |
|
|
99
|
+
| Has its broker been expelled, or its regulator fined it? | `legal in_sebi_orders` · `company in_sebi_default_brokers` |
|
|
68
100
|
| How big is the country it operates in? | `economy wb_wdi_values` · `economy eurostat_table` · `economy fred_series` |
|
|
69
101
|
| Convert an EUR amount, or read a bilateral trade flow | `economy ecb_fx_rates` · `economy un_comtrade_trade` |
|
|
70
102
|
|
|
71
|
-
##
|
|
103
|
+
## Quick start
|
|
72
104
|
|
|
73
|
-
|
|
105
|
+
```python
|
|
106
|
+
from agentdata import Client
|
|
74
107
|
|
|
75
|
-
|
|
76
|
-
hit against the live API: the UN Global Marketplace search behind an
|
|
77
|
-
anti-forgery token dance; Socrata endpoints that silently ignore documented
|
|
78
|
-
parameters; the gov.uk content API that 404s when you append `.json`;
|
|
79
|
-
registries that clamp your page size without an error.
|
|
80
|
-
- **One envelope across all 117 commands.** Query echo, a plain-language
|
|
81
|
-
`reason`, `evidence` rows with a checkable quote and source URL, source
|
|
82
|
-
metadata, and a `jurisdiction` chapter — your code parses one shape.
|
|
83
|
-
- **Upstream parameter names, verbatim.** What the official API docs call a
|
|
84
|
-
parameter is what the SDK takes — no invented vocabulary to unlearn.
|
|
85
|
-
- **Polite by default.** Per-source rate limits are enforced before every
|
|
86
|
-
request ([rate-limits ledger](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md)); responses are
|
|
87
|
-
cached locally, and a cache hit costs no rate budget.
|
|
88
|
-
- **Zero dependencies.** Python 3.10+ standard library only.
|
|
108
|
+
c = Client() # zero config: enrichment commands work immediately
|
|
89
109
|
|
|
90
|
-
|
|
110
|
+
c.healthcare.fda_drug_recalls(search='recalling_firm.exact:"SV Labs Toronto Corporation"')
|
|
111
|
+
c.company.gleif_lei_records(lei="5493001KJTIIGC8Y1R12") # LEI -> entity identity card (GLEIF)
|
|
112
|
+
c.company.ch_zefix_firm_search(name="siemens") # Swiss commercial registry (Zefix)
|
|
113
|
+
c.esg.climatetrace_sources(owner_ids="E100000001492", year=2023) # owner -> facility-level emissions
|
|
114
|
+
c.legal.csl_screening_list(name="VTB BANK") # sanctions screening (US CSL)
|
|
115
|
+
c.research.openalex_works(search="vaccine", ror="01xdqrp08")
|
|
116
|
+
c.procurement.br_pncp_contracts(data_inicial="20260901", data_final="20260930", pagina=1)
|
|
117
|
+
c.security.osv_vulns(package="lodash", ecosystem="npm", version="4.17.15")
|
|
118
|
+
c.economy.wb_wdi_values(country="CHN", indicator="NY.GDP.MKTP.CD", date="2020:2023") # World Bank indicator values
|
|
119
|
+
c.economy.ecb_fx_rates(currency="USD", start="2026-10-01", end="2026-10-31") # euro reference rate (1 EUR = X)
|
|
120
|
+
```
|
|
91
121
|
|
|
92
|
-
|
|
122
|
+
The same commands from the shell — nine entry points, `agentdata` plus one
|
|
123
|
+
per domain:
|
|
93
124
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
125
|
+
```bash
|
|
126
|
+
agentdata healthcare rxnav_rxcui_by_name --name atorvastatin
|
|
127
|
+
agentdata company gleif_lei_records_search --filter-entity-legal-name "Siemens" --page-size 3
|
|
128
|
+
agentdata legal csl_screening_list --name "VTB BANK"
|
|
129
|
+
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023
|
|
130
|
+
agentdata procurement br_pncp_contracts --data-inicial 20260901 --data-final 20260930 --pagina 1
|
|
131
|
+
agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date 2020:2023
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
If a domain entry-point command (`company`, `legal`, …) collides with another
|
|
135
|
+
tool on your machine, `python -m agentdata <domain> …` is the equivalent
|
|
136
|
+
invocation.
|
|
137
|
+
|
|
138
|
+
Corpus commands use the same shape with hosted credentials:
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
c2 = Client(base_url="https://…", api_key="mk_live_…") # PAT issued by dicaria
|
|
142
|
+
c2.company.read(id=1476, level="tier2")
|
|
143
|
+
```
|
|
104
144
|
|
|
105
145
|
## Show me a response
|
|
106
146
|
|
|
@@ -112,17 +152,13 @@ every command returns this shape:
|
|
|
112
152
|
"ok": true,
|
|
113
153
|
"domain": "healthcare",
|
|
114
154
|
"tool": "rxnav_rxcui_by_name",
|
|
115
|
-
"input": {
|
|
116
|
-
"name": "atorvastatin"
|
|
117
|
-
},
|
|
155
|
+
"input": { "name": "atorvastatin" },
|
|
118
156
|
"from_cache": false,
|
|
119
157
|
"reason": "RxNav normalization: drug name 'atorvastatin' → RxCUI 83367 (ingredient level)",
|
|
120
158
|
"result": {
|
|
121
159
|
"rxcui": "83367",
|
|
122
160
|
"normalized_name": "atorvastatin",
|
|
123
|
-
"
|
|
124
|
-
"tty": "IN",
|
|
125
|
-
"suppress": "N"
|
|
161
|
+
"tty": "IN"
|
|
126
162
|
},
|
|
127
163
|
"evidence": [
|
|
128
164
|
{
|
|
@@ -133,118 +169,73 @@ every command returns this shape:
|
|
|
133
169
|
"source": {
|
|
134
170
|
"provider": "rxnav",
|
|
135
171
|
"execution": "local",
|
|
136
|
-
"from_cache": false,
|
|
137
172
|
"observed_at": "2026-11-02T03:28:22.213Z"
|
|
138
173
|
},
|
|
139
174
|
"request_id": "3f343e2f-3b08-46e8-ac69-8ee05adce548",
|
|
140
|
-
"query": {
|
|
141
|
-
"source": "raw",
|
|
142
|
-
"upstream": {
|
|
143
|
-
"name": "atorvastatin"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
175
|
"jurisdiction": "US"
|
|
147
176
|
}
|
|
148
177
|
```
|
|
149
178
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
python -m pip install agentdata
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
For a reproducible install, pin the release: `python -m pip install agentdata==0.3.26`.
|
|
159
|
-
|
|
160
|
-
From a release tarball — no git required:
|
|
161
|
-
|
|
162
|
-
```bash
|
|
163
|
-
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.26.tar.gz
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
Or via git (pin a tag for reproducible installs):
|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.26
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
Or track the latest release (convenience for agents and scripts — a fresh
|
|
173
|
-
release does not trigger a reinstall under the same URL, so pass
|
|
174
|
-
`--force-reinstall` when you want the new one):
|
|
179
|
+
A plain-language `reason`, `evidence` rows with a checkable quote and source
|
|
180
|
+
URL, provenance in `source`, the issuing authority in `jurisdiction`, and a
|
|
181
|
+
`request_id` for support — your code parses one shape across all datasets.
|
|
182
|
+
Cached responses are identical, with `from_cache: true`.
|
|
175
183
|
|
|
176
|
-
|
|
177
|
-
python -m pip install --force-reinstall https://github.com/dicaria/agentdata/releases/latest/download/agentdata-latest.tar.gz
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
## Quick start (Python)
|
|
181
|
-
|
|
182
|
-
```python
|
|
183
|
-
from agentdata import Client
|
|
184
|
-
|
|
185
|
-
c = Client() # zero config: enrichment commands work immediately
|
|
186
|
-
|
|
187
|
-
c.healthcare.fda_drug_recalls(search='recalling_firm.exact:"SV Labs Toronto Corporation"')
|
|
188
|
-
c.company.gleif_lei_records(lei="5493001KJTIIGC8Y1R12") # LEI -> entity identity card (GLEIF)
|
|
189
|
-
c.company.ch_zefix_firm_search(name="siemens") # Swiss commercial registry (Zefix)
|
|
190
|
-
c.esg.climatetrace_sources(owner_ids="E100000001492", year=2023) # owner -> facility-level emissions
|
|
191
|
-
c.legal.csl_screening_list(name="VTB BANK") # sanctions screening (US CSL)
|
|
192
|
-
c.research.openalex_works(search="vaccine", ror="01xdqrp08")
|
|
193
|
-
c.procurement.br_pncp_contracts(data_inicial="20260901", data_final="20260930", pagina=1)
|
|
194
|
-
c.security.osv_vulns(package="lodash", ecosystem="npm", version="4.17.15")
|
|
195
|
-
c.economy.wb_wdi_values(country="CHN", indicator="NY.GDP.MKTP.CD", date="2020:2023") # World Bank indicator values
|
|
196
|
-
c.economy.ecb_fx_rates(currency="USD", start="2026-10-01", end="2026-10-31") # euro reference rate (1 EUR = X)
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
Corpus commands use the same shape with hosted credentials:
|
|
184
|
+
## Why not just call the APIs yourself?
|
|
200
185
|
|
|
201
|
-
|
|
202
|
-
c2 = Client(base_url="https://…", api_key="mk_live_…") # PAT issued by dicaria
|
|
203
|
-
c2.company.read(id=1476, level="tier2")
|
|
204
|
-
```
|
|
186
|
+
You can — and then you get to rediscover what is already pinned here:
|
|
205
187
|
|
|
206
|
-
|
|
188
|
+
- **Quirks are pre-solved, not rediscovered.** Every command encodes traps we
|
|
189
|
+
hit against the live API: anti-forgery token dances, Socrata parameters that
|
|
190
|
+
are silently ignored, registries that clamp your page size without an error.
|
|
191
|
+
- **One envelope across all 141 commands.** Query echo, `reason`, `evidence`,
|
|
192
|
+
source metadata, `jurisdiction` — your code parses one shape.
|
|
193
|
+
- **Upstream parameter names, verbatim.** What the official API docs call a
|
|
194
|
+
parameter is what the SDK takes — no invented vocabulary to unlearn.
|
|
195
|
+
- **Polite by default.** Per-source rate limits are enforced before every
|
|
196
|
+
request ([rate-limits ledger](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md)),
|
|
197
|
+
and a cache hit costs no rate budget.
|
|
198
|
+
- **Zero dependencies.** Python 3.10+ standard library only.
|
|
207
199
|
|
|
208
|
-
|
|
200
|
+
## Coverage
|
|
209
201
|
|
|
210
|
-
|
|
211
|
-
agentdata healthcare rxnav_rxcui_by_name --name atorvastatin
|
|
212
|
-
agentdata company gleif_lei_records_search --filter-entity-legal-name "Siemens" --page-size 3
|
|
213
|
-
agentdata legal csl_screening_list --name "VTB BANK"
|
|
214
|
-
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023
|
|
215
|
-
agentdata procurement br_pncp_contracts --data-inicial 20260901 --data-final 20260930 --pagina 1
|
|
216
|
-
agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date 2020:2023
|
|
217
|
-
```
|
|
202
|
+
**141 datasets · 97 upstream providers · 21 jurisdictions:** US 41 · global 40 · EU 15 · UK 12 · Canada 5 · Colombia 3 · India 3 · Türkiye 3 · Australia 2 · Switzerland 2 · Czechia 2 · Guernsey 2 · Norway 2 · New Zealand 2 · Brazil 1 · Finland 1 · France 1 · Ireland 1 · Jersey 1 · Korea 1 · Kazakhstan 1.
|
|
218
203
|
|
|
219
|
-
|
|
220
|
-
|
|
204
|
+
| Domain | Commands | Sources |
|
|
205
|
+
|---|---|---|
|
|
206
|
+
| `company` | 32 | GLEIF, SEC EDGAR, FDIC, USAspending, TED, VIES, Zefix (CH), Brreg (NO), YTJ (FI), RUES (CO), Hometax (KR), ARES (CZ), SEBI intermediaries (IN), GBD_UL (KZ), GFSC (GG), JFSC (JE), ROR |
|
|
207
|
+
| `healthcare` | 31 | FDA approvals, recalls & shortages, ClinicalTrials.gov, RxNav, DailyMed, UK MHRA, Health Canada, EUDAMED, RASFF & Safety Gate (EU), TGA (AU), Europe PMC, MeSH |
|
|
208
|
+
| `legal` | 27 | US sanctions (CSL, OCC), eCFR, Federal Register, CourtListener, LDA filings, DG COMP, UK CMA & Electoral Commission, The Gazette, SEBI orders (IN), MDB debarment (WB/AfDB/IDB), Canada SEMA, CFPB complaints, SIPRI |
|
|
209
|
+
| `economy` | 18 | World Bank WDI, Eurostat, ECB rates, FRED, BLS, WHO xMart, UN Comtrade, ILOSTAT, BIS, IMF, OECD, EU Comext |
|
|
210
|
+
| `esg` | 12 | Climate TRACE, EITI, EU ETS (EUTL), THETIS-MRV, EPA FRS, Paris MoU, EU Air Safety List |
|
|
211
|
+
| `research` | 10 | OpenAlex, NIH RePORTER, NSF, Crossref, UKRI GtR, iCite, bioRxiv, OpenCitations |
|
|
212
|
+
| `procurement` | 7 | PNCP (BR), SECOP II (CO), UNGM, World Bank, NY Authorities / MTA / OGS (US) |
|
|
213
|
+
| `security` | 4 | OSV, CISA KEV, ENISA EUVD |
|
|
221
214
|
|
|
222
215
|
## Caching
|
|
223
216
|
|
|
224
|
-
Every response is cached in a per-user SQLite cache shared across
|
|
225
|
-
|
|
226
|
-
[
|
|
227
|
-
|
|
228
|
-
|
|
217
|
+
Every response is cached in a per-user SQLite cache shared across processes —
|
|
218
|
+
cache hits cost no rate budget, and entry lifetimes follow the per-source TTL
|
|
219
|
+
table in the [rate-limits ledger](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md);
|
|
220
|
+
immutable lookups (e.g. drug name → RxCUI) are cached permanently. A fresh
|
|
221
|
+
install in a new virtual environment will reuse entries written by earlier
|
|
222
|
+
runs on the same machine — that is by design.
|
|
229
223
|
|
|
230
224
|
| | |
|
|
231
225
|
|---|---|
|
|
232
|
-
| Default
|
|
233
|
-
| Override | `AGENTDATA_CACHE_DIR`
|
|
234
|
-
| Bypass | `--no-cache` (CLI)
|
|
235
|
-
| Clear | delete the file — every entry re-fetches on demand |
|
|
236
|
-
|
|
237
|
-
Entry lifetimes follow the per-source TTL table in the rate-limits ledger;
|
|
238
|
-
immutable lookups (e.g. drug name → RxCUI) are cached permanently.
|
|
226
|
+
| Default | `%LOCALAPPDATA%\agentdata\cache.db` (Windows) · `~/.cache/agentdata/cache.db` (macOS/Linux) |
|
|
227
|
+
| Override | `AGENTDATA_CACHE_DIR` env var · `--cache-dir` (CLI) |
|
|
228
|
+
| Bypass / clear | `--no-cache` (CLI) · `no_cache=True` (Python) · delete the file |
|
|
239
229
|
|
|
240
230
|
## Documentation
|
|
241
231
|
|
|
242
|
-
- [docs/domains/api.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/api.md) —
|
|
243
|
-
you installed: the two families,
|
|
244
|
-
conventions
|
|
245
|
-
- [docs/domains/rate-limits.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md) —
|
|
246
|
-
rate-limit facts this release enforces
|
|
247
|
-
- [docs/publishing.md](https://github.com/dicaria/agentdata/blob/main/docs/publishing.md) —
|
|
232
|
+
- [docs/domains/api.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/api.md) —
|
|
233
|
+
the API contract of the release you installed: the two families,
|
|
234
|
+
request/response envelope, parameter conventions
|
|
235
|
+
- [docs/domains/rate-limits.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md) —
|
|
236
|
+
per-source rate-limit facts this release enforces
|
|
237
|
+
- [docs/publishing.md](https://github.com/dicaria/agentdata/blob/main/docs/publishing.md) —
|
|
238
|
+
maintainer setup, package checks, and PyPI releases
|
|
248
239
|
- Hosted-corpus per-domain guides: contact **contact@dicaria.com**
|
|
249
240
|
|
|
250
241
|
## License and terms
|
|
@@ -252,13 +243,15 @@ immutable lookups (e.g. drug name → RxCUI) are cached permanently.
|
|
|
252
243
|
- The **code** in this repository is licensed under the license in
|
|
253
244
|
[LICENSE](https://github.com/dicaria/agentdata/blob/main/LICENSE).
|
|
254
245
|
- The **data** returned by the SDK is governed by the terms of each upstream
|
|
255
|
-
source; the SDK grants no data rights. See
|
|
246
|
+
source; the SDK grants no data rights. See
|
|
247
|
+
[TERMS.md](https://github.com/dicaria/agentdata/blob/main/TERMS.md).
|
|
256
248
|
|
|
257
249
|
## Contact
|
|
258
250
|
|
|
259
251
|
- Questions, bug reports, and data-coverage requests:
|
|
260
252
|
[GitHub issues](https://github.com/dicaria/agentdata/issues) or
|
|
261
|
-
**contact@dicaria.com** (see
|
|
253
|
+
**contact@dicaria.com** (see
|
|
254
|
+
[CONTRIBUTING.md](https://github.com/dicaria/agentdata/blob/main/CONTRIBUTING.md))
|
|
262
255
|
- Hosted-corpus credentials and service inquiries: **contact@dicaria.com**
|
|
263
256
|
- Security reports: **contact@dicaria.com** — please don't open a public
|
|
264
257
|
issue; see [SECURITY.md](https://github.com/dicaria/agentdata/blob/main/SECURITY.md)
|