agentdata 0.3.53__tar.gz → 0.3.54__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.53 → agentdata-0.3.54}/PKG-INFO +46 -24
- {agentdata-0.3.53 → agentdata-0.3.54}/README.md +45 -23
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/__init__.py +4 -3
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/cli.py +5 -3
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/client.py +3 -1
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/__init__.py +3 -2
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/cli.py +0 -33
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/faces.py +0 -48
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/entries.py +1 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/__init__.py +2 -2
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/cli.py +2 -65
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/faces.py +0 -182
- agentdata-0.3.54/agentdata/transportation/__init__.py +6 -0
- agentdata-0.3.54/agentdata/transportation/ca_ccar.py +172 -0
- agentdata-0.3.54/agentdata/transportation/cli.py +161 -0
- agentdata-0.3.54/agentdata/transportation/faces.py +320 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata.egg-info/PKG-INFO +46 -24
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata.egg-info/SOURCES.txt +9 -5
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata.egg-info/entry_points.txt +1 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/pyproject.toml +2 -1
- {agentdata-0.3.53 → agentdata-0.3.54}/LICENSE +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/__main__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/cache.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/capabilities.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/br_bacen.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/ca_osb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/cf.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/ch_zefix.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/chi_bacp.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/co_rues.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/cz_ares.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/de_inso.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/edgar_cik.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/edgar_fts.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/es_borme.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/es_cnmv.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/fdic_bankfind.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/fi_ytj.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/fr_recherche.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/fr_regafi.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/fts.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/gg_gfsc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/gleif.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/in_sebi_intm.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/je_jfsc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/jp_fsa.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/kr_hometax.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/kz_gbd_ul.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/lacity.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/no_brreg.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/nyc_dcwp.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/nzco.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/ror.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/ru_cbr_credit.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/sg_datagovsg.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/ted.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/tr_bddk.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/tr_spk_borsa.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/tx_tdlr.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/usaspending.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/vies.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/company/wa_doh.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/daterange.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/__init__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/bis.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/bls.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/cli.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/comext.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/ecb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/eurostat.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/faces.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/fred.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/ilo_stat.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/imf_sdmx.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/oecd_sdmx.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/un_comtrade.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/unsd_sdg.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/wb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/economy/who_xmart.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/errors.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/climatetrace.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/eiti.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/epa_frs.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/eutl.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/esg/uk_fhrs.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/__init__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/au_tga.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/ca_dpd.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/ca_mdall.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/cli.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/ctgov.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/dailymed.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/epmc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/eudamed.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/faces.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/fda_crl.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/fda_devices.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/fda_drugs.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/fda_recalls.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/gb_mhra.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/gudid.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/mesh.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/rasff.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/rxnav.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/safety_gate.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/shortages.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/healthcare/us_npi.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/hub.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/__init__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/afdb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/at_ris.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/br_bacen_complaints.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/br_bacen_regimes.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ca_sema.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/cfpb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/cli.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/co_sic.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/courtlistener.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/csl.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/dgcomp.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ecfr.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ee_erjk.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/faces.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/federalregister.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/fr_adlc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/gazette.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/gb_cma.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/gb_tna_caselaw.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/idb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ie_revenue.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ie_sipo.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/in_sebi.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/it_arera.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/lda.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/occ.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ru_cbr_warning.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/sipri.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/tr_spk.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ua_nazk.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/ukec.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/us_cftc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/us_ferc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/legal/wb.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/__init__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/br_pncp.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/cli.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/co_secop.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/faces.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/ny_open_data.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/ungm.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/procurement/wb_proc.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/__init__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/biorxiv.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/cli.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/crossref.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/faces.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/gb_gtr.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/icite.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/nih_reporter.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/nsf.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/openalex.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/research/opencitations.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/security/__init__.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/security/cisa_kev.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/security/cli.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/security/euvd.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/security/faces.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/security/osv.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata/transport.py +0 -0
- {agentdata-0.3.53/agentdata/esg → agentdata-0.3.54/agentdata/transportation}/euasl.py +0 -0
- {agentdata-0.3.53/agentdata/esg → agentdata-0.3.54/agentdata/transportation}/paris_mou.py +0 -0
- {agentdata-0.3.53/agentdata/esg → agentdata-0.3.54/agentdata/transportation}/thetis_mrv.py +0 -0
- {agentdata-0.3.53/agentdata/company → agentdata-0.3.54/agentdata/transportation}/us_fmcsa.py +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata.egg-info/dependency_links.txt +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/agentdata.egg-info/top_level.txt +0 -0
- {agentdata-0.3.53 → agentdata-0.3.54}/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.54
|
|
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,15 +28,15 @@ 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
|
-
**One Python client and CLI over
|
|
33
|
+
**One Python client and CLI over 182 public datasets — company registries,
|
|
34
34
|
sanctions lists, procurement awards, drug approvals — with no API keys and no
|
|
35
35
|
accounts.**
|
|
36
36
|
|
|
37
37
|
Government data holds the decisive facts about companies, but it is scattered
|
|
38
38
|
across 112 public APIs, each with its own pagination, rate
|
|
39
|
-
limits, and undocumented quirks. **agentdata puts
|
|
39
|
+
limits, and undocumented quirks. **agentdata puts 182 of those datasets behind
|
|
40
40
|
one interface**: a pure-standard-library client and CLI across 30 jurisdictions. Every upstream gotcha we hit live is already pinned — politeness
|
|
41
41
|
and caching are built in.
|
|
42
42
|
|
|
@@ -46,18 +46,18 @@ and caching are built in.
|
|
|
46
46
|
python -m pip install agentdata
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
For a reproducible install, pin the release: `python -m pip install agentdata==0.3.
|
|
49
|
+
For a reproducible install, pin the release: `python -m pip install agentdata==0.3.54`.
|
|
50
50
|
|
|
51
51
|
Prefer not to touch PyPI? Install straight from a release tarball:
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.
|
|
54
|
+
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.54.tar.gz
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Or via git (pin a tag for reproducible installs):
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.
|
|
60
|
+
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.54
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Or track the latest release (convenience for agents and scripts — a fresh
|
|
@@ -93,7 +93,8 @@ dataset, parameters kept under their upstream names. Every row below works as
|
|
|
93
93
|
| Who owns or controls it? | `company gleif_direct_parent` · `company no_brreg_roller` · `company fr_recherche_search` |
|
|
94
94
|
| Did it win public contracts? | `procurement br_pncp_contracts` · `procurement ungm_contract_awards` · `procurement wb_procnotices` |
|
|
95
95
|
| Is its drug or device approved — or recalled? | `healthcare fda_drug_approvals` · `healthcare gb_mhra_alerts` · `healthcare fda_drug_recalls` |
|
|
96
|
-
| What does this facility or fleet emit? | `esg climatetrace_sources` · `
|
|
96
|
+
| What does this facility or fleet emit? | `esg climatetrace_sources` · `transportation thetis_mrv_datasets` · `transportation paris_mou_detentions` |
|
|
97
|
+
| Which aircraft does this registration mark belong to? | `transportation ca_ccar_search` · `transportation ca_ccar_aircraft` |
|
|
97
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` · `company tr_spk_listed` · `company tr_bddk_institutions` · `company ru_cbr_credit_orgs` · `company br_bacen_institutions` · `company br_bacen_branches` · `company br_bacen_domains` · `company br_bacen_dasfn` |
|
|
98
99
|
| Has its broker been expelled, or its regulator fined it? | `legal in_sebi_orders` · `company in_sebi_default_brokers` |
|
|
99
100
|
| Has the regulator fined it, banned it, or put it under a special regime? | `legal tr_spk_fines` · `legal tr_spk_bans` · `legal br_bacen_regimes` |
|
|
@@ -111,6 +112,7 @@ c.healthcare.fda_drug_recalls(search='recalling_firm.exact:"SV Labs Toronto Corp
|
|
|
111
112
|
c.company.gleif_lei_records(lei="5493001KJTIIGC8Y1R12") # LEI -> entity identity card (GLEIF)
|
|
112
113
|
c.company.ch_zefix_firm_search(name="siemens") # Swiss commercial registry (Zefix)
|
|
113
114
|
c.esg.climatetrace_sources(owner_ids="E100000001492", year=2023) # owner -> facility-level emissions
|
|
115
|
+
c.transportation.paris_mou_inspections(period_min="01/12/2025", period_max="31/12/2025", ism_company_imo_number="0052193") # port-state inspection flow by management company (Paris MoU; dd/mm/yyyy window up to 3 years)
|
|
114
116
|
c.legal.csl_screening_list(name="VTB BANK") # sanctions screening (US CSL)
|
|
115
117
|
c.research.openalex_works(search="vaccine", ror="01xdqrp08")
|
|
116
118
|
c.procurement.br_pncp_contracts(data_inicial="20260901", data_final="20260930", pagina=1)
|
|
@@ -119,7 +121,7 @@ c.economy.wb_wdi_values(country="CHN", indicator="NY.GDP.MKTP.CD", date="2020:20
|
|
|
119
121
|
c.economy.ecb_fx_rates(currency="USD", start="2026-10-01", end="2026-10-31") # euro reference rate (1 EUR = X)
|
|
120
122
|
```
|
|
121
123
|
|
|
122
|
-
The same commands from the shell —
|
|
124
|
+
The same commands from the shell — ten entry points, `agentdata` plus one
|
|
123
125
|
per domain:
|
|
124
126
|
|
|
125
127
|
```bash
|
|
@@ -129,6 +131,7 @@ agentdata legal csl_screening_list --name "VTB BANK"
|
|
|
129
131
|
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023
|
|
130
132
|
agentdata procurement br_pncp_contracts --data-inicial 20260901 --data-final 20260930 --pagina 1
|
|
131
133
|
agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date 2020:2023
|
|
134
|
+
agentdata transportation ca_ccar_search --owner "AIR CANADA" --limit 3
|
|
132
135
|
```
|
|
133
136
|
|
|
134
137
|
If a domain entry-point command (`company`, `legal`, …) collides with another
|
|
@@ -188,7 +191,7 @@ You can — and then you get to rediscover what is already pinned here:
|
|
|
188
191
|
- **Quirks are pre-solved, not rediscovered.** Every command encodes traps we
|
|
189
192
|
hit against the live API: anti-forgery token dances, Socrata parameters that
|
|
190
193
|
are silently ignored, registries that clamp your page size without an error.
|
|
191
|
-
- **One envelope across all
|
|
194
|
+
- **One envelope across all 182 commands.** Query echo, `reason`, `evidence`,
|
|
192
195
|
source metadata, `jurisdiction` — your code parses one shape.
|
|
193
196
|
- **Upstream parameter names, verbatim.** What the official API docs call a
|
|
194
197
|
parameter is what the SDK takes — no invented vocabulary to unlearn.
|
|
@@ -199,22 +202,22 @@ You can — and then you get to rediscover what is already pinned here:
|
|
|
199
202
|
|
|
200
203
|
## Coverage
|
|
201
204
|
|
|
202
|
-
**
|
|
205
|
+
**182 datasets · 127 upstream providers · 30 jurisdictions:** US 50 · global 40 · EU 15 · UK 13 · Canada 8 · Brazil 7 · France 4 · Türkiye 4 · Colombia 3 · ES 3 · India 3 · AT 2 · Australia 2 · Switzerland 2 · Czechia 2 · DE 2 · EE 2 · Guernsey 2 · Ireland 2 · Norway 2 · New Zealand 2 · RU 2 · SG 2 · UA 2 · Finland 1 · IT 1 · Jersey 1 · JP 1 · Korea 1 · Kazakhstan 1.
|
|
203
206
|
|
|
204
207
|
| Domain | Commands | Sources |
|
|
205
208
|
|---|---|---|
|
|
206
209
|
| `healthcare` | 32 | US FDA approvals & recalls, ClinicalTrials.gov, RxNav, DailyMed, AccessGUDID, UK MHRA alerts, Health Canada DPD & MDALL, EUDAMED, RASFF & Safety Gate (EU), TGA (AU), Europe PMC, MeSH |
|
|
207
210
|
| `legal` | 41 | US consolidated screening list, eCFR, Federal Register, LDA filings, CourtListener, DG COMP, UK CMA cases, UK Electoral Commission, The Gazette, Irish Revenue defaulters, US OCC enforcement, TNA case law, SIPRI, SIC sanctions (CO), MDB debarment rosters (WB/AfDB/IDB), Canada SEMA, CFPB consumer complaints, SEBI enforcement orders (IN), SPK administrative fines & trading bans (TR), CBR illegal-finance warning register (RU), BACEN special regimes & complaint rankings (BR), RIS case law & consolidated federal law (AT) |
|
|
208
|
-
| `company` |
|
|
211
|
+
| `company` | 54 | GLEIF, SEC EDGAR, FDIC, USAspending, TED, VIES, UK Contracts Finder & FTS, Zefix (CH), Brreg (NO), YTJ (FI), recherche-entreprises (FR), RUES (CO), Hometax (KR), ROR, NZ Companies Office, ARES (CZ), GFSC (GG), JFSC (JE), GBD_UL (KZ), SEBI intermediaries (IN), SPK public-company register (TR), BDDK licensed institutions (TR), CBR credit institutions (RU), BACEN institutions, branches, verified domains & open-finance API directory (BR), federal insolvency announcements (DE), FSA licensed-institution registers (JP), CCAA restructuring roster (CA), CNMV supervised entities & BORME gazette (ES), data.gov.sg platform (SG), TDLR licenses (TX) & DOH credentials (WA), Chicago BACP business licenses, LA City business register, NYC DCWP licenses |
|
|
209
212
|
| `economy` | 18 | World Bank WDI, Eurostat, ECB reference rates, FRED, WHO xMart, UN Comtrade, ILOSTAT, BLS, BIS, IMF, OECD, Comext |
|
|
210
|
-
| `esg` |
|
|
213
|
+
| `esg` | 7 | Climate TRACE, EITI, EU ETS (EUTL), THETIS-MRV (EU shipping), EPA FRS, Paris MoU, EU Air Safety List |
|
|
211
214
|
| `research` | 10 | OpenAlex, NIH RePORTER, NSF, Crossref, UKRI GtR, iCite, bioRxiv, OpenCitations |
|
|
212
215
|
| `procurement` | 7 | PNCP (BR), SECOP II (CO), UNGM, World Bank, New York Authorities / MTA / OGS (US) |
|
|
213
216
|
| `security` | 4 | OSV, CISA KEV, ENISA EUVD |
|
|
214
217
|
|
|
215
218
|
## Full command index
|
|
216
219
|
|
|
217
|
-
|
|
220
|
+
Ten entry points — `agentdata` plus one command per domain — and 182 dataset
|
|
218
221
|
commands under them: one command per upstream dataset, parameters kept under
|
|
219
222
|
their upstream names. The block below is the complete index, grouped by domain
|
|
220
223
|
in the same order as the Chinese [README.md](README.md). Every line is a
|
|
@@ -264,7 +267,7 @@ agentdata healthcare safety_gate_alerts --year 2026 --limit 5
|
|
|
264
267
|
agentdata healthcare safety_gate_report --report-id 10000329 --limit 5
|
|
265
268
|
agentdata healthcare us_npi_organizations --organization-name "Mayo Clinic" --state MN --limit 3
|
|
266
269
|
|
|
267
|
-
# company (
|
|
270
|
+
# company (54)
|
|
268
271
|
agentdata company gleif_lei_records --lei 5493001KJTIIGC8Y1R12
|
|
269
272
|
agentdata company gleif_lei_records_search --filter-entity-legal-name Nestle --filter-entity-jurisdiction CH --page-size 5
|
|
270
273
|
agentdata company gleif_direct_parent --lei 5493001KJTIIGC8Y1R12
|
|
@@ -335,8 +338,6 @@ agentdata company wa_doh_credentials --where "credentialtype='Physician And Surg
|
|
|
335
338
|
agentdata company chi_bacp_licenses --where "license_description='Consumption on Premises - Incidental Activity' and license_status='AAI'" --limit 3
|
|
336
339
|
agentdata company lacity_registrations --where "naics like '7213%' and council_district='10'" --limit 3
|
|
337
340
|
agentdata company nyc_dcwp_licenses --where "business_category='Secondhand Dealer - General' and license_status='Active'" --limit 3
|
|
338
|
-
agentdata company us_fmcsa_carriers --limit 3
|
|
339
|
-
agentdata company us_fmcsa_carriers --where "dot_number='963305'" --limit 3
|
|
340
341
|
|
|
341
342
|
# economy (18)
|
|
342
343
|
agentdata economy bis_sdmx_series --flow WS_CBPOL --key M.US --start 2026-01-01
|
|
@@ -358,20 +359,25 @@ agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date
|
|
|
358
359
|
agentdata economy who_xmart_indicators --search tuberculosis --top 20
|
|
359
360
|
agentdata economy who_xmart_values --indicator TB_ppm_enrol_tx_prct --geo PAK --year 2023
|
|
360
361
|
|
|
361
|
-
# esg (
|
|
362
|
+
# esg (7)
|
|
362
363
|
agentdata esg eiti_companies --name Equinor
|
|
363
364
|
agentdata esg eiti_payments --name Equinor
|
|
364
365
|
agentdata esg climatetrace_owners --name Gazprom
|
|
365
366
|
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023 --limit 20
|
|
366
367
|
agentdata esg epa_frs_facilities --state-code DE --city-name MILTON --size 3
|
|
367
|
-
agentdata esg euasl_datasets
|
|
368
368
|
agentdata esg eutl_datasets
|
|
369
|
-
agentdata esg thetis_mrv_datasets
|
|
370
369
|
agentdata esg uk_fhrs_establishments --name "pret a manger" --address london --pagesize 3
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
agentdata
|
|
374
|
-
agentdata
|
|
370
|
+
|
|
371
|
+
# transportation (9)
|
|
372
|
+
agentdata transportation ca_ccar_aircraft --id 538042
|
|
373
|
+
agentdata transportation ca_ccar_search --owner "AIR CANADA" --limit 3
|
|
374
|
+
agentdata transportation euasl_datasets
|
|
375
|
+
agentdata transportation paris_mou_bans
|
|
376
|
+
agentdata transportation paris_mou_detentions
|
|
377
|
+
agentdata transportation paris_mou_inspections --period-min 01/12/2025 --period-max 31/12/2025 --ism-company-imo-number 0052193
|
|
378
|
+
agentdata transportation paris_mou_low_performance_companies
|
|
379
|
+
agentdata transportation thetis_mrv_datasets
|
|
380
|
+
agentdata transportation us_fmcsa_carriers --where "dot_number='963305'" --limit 3
|
|
375
381
|
|
|
376
382
|
# legal (38)
|
|
377
383
|
agentdata legal afdb_debarred_entities --name "CHINA RAILWAY" --limit 3
|
|
@@ -477,6 +483,22 @@ runs on the same machine — that is by design.
|
|
|
477
483
|
The complete batch log — every release back to 0.1.0 — is kept in the Chinese
|
|
478
484
|
[README.md](README.md#版本). The five most recent batches:
|
|
479
485
|
|
|
486
|
+
**0.3.54 — transportation domain founding (+2 faces, 180→182; ninth domain — esg 13→7, company 55→54).**
|
|
487
|
+
Seven faces moved zero-rename into the new domain (euasl, thetis_mrv and the
|
|
488
|
+
Paris MoU quartet from esg; us_fmcsa_carriers from company) — same names,
|
|
489
|
+
parameters and jurisdictions, only the prefix becomes `agentdata
|
|
490
|
+
transportation …`; a wrong-domain call gets a usage_error naming the right
|
|
491
|
+
domain. New: the Transport Canada CCAR pair reads the Canadian civil aircraft
|
|
492
|
+
register (CCARCS-RIACC) keyless — the interactive POST form 302s to a
|
|
493
|
+
stateless bare GET (`RchSimpRes.aspx`: five pipe-wrapped contains slots +
|
|
494
|
+
`print=y`, which ships the whole result set in one page); contains matching is
|
|
495
|
+
case-sensitive as stored ("AIR CANADA" 269 rows vs "Air Canada" 0, ruled live
|
|
496
|
+
2026-11-11); the per-aircraft face flattens the four ADet blocks into one dict
|
|
497
|
+
with unmapped labels kept under `extra_fields`; the ~500k id space has holes —
|
|
498
|
+
a miss is a legal empty. Probe pinned 2026-11-10 under tmp/probe-ca-ccar/;
|
|
499
|
+
rate-limits v1.42. Acceptance: full offline suite + one live call per new face
|
|
500
|
+
(2026-11-11).
|
|
501
|
+
|
|
480
502
|
**0.3.53 — FR Regafi pair + UK FHRS + US NPPES (+4 faces, 176→180; company 53→55, esg 12→13, healthcare 31→32).**
|
|
481
503
|
Four keyless providers, probes pinned 2026-11-10 under tmp/probe-sdk0352/.
|
|
482
504
|
`fr_regafi_entities` / `fr_regafi_authorisations` read the ACPR's official
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
[](https://pypi.org/project/agentdata/)
|
|
4
4
|
[](https://github.com/dicaria/agentdata/blob/main/LICENSE)
|
|
5
5
|
[](https://www.python.org)
|
|
6
|
-
[](https://github.com/dicaria/agentdata/blob/main/docs/domains/api.md)
|
|
7
7
|
|
|
8
|
-
**One Python client and CLI over
|
|
8
|
+
**One Python client and CLI over 182 public datasets — company registries,
|
|
9
9
|
sanctions lists, procurement awards, drug approvals — with no API keys and no
|
|
10
10
|
accounts.**
|
|
11
11
|
|
|
12
12
|
Government data holds the decisive facts about companies, but it is scattered
|
|
13
13
|
across 112 public APIs, each with its own pagination, rate
|
|
14
|
-
limits, and undocumented quirks. **agentdata puts
|
|
14
|
+
limits, and undocumented quirks. **agentdata puts 182 of those datasets behind
|
|
15
15
|
one interface**: a pure-standard-library client and CLI across 30 jurisdictions. Every upstream gotcha we hit live is already pinned — politeness
|
|
16
16
|
and caching are built in.
|
|
17
17
|
|
|
@@ -21,18 +21,18 @@ and caching are built in.
|
|
|
21
21
|
python -m pip install agentdata
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
For a reproducible install, pin the release: `python -m pip install agentdata==0.3.
|
|
24
|
+
For a reproducible install, pin the release: `python -m pip install agentdata==0.3.54`.
|
|
25
25
|
|
|
26
26
|
Prefer not to touch PyPI? Install straight from a release tarball:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.
|
|
29
|
+
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.54.tar.gz
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Or via git (pin a tag for reproducible installs):
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.
|
|
35
|
+
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.54
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Or track the latest release (convenience for agents and scripts — a fresh
|
|
@@ -68,7 +68,8 @@ dataset, parameters kept under their upstream names. Every row below works as
|
|
|
68
68
|
| Who owns or controls it? | `company gleif_direct_parent` · `company no_brreg_roller` · `company fr_recherche_search` |
|
|
69
69
|
| Did it win public contracts? | `procurement br_pncp_contracts` · `procurement ungm_contract_awards` · `procurement wb_procnotices` |
|
|
70
70
|
| Is its drug or device approved — or recalled? | `healthcare fda_drug_approvals` · `healthcare gb_mhra_alerts` · `healthcare fda_drug_recalls` |
|
|
71
|
-
| What does this facility or fleet emit? | `esg climatetrace_sources` · `
|
|
71
|
+
| What does this facility or fleet emit? | `esg climatetrace_sources` · `transportation thetis_mrv_datasets` · `transportation paris_mou_detentions` |
|
|
72
|
+
| Which aircraft does this registration mark belong to? | `transportation ca_ccar_search` · `transportation ca_ccar_aircraft` |
|
|
72
73
|
| 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` · `company tr_spk_listed` · `company tr_bddk_institutions` · `company ru_cbr_credit_orgs` · `company br_bacen_institutions` · `company br_bacen_branches` · `company br_bacen_domains` · `company br_bacen_dasfn` |
|
|
73
74
|
| Has its broker been expelled, or its regulator fined it? | `legal in_sebi_orders` · `company in_sebi_default_brokers` |
|
|
74
75
|
| Has the regulator fined it, banned it, or put it under a special regime? | `legal tr_spk_fines` · `legal tr_spk_bans` · `legal br_bacen_regimes` |
|
|
@@ -86,6 +87,7 @@ c.healthcare.fda_drug_recalls(search='recalling_firm.exact:"SV Labs Toronto Corp
|
|
|
86
87
|
c.company.gleif_lei_records(lei="5493001KJTIIGC8Y1R12") # LEI -> entity identity card (GLEIF)
|
|
87
88
|
c.company.ch_zefix_firm_search(name="siemens") # Swiss commercial registry (Zefix)
|
|
88
89
|
c.esg.climatetrace_sources(owner_ids="E100000001492", year=2023) # owner -> facility-level emissions
|
|
90
|
+
c.transportation.paris_mou_inspections(period_min="01/12/2025", period_max="31/12/2025", ism_company_imo_number="0052193") # port-state inspection flow by management company (Paris MoU; dd/mm/yyyy window up to 3 years)
|
|
89
91
|
c.legal.csl_screening_list(name="VTB BANK") # sanctions screening (US CSL)
|
|
90
92
|
c.research.openalex_works(search="vaccine", ror="01xdqrp08")
|
|
91
93
|
c.procurement.br_pncp_contracts(data_inicial="20260901", data_final="20260930", pagina=1)
|
|
@@ -94,7 +96,7 @@ c.economy.wb_wdi_values(country="CHN", indicator="NY.GDP.MKTP.CD", date="2020:20
|
|
|
94
96
|
c.economy.ecb_fx_rates(currency="USD", start="2026-10-01", end="2026-10-31") # euro reference rate (1 EUR = X)
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
The same commands from the shell —
|
|
99
|
+
The same commands from the shell — ten entry points, `agentdata` plus one
|
|
98
100
|
per domain:
|
|
99
101
|
|
|
100
102
|
```bash
|
|
@@ -104,6 +106,7 @@ agentdata legal csl_screening_list --name "VTB BANK"
|
|
|
104
106
|
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023
|
|
105
107
|
agentdata procurement br_pncp_contracts --data-inicial 20260901 --data-final 20260930 --pagina 1
|
|
106
108
|
agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date 2020:2023
|
|
109
|
+
agentdata transportation ca_ccar_search --owner "AIR CANADA" --limit 3
|
|
107
110
|
```
|
|
108
111
|
|
|
109
112
|
If a domain entry-point command (`company`, `legal`, …) collides with another
|
|
@@ -163,7 +166,7 @@ You can — and then you get to rediscover what is already pinned here:
|
|
|
163
166
|
- **Quirks are pre-solved, not rediscovered.** Every command encodes traps we
|
|
164
167
|
hit against the live API: anti-forgery token dances, Socrata parameters that
|
|
165
168
|
are silently ignored, registries that clamp your page size without an error.
|
|
166
|
-
- **One envelope across all
|
|
169
|
+
- **One envelope across all 182 commands.** Query echo, `reason`, `evidence`,
|
|
167
170
|
source metadata, `jurisdiction` — your code parses one shape.
|
|
168
171
|
- **Upstream parameter names, verbatim.** What the official API docs call a
|
|
169
172
|
parameter is what the SDK takes — no invented vocabulary to unlearn.
|
|
@@ -174,22 +177,22 @@ You can — and then you get to rediscover what is already pinned here:
|
|
|
174
177
|
|
|
175
178
|
## Coverage
|
|
176
179
|
|
|
177
|
-
**
|
|
180
|
+
**182 datasets · 127 upstream providers · 30 jurisdictions:** US 50 · global 40 · EU 15 · UK 13 · Canada 8 · Brazil 7 · France 4 · Türkiye 4 · Colombia 3 · ES 3 · India 3 · AT 2 · Australia 2 · Switzerland 2 · Czechia 2 · DE 2 · EE 2 · Guernsey 2 · Ireland 2 · Norway 2 · New Zealand 2 · RU 2 · SG 2 · UA 2 · Finland 1 · IT 1 · Jersey 1 · JP 1 · Korea 1 · Kazakhstan 1.
|
|
178
181
|
|
|
179
182
|
| Domain | Commands | Sources |
|
|
180
183
|
|---|---|---|
|
|
181
184
|
| `healthcare` | 32 | US FDA approvals & recalls, ClinicalTrials.gov, RxNav, DailyMed, AccessGUDID, UK MHRA alerts, Health Canada DPD & MDALL, EUDAMED, RASFF & Safety Gate (EU), TGA (AU), Europe PMC, MeSH |
|
|
182
185
|
| `legal` | 41 | US consolidated screening list, eCFR, Federal Register, LDA filings, CourtListener, DG COMP, UK CMA cases, UK Electoral Commission, The Gazette, Irish Revenue defaulters, US OCC enforcement, TNA case law, SIPRI, SIC sanctions (CO), MDB debarment rosters (WB/AfDB/IDB), Canada SEMA, CFPB consumer complaints, SEBI enforcement orders (IN), SPK administrative fines & trading bans (TR), CBR illegal-finance warning register (RU), BACEN special regimes & complaint rankings (BR), RIS case law & consolidated federal law (AT) |
|
|
183
|
-
| `company` |
|
|
186
|
+
| `company` | 54 | GLEIF, SEC EDGAR, FDIC, USAspending, TED, VIES, UK Contracts Finder & FTS, Zefix (CH), Brreg (NO), YTJ (FI), recherche-entreprises (FR), RUES (CO), Hometax (KR), ROR, NZ Companies Office, ARES (CZ), GFSC (GG), JFSC (JE), GBD_UL (KZ), SEBI intermediaries (IN), SPK public-company register (TR), BDDK licensed institutions (TR), CBR credit institutions (RU), BACEN institutions, branches, verified domains & open-finance API directory (BR), federal insolvency announcements (DE), FSA licensed-institution registers (JP), CCAA restructuring roster (CA), CNMV supervised entities & BORME gazette (ES), data.gov.sg platform (SG), TDLR licenses (TX) & DOH credentials (WA), Chicago BACP business licenses, LA City business register, NYC DCWP licenses |
|
|
184
187
|
| `economy` | 18 | World Bank WDI, Eurostat, ECB reference rates, FRED, WHO xMart, UN Comtrade, ILOSTAT, BLS, BIS, IMF, OECD, Comext |
|
|
185
|
-
| `esg` |
|
|
188
|
+
| `esg` | 7 | Climate TRACE, EITI, EU ETS (EUTL), THETIS-MRV (EU shipping), EPA FRS, Paris MoU, EU Air Safety List |
|
|
186
189
|
| `research` | 10 | OpenAlex, NIH RePORTER, NSF, Crossref, UKRI GtR, iCite, bioRxiv, OpenCitations |
|
|
187
190
|
| `procurement` | 7 | PNCP (BR), SECOP II (CO), UNGM, World Bank, New York Authorities / MTA / OGS (US) |
|
|
188
191
|
| `security` | 4 | OSV, CISA KEV, ENISA EUVD |
|
|
189
192
|
|
|
190
193
|
## Full command index
|
|
191
194
|
|
|
192
|
-
|
|
195
|
+
Ten entry points — `agentdata` plus one command per domain — and 182 dataset
|
|
193
196
|
commands under them: one command per upstream dataset, parameters kept under
|
|
194
197
|
their upstream names. The block below is the complete index, grouped by domain
|
|
195
198
|
in the same order as the Chinese [README.md](README.md). Every line is a
|
|
@@ -239,7 +242,7 @@ agentdata healthcare safety_gate_alerts --year 2026 --limit 5
|
|
|
239
242
|
agentdata healthcare safety_gate_report --report-id 10000329 --limit 5
|
|
240
243
|
agentdata healthcare us_npi_organizations --organization-name "Mayo Clinic" --state MN --limit 3
|
|
241
244
|
|
|
242
|
-
# company (
|
|
245
|
+
# company (54)
|
|
243
246
|
agentdata company gleif_lei_records --lei 5493001KJTIIGC8Y1R12
|
|
244
247
|
agentdata company gleif_lei_records_search --filter-entity-legal-name Nestle --filter-entity-jurisdiction CH --page-size 5
|
|
245
248
|
agentdata company gleif_direct_parent --lei 5493001KJTIIGC8Y1R12
|
|
@@ -310,8 +313,6 @@ agentdata company wa_doh_credentials --where "credentialtype='Physician And Surg
|
|
|
310
313
|
agentdata company chi_bacp_licenses --where "license_description='Consumption on Premises - Incidental Activity' and license_status='AAI'" --limit 3
|
|
311
314
|
agentdata company lacity_registrations --where "naics like '7213%' and council_district='10'" --limit 3
|
|
312
315
|
agentdata company nyc_dcwp_licenses --where "business_category='Secondhand Dealer - General' and license_status='Active'" --limit 3
|
|
313
|
-
agentdata company us_fmcsa_carriers --limit 3
|
|
314
|
-
agentdata company us_fmcsa_carriers --where "dot_number='963305'" --limit 3
|
|
315
316
|
|
|
316
317
|
# economy (18)
|
|
317
318
|
agentdata economy bis_sdmx_series --flow WS_CBPOL --key M.US --start 2026-01-01
|
|
@@ -333,20 +334,25 @@ agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date
|
|
|
333
334
|
agentdata economy who_xmart_indicators --search tuberculosis --top 20
|
|
334
335
|
agentdata economy who_xmart_values --indicator TB_ppm_enrol_tx_prct --geo PAK --year 2023
|
|
335
336
|
|
|
336
|
-
# esg (
|
|
337
|
+
# esg (7)
|
|
337
338
|
agentdata esg eiti_companies --name Equinor
|
|
338
339
|
agentdata esg eiti_payments --name Equinor
|
|
339
340
|
agentdata esg climatetrace_owners --name Gazprom
|
|
340
341
|
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023 --limit 20
|
|
341
342
|
agentdata esg epa_frs_facilities --state-code DE --city-name MILTON --size 3
|
|
342
|
-
agentdata esg euasl_datasets
|
|
343
343
|
agentdata esg eutl_datasets
|
|
344
|
-
agentdata esg thetis_mrv_datasets
|
|
345
344
|
agentdata esg uk_fhrs_establishments --name "pret a manger" --address london --pagesize 3
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
agentdata
|
|
349
|
-
agentdata
|
|
345
|
+
|
|
346
|
+
# transportation (9)
|
|
347
|
+
agentdata transportation ca_ccar_aircraft --id 538042
|
|
348
|
+
agentdata transportation ca_ccar_search --owner "AIR CANADA" --limit 3
|
|
349
|
+
agentdata transportation euasl_datasets
|
|
350
|
+
agentdata transportation paris_mou_bans
|
|
351
|
+
agentdata transportation paris_mou_detentions
|
|
352
|
+
agentdata transportation paris_mou_inspections --period-min 01/12/2025 --period-max 31/12/2025 --ism-company-imo-number 0052193
|
|
353
|
+
agentdata transportation paris_mou_low_performance_companies
|
|
354
|
+
agentdata transportation thetis_mrv_datasets
|
|
355
|
+
agentdata transportation us_fmcsa_carriers --where "dot_number='963305'" --limit 3
|
|
350
356
|
|
|
351
357
|
# legal (38)
|
|
352
358
|
agentdata legal afdb_debarred_entities --name "CHINA RAILWAY" --limit 3
|
|
@@ -452,6 +458,22 @@ runs on the same machine — that is by design.
|
|
|
452
458
|
The complete batch log — every release back to 0.1.0 — is kept in the Chinese
|
|
453
459
|
[README.md](README.md#版本). The five most recent batches:
|
|
454
460
|
|
|
461
|
+
**0.3.54 — transportation domain founding (+2 faces, 180→182; ninth domain — esg 13→7, company 55→54).**
|
|
462
|
+
Seven faces moved zero-rename into the new domain (euasl, thetis_mrv and the
|
|
463
|
+
Paris MoU quartet from esg; us_fmcsa_carriers from company) — same names,
|
|
464
|
+
parameters and jurisdictions, only the prefix becomes `agentdata
|
|
465
|
+
transportation …`; a wrong-domain call gets a usage_error naming the right
|
|
466
|
+
domain. New: the Transport Canada CCAR pair reads the Canadian civil aircraft
|
|
467
|
+
register (CCARCS-RIACC) keyless — the interactive POST form 302s to a
|
|
468
|
+
stateless bare GET (`RchSimpRes.aspx`: five pipe-wrapped contains slots +
|
|
469
|
+
`print=y`, which ships the whole result set in one page); contains matching is
|
|
470
|
+
case-sensitive as stored ("AIR CANADA" 269 rows vs "Air Canada" 0, ruled live
|
|
471
|
+
2026-11-11); the per-aircraft face flattens the four ADet blocks into one dict
|
|
472
|
+
with unmapped labels kept under `extra_fields`; the ~500k id space has holes —
|
|
473
|
+
a miss is a legal empty. Probe pinned 2026-11-10 under tmp/probe-ca-ccar/;
|
|
474
|
+
rate-limits v1.42. Acceptance: full offline suite + one live call per new face
|
|
475
|
+
(2026-11-11).
|
|
476
|
+
|
|
455
477
|
**0.3.53 — FR Regafi pair + UK FHRS + US NPPES (+4 faces, 176→180; company 53→55, esg 12→13, healthcare 31→32).**
|
|
456
478
|
Four keyless providers, probes pinned 2026-11-10 under tmp/probe-sdk0352/.
|
|
457
479
|
`fr_regafi_entities` / `fr_regafi_authorisations` read the ACPR's official
|
|
@@ -19,15 +19,16 @@ Contract: docs/domains/api.md (cross-domain charter) + per-domain API docs. Zero
|
|
|
19
19
|
c2 = Client(base_url="https://…", api_key="mk_live_…") # corpus family: hosted
|
|
20
20
|
c2.company.search(filters={"qtype": "专精特新小巨人"}, limit=100)
|
|
21
21
|
|
|
22
|
-
CLI:
|
|
22
|
+
CLI: nine domains executable (`agentdata healthcare fda_drug_shortages --search …`
|
|
23
23
|
`agentdata company ted_notices_search --query 'organisation-name-buyer=Siemens*'`,
|
|
24
24
|
`agentdata esg climatetrace_sources --owner-ids E…`, `agentdata procurement br_pncp_contracts --data-inicial 20260101`,
|
|
25
|
-
`agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD
|
|
25
|
+
`agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD`,
|
|
26
|
+
`agentdata transportation ca_ccar_search --owner "AIR CANADA"`).
|
|
26
27
|
Upstream parameter names verbatim + our defaults.
|
|
27
28
|
"""
|
|
28
29
|
from .client import Client
|
|
29
30
|
from .errors import SdkError
|
|
30
31
|
|
|
31
|
-
__version__ = "0.3.
|
|
32
|
+
__version__ = "0.3.54" # version bumps with each release; per-batch narratives live in the internal ledger (MAPPING.md batch window + mapping/<domain>.md booklets) and MR descriptions (not exported)
|
|
32
33
|
|
|
33
34
|
__all__ = ["Client", "SdkError", "__version__"]
|
|
@@ -20,14 +20,16 @@ from .legal import cli as legal_cli
|
|
|
20
20
|
from .procurement import cli as procurement_cli
|
|
21
21
|
from .research import cli as research_cli
|
|
22
22
|
from .security import cli as security_cli
|
|
23
|
+
from .transportation import cli as transportation_cli
|
|
23
24
|
|
|
24
25
|
# 0.2.6 per-domain split: the domain command registrars (register(v, g)) live in each domain's cli.py;
|
|
25
26
|
# the root keeps only the shared parts plus the search/read dispatch
|
|
26
27
|
# 0.3.10 domain order = lexicographic (DOMAIN_ORDER is the source of truth — the build_parser loop, per-domain face order, and site navigation all follow it; the sort key is the English identifier)
|
|
27
|
-
DOMAIN_ORDER = ("company", "economy", "esg", "healthcare", "legal", "procurement", "research", "security")
|
|
28
|
+
DOMAIN_ORDER = ("company", "economy", "esg", "healthcare", "legal", "procurement", "research", "security", "transportation")
|
|
28
29
|
_CLI = {"company": company_cli, "economy": economy_cli, "esg": esg_cli,
|
|
29
30
|
"healthcare": healthcare_cli, "legal": legal_cli, "procurement": procurement_cli,
|
|
30
|
-
"research": research_cli, "security": security_cli
|
|
31
|
+
"research": research_cli, "security": security_cli,
|
|
32
|
+
"transportation": transportation_cli}
|
|
31
33
|
from .errors import SdkError
|
|
32
34
|
|
|
33
35
|
|
|
@@ -163,7 +165,7 @@ def build_parser():
|
|
|
163
165
|
_FLAT_DISPATCH = {}
|
|
164
166
|
for _m in _CLI.values():
|
|
165
167
|
_FLAT_DISPATCH.update(_m.FLAT)
|
|
166
|
-
assert len(_FLAT_DISPATCH) ==
|
|
168
|
+
assert len(_FLAT_DISPATCH) == 182, f"flat dispatch {len(_FLAT_DISPATCH)} != 182 (182 faces; 0.3.2 esg +2 + 0.3.3 European registries +5 + 0.3.4 FR recherche +1 + 0.3.5 esg port-state +5 + 0.3.6 World Bank/NY +3 + 0.3.8 legal TNA caselaw +2 + 0.3.12 UNGM/NY OGS collection +2 + 0.3.14 CO RUES/KR hometax +2 + 0.3.16 legal co_sic +1 + healthcare gb_mhra +2 + 0.3.19 healthcare CA DPD/MDALL +4 + rasff/safety_gate +3 + 0.3.21 legal debarment rosters afdb/ca_sema/idb/wb +4 + 0.3.22 transport compliance euasl_datasets +1 + 0.3.23 economy domain (wb/eurostat/ecb/fred/who_xmart/un_comtrade/ilo_stat) +10 + 0.3.24 economy expansion (imf_sdmx/bis/unsd_sdg/wb_ids) +5 + 0.3.25 security EUVD (euvd) +2 + 0.3.26 economy expansion (comext/oecd_sdmx) +2 + 0.3.27 legal gazette/ie_revenue +2 + 0.3.28 legal us_occ +1 + 0.3.29 economy bls_series +1 + 0.3.30 company NZ Companies Office nzco_companies/nzco_directors +2 + 0.3.31 legal CFPB cfpb_complaints/cfpb_suggest_company +2 + 0.3.32 company CZ ARES cz_ares_ekonomicke_subjekty/cz_ares_ekonomicke_subjekty_vyhledat +2 + 0.3.33 company offshore Channel Islands gg_gfsc_regulated_entities/gg_gfsc_registered_businesses/je_jfsc_regulated_entities +3 + 0.3.34 company KZ GBD_UL kz_gbd_ul_companies +1 + 0.3.35 IN SEBI legal in_sebi_orders/company in_sebi_intermediaries+in_sebi_default_brokers +3 + 0.3.36 TR SPK legal tr_spk_fines+tr_spk_bans/company tr_spk_listed +3 + 0.3.37 RU CBR legal ru_cbr_warning_list/company ru_cbr_credit_orgs +2 (first RU jurisdiction) + 0.3.38 BR BACEN legal br_bacen_regimes/company br_bacen_institutions+br_bacen_branches+br_bacen_domains+br_bacen_dasfn +5 (first BR jurisdiction) + 0.3.39 legal br_bacen_complaints rdrweb +1 + 0.3.40 company tr_bddk_institutions BDDK cards +1 + 0.3.41 company DE federal insolvency announcements de_inso_search/de_inso_register_lookup +2 (first DE jurisdiction) + 0.3.42 company JP FSA licensed farm jp_fsa_licensed +1 (first JP jurisdiction) + 0.3.43 company CA OSB CCAA roster ca_ccaa_records +1 + 0.3.44 company ES CNMV entidades register es_cnmv_entities +1 (first ES jurisdiction) + 0.3.45 company ES BORME daily gazette es_borme_day+es_borme_notice +2 (ES jurisdiction #2) + 0.3.46 company SG data.gov.sg open-data platform sg_datagovsg_datasets+sg_datagovsg_dataset_download +2 (first SG jurisdiction — the ACRA register of record rides the national platform) + 0.3.47 legal AT RIS OGD at_ris_judgments+at_ris_statutes +2 (first AT jurisdiction) + 0.3.48 company US state licenses tx_tdlr_licenses+wa_doh_credentials +2 (Socrata twin) + 0.3.49 company US city licenses chi_bacp_licenses+lacity_registrations+nyc_dcwp_licenses +3 (Socrata city trio) + 0.3.50 legal enforcement/party-finance tier us_ferc_elibrary+ie_sipo_lobbying+ee_erjk_quarterly_reports+ee_erjk_election_reports+ua_nazk_parties+ua_nazk_party_reports +6 (first EE and UA jurisdictions) + 0.3.51 legal enforcement tier-two fr_adlc_sanctions+it_arera_decisions+us_cftc_enforcement + company us_fmcsa_carriers +4 (first FR and IT legal jurisdictions) + 0.3.53 company fr_regafi_authorisations+fr_regafi_entities + esg uk_fhrs_establishments + healthcare us_npi_organizations +4 + 0.3.54 transportation domain founding (euasl+paris_mou x4+thetis_mrv from esg + us_fmcsa from company migrated, zero renames; ca_ccar_search+ca_ccar_aircraft new) +2; the csl_screening alias was removed in 0.3.0)"
|
|
167
169
|
# 0.3.10 jurisdiction chapter: face -> jurisdiction (default = the issuing authority's jurisdiction; institutions covering global phenomena = GLOBAL; vocabulary = ISO-3166 alpha-2 + EU + GLOBAL).
|
|
168
170
|
# The per-domain source of truth is each domain cli.py's COUNTRY (same face set as FLAT); the root only merges them; the success envelope carries a jurisdiction chapter (search/read are hosted mixed-jurisdiction corpus services — unstamped)
|
|
169
171
|
_JURISDICTION = {f: cc for _m in _CLI.values() for f, cc in _m.COUNTRY.items()}
|
|
@@ -23,6 +23,7 @@ from .legal.faces import LegalFaces
|
|
|
23
23
|
from .procurement.faces import ProcurementFaces
|
|
24
24
|
from .research.faces import ResearchFaces
|
|
25
25
|
from .security.faces import SecurityFaces
|
|
26
|
+
from .transportation.faces import TransportationFaces
|
|
26
27
|
from .errors import SdkError
|
|
27
28
|
from .cache import Cache
|
|
28
29
|
from .hub import HubClient, _no_redirect_opener
|
|
@@ -55,6 +56,7 @@ class Client:
|
|
|
55
56
|
self.research = _Domain(self, "research")
|
|
56
57
|
self.security = _Domain(self, "security")
|
|
57
58
|
self.economy = _Domain(self, "economy") # 0.3.23: the eighth domain (country denominators)
|
|
59
|
+
self.transportation = _Domain(self, "transportation") # 0.3.54: the ninth domain (transport safety & operators)
|
|
58
60
|
# hub family (RFC-002): the PAT doubles as the downstream-token credential; config errors
|
|
59
61
|
# surface at call time (hub_get/hub_token), never at construction (enrichment stays zero-config)
|
|
60
62
|
self.allow_http = bool(allow_http) # test-only escape hatch; production is HTTPS-only
|
|
@@ -130,7 +132,7 @@ class Client:
|
|
|
130
132
|
|
|
131
133
|
|
|
132
134
|
class _Domain(HealthcareFaces, CompanyFaces, EsgFaces, LegalFaces, ProcurementFaces,
|
|
133
|
-
ResearchFaces, SecurityFaces, EconomyFaces):
|
|
135
|
+
ResearchFaces, SecurityFaces, EconomyFaces, TransportationFaces):
|
|
134
136
|
"""Domain namespace object — the flat faces are mixed in from each domain's faces; the corpus-family
|
|
135
137
|
search/read stay on the base class (hosted, api.md section 8 living contract). In 0.3.0 the verb layer
|
|
136
138
|
(resolve/evidence/trials/label/related/fulltext), the csl_screening frozen alias and the grants domain
|
|
@@ -4,7 +4,7 @@ from . import (br_bacen, ca_osb, cf, ch_zefix, chi_bacp, co_rues, cz_ares, de_in
|
|
|
4
4
|
fr_recherche, fr_regafi, fts, gg_gfsc, gleif, in_sebi_intm, je_jfsc, jp_fsa,
|
|
5
5
|
kr_hometax, kz_gbd_ul, lacity, no_brreg, nzco, nyc_dcwp, ror,
|
|
6
6
|
ru_cbr_credit, sg_datagovsg, ted, tr_bddk, tr_spk_borsa, tx_tdlr,
|
|
7
|
-
|
|
7
|
+
usaspending, vies, wa_doh)
|
|
8
8
|
# 0.3.43 rider: jp_fsa was missing from this eager-import list (0.3.42) — the attribute only
|
|
9
9
|
# resolved in processes where a test had imported the submodule directly; a fresh interpreter
|
|
10
10
|
# hit AttributeError on company.jp_fsa. Fix-forward, disclosed in the 0.3.43 changelog entry.
|
|
@@ -16,6 +16,7 @@ from . import (br_bacen, ca_osb, cf, ch_zefix, chi_bacp, co_rues, cz_ares, de_in
|
|
|
16
16
|
# 0.3.49: chi_bacp/lacity/nyc_dcwp added in alphabetical slots (ch_zefix < chi_bacp < co_rues — '_'<'i';
|
|
17
17
|
# kz_gbd_ul < lacity < no_brreg; no_brreg < nyc_dcwp < nzco — 'o'<'y'<'z'). City faces take the host stem
|
|
18
18
|
# (data.cityofchicago.org/data.cityofnewyork.us/data.lacity.org); 'lacity' NOT 'la_' — 'LA' is ISO alpha-2 Laos.
|
|
19
|
-
# 0.3.51: us_fmcsa added in alphabetical slot (tx_tdlr < us_fmcsa < usaspending — '_'<'a')
|
|
19
|
+
# 0.3.51: us_fmcsa added in alphabetical slot (tx_tdlr < us_fmcsa < usaspending — '_'<'a');
|
|
20
|
+
# 0.3.54: us_fmcsa migrated to the transportation domain package (domain founding).
|
|
20
21
|
# 0.3.53: fr_regafi added in alphabetical slot (fr_recherche < fr_regafi < fts — 'rec'<'reg'<'t').
|
|
21
22
|
|
|
@@ -715,34 +715,6 @@ def register(v, g):
|
|
|
715
715
|
help="Row offset (upstream param: $offset; >=0 — Socrata deep-offset friendly)")
|
|
716
716
|
f_tx.add_argument("--order", default=None,
|
|
717
717
|
help="Sort column [ASC|DESC] (upstream param: $order; rejects NULLS — e.g. license_number DESC)")
|
|
718
|
-
# —— 0.3.51 US FMCSA carrier census (dictionary slot: us_fmcsa between tx_tdlr and usaspending — '_'<'a'; registration order == FLAT order) ——
|
|
719
|
-
f_fm = v.add_parser("us_fmcsa_carriers", parents=[g()],
|
|
720
|
-
help="US FMCSA carrier census (data.transportation.gov Socrata az4n-8mr2; keyless)",
|
|
721
|
-
description="The full-history US motor carrier universe — active AND "
|
|
722
|
-
"out-of-service, 4,528,322 rows live 2026-11-09 (the ~400k audit "
|
|
723
|
-
"figure was the active face). dot_number hard key (the "
|
|
724
|
-
"transport-compliance join key), status_code lifecycle (A active), "
|
|
725
|
-
"dun_bradstreet_no = the rare official DUNS cross-key (mind its "
|
|
726
|
-
"'0' sentinels), phy_*/carrier_mailing_* dual address blocks, "
|
|
727
|
-
"company_officer_1/2 verbatim (public-register precedent), fleet "
|
|
728
|
-
"trio truck/power/bus units + mcs150 mileage + hm_ind hazmat + "
|
|
729
|
-
"crgo_* cargo flags + classdef; email_address present on some "
|
|
730
|
-
"rows. Catalog advertises ~58 columns but Socrata omits null "
|
|
731
|
-
"fields per row — a populated row ships 53 keys; unrated carriers "
|
|
732
|
-
"simply lack safety_rating (rides in the view, appears only when "
|
|
733
|
-
"set). Walk-away: sibling 4a2k-zf79 is a 403 dead single-dataset "
|
|
734
|
-
"— az4n is the live set. SoQL verbatim channel — no total echo, "
|
|
735
|
-
"none faked. Deterministic forms: dot_number='963305' exact; "
|
|
736
|
-
"upper(legal_name) like '%SCHNEIDER%' (3 rows live)")
|
|
737
|
-
f_fm.add_argument("--where", default=None,
|
|
738
|
-
help="Raw SoQL filter (upstream param: $where; e.g. \"dot_number='963305'\" or \"upper(legal_name) like '%%SCHNEIDER%%'\")") # %% escaping: argparse help goes through % interpolation
|
|
739
|
-
f_fm.add_argument("--limit", type=int, default=20,
|
|
740
|
-
help="Rows to return (upstream param: $limit; 1-500 politeness cap, default 20)")
|
|
741
|
-
f_fm.add_argument("--offset", type=int, default=0,
|
|
742
|
-
help="Row offset (upstream param: $offset; >=0 — Socrata deep-offset friendly)")
|
|
743
|
-
f_fm.add_argument("--order", default=None,
|
|
744
|
-
help="Sort column [ASC|DESC] (upstream param: $order; rejects NULLS — e.g. dot_number DESC)")
|
|
745
|
-
|
|
746
718
|
f18 = v.add_parser("usaspending_spending_by_award", parents=[g()],
|
|
747
719
|
help="US federal awards by recipient (USAspending spending_by_award POST)",
|
|
748
720
|
description="Federal contracts/grants: recipient name (array upstream, scalar auto-wrapped); award-type codes, time window (single end auto-completed), fields all upstream-verbatim")
|
|
@@ -908,9 +880,6 @@ FLAT = {
|
|
|
908
880
|
# wa_doh between usaspending and vies_vat — US sub-national faces take the state code prefix, ny_open_data precedent)
|
|
909
881
|
"tx_tdlr_licenses": lambda a: {"where": a.where, "limit": a.limit, "offset": a.offset,
|
|
910
882
|
"order": a.order},
|
|
911
|
-
# 0.3.51 US FMCSA carrier census (dictionary slot: us_fmcsa between tx_tdlr and usaspending)
|
|
912
|
-
"us_fmcsa_carriers": lambda a: {"where": a.where, "limit": a.limit, "offset": a.offset,
|
|
913
|
-
"order": a.order},
|
|
914
883
|
"usaspending_spending_by_award": lambda a: {"recipient_search_text": a.recipient_search_text,
|
|
915
884
|
"award_type_codes": a.award_type_codes,
|
|
916
885
|
"start_date": a.start_date, "end_date": a.end_date,
|
|
@@ -981,8 +950,6 @@ COUNTRY = {
|
|
|
981
950
|
# 0.3.48 US state-license Socrata twin batch (US sub-national sources keep the US jurisdiction stamp;
|
|
982
951
|
# tx_tdlr slots before usaspending ('tr'<'tx'<'us'), wa_doh is the company tail ('vi'<'wa'))
|
|
983
952
|
"tx_tdlr_licenses": "US",
|
|
984
|
-
# 0.3.51 US FMCSA carrier census (slot: us_fmcsa between tx_tdlr and usaspending — 'us_'<'us')
|
|
985
|
-
"us_fmcsa_carriers": "US",
|
|
986
953
|
"usaspending_spending_by_award": "US",
|
|
987
954
|
"vies_vat": "EU",
|
|
988
955
|
"wa_doh_credentials": "US",
|
|
@@ -2399,51 +2399,3 @@ class CompanyFaces:
|
|
|
2399
2399
|
reason=reason, result=res, evidence=ev, provider_id="nyc_dcwp",
|
|
2400
2400
|
metas=[r["_meta"]],
|
|
2401
2401
|
query={"source": "raw", "upstream": r["params"]})
|
|
2402
|
-
|
|
2403
|
-
def us_fmcsa_carriers(self, where=None, *, limit=20, offset=0, order=None,
|
|
2404
|
-
execution=None, no_cache=None):
|
|
2405
|
-
"""company us_fmcsa_carriers: FMCSA Motor Carrier Management Information Company
|
|
2406
|
-
Census (data.transportation.gov Socrata az4n-8mr2; where → $where raw SoQL verbatim
|
|
2407
|
-
channel; limit/offset/order mirrored by name). The full-history US carrier universe —
|
|
2408
|
-
active AND out-of-service, 4,528,322 rows live 2026-11-09 (the ~400k audit figure was
|
|
2409
|
-
the active face). dot_number hard key (US transport-compliance universe join key),
|
|
2410
|
-
status_code lifecycle, dun_bradstreet_no = the rare official DUNS cross-key (mind its
|
|
2411
|
-
"0" sentinels), phy_*/carrier_mailing_* dual address blocks, company_officer_1/2
|
|
2412
|
-
verbatim, fleet trio + mcs150 mileage + hm_ind + crgo_* cargo flags. Catalog advertises
|
|
2413
|
-
~58 columns but Socrata omits null fields per row — a populated row ships 53 keys;
|
|
2414
|
-
unrated carriers simply lack safety_rating (rides in the view, appears only when set)."""
|
|
2415
|
-
self._co_only("us_fmcsa_carriers")
|
|
2416
|
-
r = company.us_fmcsa.carriers_raw(where, limit=limit, offset=offset, order=order,
|
|
2417
|
-
cache=self._c._cache,
|
|
2418
|
-
no_cache=no_cache if no_cache is not None else self._c.no_cache)
|
|
2419
|
-
res = {k: v for k, v in r.items() if k != "_meta"}
|
|
2420
|
-
rows = res["rows"]
|
|
2421
|
-
if rows:
|
|
2422
|
-
x0 = rows[0]
|
|
2423
|
-
reason = (f"FMCSA carrier census: {len(rows)} rows returned (from offset={offset}; Socrata echoes no total)"
|
|
2424
|
-
f" — dot_number key (sample #{x0.get('dot_number') or '—'},"
|
|
2425
|
-
f" {x0.get('legal_name') or '—'}"
|
|
2426
|
-
f" [{x0.get('status_code') or '—'}],"
|
|
2427
|
-
f" {x0.get('phy_city') or '—'}, {x0.get('phy_state') or '—'},"
|
|
2428
|
-
f" officers {x0.get('company_officer_1') or '—'}"
|
|
2429
|
-
+ (f" / {x0.get('company_officer_2')}" if x0.get("company_officer_2") else "")
|
|
2430
|
-
+ f"; {len(x0)} keys on this row — Socrata omits null fields per row)"
|
|
2431
|
-
f"; corpus 4,528,322 active+historical (live count 2026-11-09);"
|
|
2432
|
-
" dun_bradstreet_no = the rare official DUNS cross-key")
|
|
2433
|
-
else:
|
|
2434
|
-
reason = ("FMCSA carrier census: 0 rows — the where filter matched nothing or offset is past the end; both are "
|
|
2435
|
-
"legal answers (not errors); deterministic forms: dot_number='963305' exact, "
|
|
2436
|
-
"upper(legal_name) like '%SCHNEIDER%'")
|
|
2437
|
-
ev = [{"quote": f"DOT {x.get('dot_number') or '—'} — {x.get('legal_name') or '—'}"
|
|
2438
|
-
f" ({x.get('phy_city') or '—'}, {x.get('phy_state') or '—'};"
|
|
2439
|
-
f" status {x.get('status_code') or '—'},"
|
|
2440
|
-
f" carrier_operation {x.get('carrier_operation') or '—'},"
|
|
2441
|
-
f" {x.get('truck_units') or '—'} trucks/{x.get('power_units') or '—'} power/{x.get('bus_units') or '—'} bus"
|
|
2442
|
-
+ (f", DUNS {x.get('dun_bradstreet_no')}" if x.get("dun_bradstreet_no") not in (None, "0") else "") + ")",
|
|
2443
|
-
"url": "https://data.transportation.gov/resource/az4n-8mr2.json"}
|
|
2444
|
-
for x in rows[:3] if x.get("dot_number")]
|
|
2445
|
-
return self._flat_env(tool="us_fmcsa_carriers",
|
|
2446
|
-
input={"where": where, "limit": limit, "offset": offset, "order": order},
|
|
2447
|
-
reason=reason, result=res, evidence=ev, provider_id="us_fmcsa",
|
|
2448
|
-
metas=[r["_meta"]],
|
|
2449
|
-
query={"source": "raw", "upstream": r["params"]})
|
|
@@ -27,4 +27,5 @@ legal = _domain_entry("legal")
|
|
|
27
27
|
procurement = _domain_entry("procurement") # 0.3.0: the seventh domain
|
|
28
28
|
research = _domain_entry("research") # added in 0.2.4 (formerly named grants — the alias was removed in 0.3.0; research is the only entry)
|
|
29
29
|
security = _domain_entry("security") # added in 0.2.4 (born domain missed registration in 0.2.2)
|
|
30
|
+
transportation = _domain_entry("transportation") # 0.3.54: the ninth domain (founding migration + the CA TC CCAR pair)
|
|
30
31
|
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
One domain per package: provider adapters laid flat (one source per file) + faces/cli.
|
|
4
4
|
"""
|
|
5
|
-
from . import climatetrace, eiti, epa_frs,
|
|
5
|
+
from . import climatetrace, eiti, epa_frs, eutl, uk_fhrs # noqa: F401
|
|
6
6
|
# 0.3.53: uk_fhrs added in alphabetical slot (thetis_mrv < uk_fhrs — tail).
|
|
7
|
-
|
|
7
|
+
# 0.3.54: euasl/paris_mou/thetis_mrv migrated to the transportation domain package (domain founding).
|