agentdata 0.3.26__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.
Files changed (124) hide show
  1. agentdata-0.3.26/LICENSE +201 -0
  2. agentdata-0.3.26/PKG-INFO +266 -0
  3. agentdata-0.3.26/README.md +241 -0
  4. agentdata-0.3.26/agentdata/__init__.py +33 -0
  5. agentdata-0.3.26/agentdata/__main__.py +4 -0
  6. agentdata-0.3.26/agentdata/cache.py +115 -0
  7. agentdata-0.3.26/agentdata/cli.py +173 -0
  8. agentdata-0.3.26/agentdata/client.py +158 -0
  9. agentdata-0.3.26/agentdata/company/__init__.py +3 -0
  10. agentdata-0.3.26/agentdata/company/cf.py +145 -0
  11. agentdata-0.3.26/agentdata/company/ch_zefix.py +100 -0
  12. agentdata-0.3.26/agentdata/company/cli.py +243 -0
  13. agentdata-0.3.26/agentdata/company/co_rues.py +72 -0
  14. agentdata-0.3.26/agentdata/company/edgar_cik.py +84 -0
  15. agentdata-0.3.26/agentdata/company/edgar_fts.py +101 -0
  16. agentdata-0.3.26/agentdata/company/faces.py +746 -0
  17. agentdata-0.3.26/agentdata/company/fdic_bankfind.py +107 -0
  18. agentdata-0.3.26/agentdata/company/fi_ytj.py +89 -0
  19. agentdata-0.3.26/agentdata/company/fr_recherche.py +124 -0
  20. agentdata-0.3.26/agentdata/company/fts.py +121 -0
  21. agentdata-0.3.26/agentdata/company/gleif.py +178 -0
  22. agentdata-0.3.26/agentdata/company/kr_hometax.py +112 -0
  23. agentdata-0.3.26/agentdata/company/no_brreg.py +124 -0
  24. agentdata-0.3.26/agentdata/company/ror.py +105 -0
  25. agentdata-0.3.26/agentdata/company/ted.py +117 -0
  26. agentdata-0.3.26/agentdata/company/usaspending.py +124 -0
  27. agentdata-0.3.26/agentdata/company/vies.py +66 -0
  28. agentdata-0.3.26/agentdata/daterange.py +35 -0
  29. agentdata-0.3.26/agentdata/economy/__init__.py +10 -0
  30. agentdata-0.3.26/agentdata/economy/bis.py +132 -0
  31. agentdata-0.3.26/agentdata/economy/cli.py +199 -0
  32. agentdata-0.3.26/agentdata/economy/ecb.py +117 -0
  33. agentdata-0.3.26/agentdata/economy/eurostat.py +163 -0
  34. agentdata-0.3.26/agentdata/economy/faces.py +573 -0
  35. agentdata-0.3.26/agentdata/economy/fred.py +92 -0
  36. agentdata-0.3.26/agentdata/economy/ilo_stat.py +99 -0
  37. agentdata-0.3.26/agentdata/economy/imf_sdmx.py +133 -0
  38. agentdata-0.3.26/agentdata/economy/un_comtrade.py +199 -0
  39. agentdata-0.3.26/agentdata/economy/unsd_sdg.py +154 -0
  40. agentdata-0.3.26/agentdata/economy/wb.py +208 -0
  41. agentdata-0.3.26/agentdata/economy/who_xmart.py +177 -0
  42. agentdata-0.3.26/agentdata/entries.py +30 -0
  43. agentdata-0.3.26/agentdata/errors.py +38 -0
  44. agentdata-0.3.26/agentdata/esg/__init__.py +5 -0
  45. agentdata-0.3.26/agentdata/esg/cli.py +180 -0
  46. agentdata-0.3.26/agentdata/esg/climatetrace.py +260 -0
  47. agentdata-0.3.26/agentdata/esg/eiti.py +187 -0
  48. agentdata-0.3.26/agentdata/esg/epa_frs.py +138 -0
  49. agentdata-0.3.26/agentdata/esg/euasl.py +75 -0
  50. agentdata-0.3.26/agentdata/esg/eutl.py +66 -0
  51. agentdata-0.3.26/agentdata/esg/faces.py +498 -0
  52. agentdata-0.3.26/agentdata/esg/paris_mou.py +240 -0
  53. agentdata-0.3.26/agentdata/esg/thetis_mrv.py +67 -0
  54. agentdata-0.3.26/agentdata/healthcare/__init__.py +7 -0
  55. agentdata-0.3.26/agentdata/healthcare/au_tga.py +142 -0
  56. agentdata-0.3.26/agentdata/healthcare/ca_dpd.py +123 -0
  57. agentdata-0.3.26/agentdata/healthcare/ca_mdall.py +155 -0
  58. agentdata-0.3.26/agentdata/healthcare/cli.py +375 -0
  59. agentdata-0.3.26/agentdata/healthcare/ctgov.py +101 -0
  60. agentdata-0.3.26/agentdata/healthcare/dailymed.py +102 -0
  61. agentdata-0.3.26/agentdata/healthcare/epmc.py +108 -0
  62. agentdata-0.3.26/agentdata/healthcare/eudamed.py +124 -0
  63. agentdata-0.3.26/agentdata/healthcare/faces.py +811 -0
  64. agentdata-0.3.26/agentdata/healthcare/fda_crl.py +86 -0
  65. agentdata-0.3.26/agentdata/healthcare/fda_devices.py +199 -0
  66. agentdata-0.3.26/agentdata/healthcare/fda_drugs.py +156 -0
  67. agentdata-0.3.26/agentdata/healthcare/fda_recalls.py +137 -0
  68. agentdata-0.3.26/agentdata/healthcare/gb_mhra.py +137 -0
  69. agentdata-0.3.26/agentdata/healthcare/gudid.py +84 -0
  70. agentdata-0.3.26/agentdata/healthcare/mesh.py +89 -0
  71. agentdata-0.3.26/agentdata/healthcare/rasff.py +164 -0
  72. agentdata-0.3.26/agentdata/healthcare/rxnav.py +67 -0
  73. agentdata-0.3.26/agentdata/healthcare/safety_gate.py +175 -0
  74. agentdata-0.3.26/agentdata/healthcare/shortages.py +107 -0
  75. agentdata-0.3.26/agentdata/legal/__init__.py +4 -0
  76. agentdata-0.3.26/agentdata/legal/afdb.py +93 -0
  77. agentdata-0.3.26/agentdata/legal/ca_sema.py +143 -0
  78. agentdata-0.3.26/agentdata/legal/cli.py +312 -0
  79. agentdata-0.3.26/agentdata/legal/co_sic.py +70 -0
  80. agentdata-0.3.26/agentdata/legal/courtlistener.py +77 -0
  81. agentdata-0.3.26/agentdata/legal/csl.py +139 -0
  82. agentdata-0.3.26/agentdata/legal/dgcomp.py +125 -0
  83. agentdata-0.3.26/agentdata/legal/ecfr.py +129 -0
  84. agentdata-0.3.26/agentdata/legal/faces.py +700 -0
  85. agentdata-0.3.26/agentdata/legal/federalregister.py +188 -0
  86. agentdata-0.3.26/agentdata/legal/gb_cma.py +117 -0
  87. agentdata-0.3.26/agentdata/legal/gb_tna_caselaw.py +245 -0
  88. agentdata-0.3.26/agentdata/legal/idb.py +85 -0
  89. agentdata-0.3.26/agentdata/legal/lda.py +147 -0
  90. agentdata-0.3.26/agentdata/legal/sipri.py +178 -0
  91. agentdata-0.3.26/agentdata/legal/ukec.py +148 -0
  92. agentdata-0.3.26/agentdata/legal/wb.py +92 -0
  93. agentdata-0.3.26/agentdata/procurement/__init__.py +5 -0
  94. agentdata-0.3.26/agentdata/procurement/br_pncp.py +126 -0
  95. agentdata-0.3.26/agentdata/procurement/cli.py +155 -0
  96. agentdata-0.3.26/agentdata/procurement/co_secop.py +88 -0
  97. agentdata-0.3.26/agentdata/procurement/faces.py +239 -0
  98. agentdata-0.3.26/agentdata/procurement/ny_open_data.py +82 -0
  99. agentdata-0.3.26/agentdata/procurement/ungm.py +137 -0
  100. agentdata-0.3.26/agentdata/procurement/wb_proc.py +84 -0
  101. agentdata-0.3.26/agentdata/research/__init__.py +4 -0
  102. agentdata-0.3.26/agentdata/research/biorxiv.py +66 -0
  103. agentdata-0.3.26/agentdata/research/cli.py +129 -0
  104. agentdata-0.3.26/agentdata/research/crossref.py +121 -0
  105. agentdata-0.3.26/agentdata/research/faces.py +349 -0
  106. agentdata-0.3.26/agentdata/research/gb_gtr.py +58 -0
  107. agentdata-0.3.26/agentdata/research/icite.py +52 -0
  108. agentdata-0.3.26/agentdata/research/nih_reporter.py +143 -0
  109. agentdata-0.3.26/agentdata/research/nsf.py +68 -0
  110. agentdata-0.3.26/agentdata/research/openalex.py +145 -0
  111. agentdata-0.3.26/agentdata/research/opencitations.py +50 -0
  112. agentdata-0.3.26/agentdata/security/__init__.py +3 -0
  113. agentdata-0.3.26/agentdata/security/cisa_kev.py +42 -0
  114. agentdata-0.3.26/agentdata/security/cli.py +37 -0
  115. agentdata-0.3.26/agentdata/security/faces.py +91 -0
  116. agentdata-0.3.26/agentdata/security/osv.py +72 -0
  117. agentdata-0.3.26/agentdata/transport.py +541 -0
  118. agentdata-0.3.26/agentdata.egg-info/PKG-INFO +266 -0
  119. agentdata-0.3.26/agentdata.egg-info/SOURCES.txt +122 -0
  120. agentdata-0.3.26/agentdata.egg-info/dependency_links.txt +1 -0
  121. agentdata-0.3.26/agentdata.egg-info/entry_points.txt +10 -0
  122. agentdata-0.3.26/agentdata.egg-info/top_level.txt +1 -0
  123. agentdata-0.3.26/pyproject.toml +51 -0
  124. agentdata-0.3.26/setup.cfg +4 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 dicaria
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,266 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentdata
3
+ Version: 0.3.26
4
+ Summary: AgentData domain API SDK — corpus (hosted) + third-party enrichment (local, keyless); stdlib-only
5
+ Author-email: dicaria <contact@dicaria.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/dicaria/agentdata
8
+ Project-URL: Source, https://github.com/dicaria/agentdata
9
+ Project-URL: Issues, https://github.com/dicaria/agentdata/issues
10
+ Project-URL: Changelog, https://github.com/dicaria/agentdata/releases
11
+ Keywords: company-intelligence,open-data,sanctions,procurement,enrichment,government-data
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Dynamic: license-file
25
+
26
+ # agentdata
27
+
28
+ [![PyPI](https://img.shields.io/pypi/v/agentdata)](https://pypi.org/project/agentdata/)
29
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/dicaria/agentdata/blob/main/LICENSE)
30
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org)
31
+ [![Commands](https://img.shields.io/badge/117_commands-8_domains-teal)](https://github.com/dicaria/agentdata/blob/main/docs/domains/api.md)
32
+
33
+ Government registries, sanctions lists, procurement portals, and health-agency
34
+ databases hold the decisive facts about companies — scattered across 60+ public
35
+ APIs, each with its own pagination, rate limits, and undocumented quirks.
36
+
37
+ **agentdata puts 117 of those datasets behind one interface**: a
38
+ pure-standard-library Python client and CLI across 13 jurisdictions. No API
39
+ keys, no accounts — politeness and caching are built in, and every upstream
40
+ gotcha we hit live is already pinned.
41
+
42
+ ## Two API families
43
+
44
+ | Family | Where it runs | Credentials | Cost |
45
+ |---|---|---|---|
46
+ | **Enrichment** | Locally — the SDK calls public government / open-data APIs from your machine | none | free |
47
+ | **Corpus** | Hosted service operated by dicaria | credentials issued by dicaria | per service agreement |
48
+
49
+ Most commands are enrichment: they need no configuration, no keys, no account.
50
+ Corpus commands are marked in the docs and require credentials issued by
51
+ dicaria under a separate service agreement — contact **contact@dicaria.com**.
52
+
53
+ ## What can you ask it?
54
+
55
+ Commands follow `<domain> <source>_<dataset>` — one command per upstream
56
+ dataset, parameters kept under their upstream names. Every row below works as
57
+ `agentdata <domain> <command> …` from the shell, or
58
+ `c.<domain>.<command>(…)` from Python.
59
+
60
+ | Question | Commands |
61
+ |---|---|
62
+ | Is this company sanctioned? | `legal csl_screening_list` · `legal co_sic_sanctions` · `legal wb_debarred_firms` · `legal ca_sema_sanctions` |
63
+ | Who owns or controls it? | `company gleif_direct_parent` · `company no_brreg_roller` · `company fr_recherche_search` |
64
+ | Did it win public contracts? | `procurement br_pncp_contracts` · `procurement ungm_contract_awards` · `procurement wb_procnotices` |
65
+ | Is its drug or device approved — or recalled? | `healthcare fda_drug_approvals` · `healthcare gb_mhra_alerts` · `healthcare fda_drug_recalls` |
66
+ | 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` |
68
+ | How big is the country it operates in? | `economy wb_wdi_values` · `economy eurostat_table` · `economy fred_series` |
69
+ | Convert an EUR amount, or read a bilateral trade flow | `economy ecb_fx_rates` · `economy un_comtrade_trade` |
70
+
71
+ ## Why not just call the APIs yourself?
72
+
73
+ You can — and then you get to rediscover what is already pinned here:
74
+
75
+ - **Quirks are pre-solved, not rediscovered.** Every command encodes traps we
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.
89
+
90
+ ## Coverage
91
+
92
+ **117 datasets · 80 upstream providers · 13 jurisdictions:** global 39 · US 37 · EU 12 · UK 11 · Canada 5 · Colombia 3 · Australia 2 · Switzerland 2 · Norway 2 · Brazil 1 · Finland 1 · France 1 · Korea 1.
93
+
94
+ | Domain | Commands | Sources |
95
+ |---|---|---|
96
+ | `healthcare` | 31 | 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 |
97
+ | `company` | 21 | 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 |
98
+ | `esg` | 12 | Climate TRACE, EITI, EU ETS (EUTL), THETIS-MRV (EU shipping), EPA FRS, Paris MoU, EU Air Safety List |
99
+ | `legal` | 19 | US consolidated screening list, eCFR, Federal Register, LDA filings, CourtListener, DG COMP, UK CMA cases, UK Electoral Commission, TNA case law, SIPRI, SIC sanctions (CO), MDB debarment rosters (WB/AfDB/IDB), Canada SEMA |
100
+ | `research` | 10 | OpenAlex, NIH RePORTER, NSF, Crossref, UKRI GtR, iCite, bioRxiv, OpenCitations |
101
+ | `procurement` | 7 | PNCP (BR), SECOP II (CO), UNGM, World Bank, New York Authorities / MTA / OGS (US) |
102
+ | `security` | 2 | OSV, CISA KEV |
103
+ | `economy` | 15 | World Bank WDI, Eurostat, ECB reference rates, FRED, WHO xMart, UN Comtrade, ILOSTAT |
104
+
105
+ ## Show me a response
106
+
107
+ Real output of `agentdata healthcare rxnav_rxcui_by_name --name atorvastatin` —
108
+ every command returns this shape:
109
+
110
+ ```json
111
+ {
112
+ "ok": true,
113
+ "domain": "healthcare",
114
+ "tool": "rxnav_rxcui_by_name",
115
+ "input": {
116
+ "name": "atorvastatin"
117
+ },
118
+ "from_cache": false,
119
+ "reason": "RxNav normalization: drug name 'atorvastatin' → RxCUI 83367 (ingredient level)",
120
+ "result": {
121
+ "rxcui": "83367",
122
+ "normalized_name": "atorvastatin",
123
+ "synonym": null,
124
+ "tty": "IN",
125
+ "suppress": "N"
126
+ },
127
+ "evidence": [
128
+ {
129
+ "quote": "RxCUI 83367 = atorvastatin",
130
+ "url": "https://rxnav.nlm.nih.gov/REST/rxcui/83367/properties.json"
131
+ }
132
+ ],
133
+ "source": {
134
+ "provider": "rxnav",
135
+ "execution": "local",
136
+ "from_cache": false,
137
+ "observed_at": "2026-11-02T03:28:22.213Z"
138
+ },
139
+ "request_id": "3f343e2f-3b08-46e8-ac69-8ee05adce548",
140
+ "query": {
141
+ "source": "raw",
142
+ "upstream": {
143
+ "name": "atorvastatin"
144
+ }
145
+ },
146
+ "jurisdiction": "US"
147
+ }
148
+ ```
149
+
150
+ ## Install
151
+
152
+ From PyPI:
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):
175
+
176
+ ```bash
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:
200
+
201
+ ```python
202
+ c2 = Client(base_url="https://…", api_key="mk_live_…") # PAT issued by dicaria
203
+ c2.company.read(id=1476, level="tier2")
204
+ ```
205
+
206
+ ## Quick start (CLI)
207
+
208
+ Nine entry points — `agentdata` plus one command per domain:
209
+
210
+ ```bash
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
+ ```
218
+
219
+ If a domain entry-point command (`company`, `legal`, …) collides with another tool
220
+ on your machine, `python -m agentdata <domain> …` is the equivalent invocation.
221
+
222
+ ## Caching
223
+
224
+ Every response is cached in a per-user SQLite cache shared across virtual
225
+ environments and processes — cache hits cost no rate budget (see
226
+ [docs/domains/rate-limits.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md)). A fresh install
227
+ in a new virtual environment will therefore hit entries written by earlier
228
+ runs on the same machine; that is by design.
229
+
230
+ | | |
231
+ |---|---|
232
+ | Default location | `%LOCALAPPDATA%\agentdata\cache.db` on Windows; `~/.cache/agentdata/cache.db` on macOS/Linux |
233
+ | Override | `AGENTDATA_CACHE_DIR` environment variable (CLI: `--cache-dir`) |
234
+ | Bypass | `--no-cache` (CLI) / `no_cache=True` (Python) |
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.
239
+
240
+ ## Documentation
241
+
242
+ - [docs/domains/api.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/api.md) — the API contract of the release
243
+ you installed: the two families, request/response envelope, parameter
244
+ conventions
245
+ - [docs/domains/rate-limits.md](https://github.com/dicaria/agentdata/blob/main/docs/domains/rate-limits.md) — per-source
246
+ rate-limit facts this release enforces
247
+ - [docs/publishing.md](https://github.com/dicaria/agentdata/blob/main/docs/publishing.md) — maintainer setup, package checks, and PyPI releases
248
+ - Hosted-corpus per-domain guides: contact **contact@dicaria.com**
249
+
250
+ ## License and terms
251
+
252
+ - The **code** in this repository is licensed under the license in
253
+ [LICENSE](https://github.com/dicaria/agentdata/blob/main/LICENSE).
254
+ - The **data** returned by the SDK is governed by the terms of each upstream
255
+ source; the SDK grants no data rights. See [TERMS.md](https://github.com/dicaria/agentdata/blob/main/TERMS.md).
256
+
257
+ ## Contact
258
+
259
+ - Questions, bug reports, and data-coverage requests:
260
+ [GitHub issues](https://github.com/dicaria/agentdata/issues) or
261
+ **contact@dicaria.com** (see [CONTRIBUTING.md](https://github.com/dicaria/agentdata/blob/main/CONTRIBUTING.md))
262
+ - Hosted-corpus credentials and service inquiries: **contact@dicaria.com**
263
+ - Security reports: **contact@dicaria.com** — please don't open a public
264
+ issue; see [SECURITY.md](https://github.com/dicaria/agentdata/blob/main/SECURITY.md)
265
+ - Conduct issues: **contact@dicaria.com** (see
266
+ [CODE_OF_CONDUCT.md](https://github.com/dicaria/agentdata/blob/main/CODE_OF_CONDUCT.md))