fmp-data 2.0.0__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 (184) hide show
  1. fmp_data-2.0.0/.gitignore +82 -0
  2. fmp_data-2.0.0/LICENSE +21 -0
  3. fmp_data-2.0.0/NOTICE +37 -0
  4. fmp_data-2.0.0/PKG-INFO +1002 -0
  5. fmp_data-2.0.0/README.md +935 -0
  6. fmp_data-2.0.0/fmp_data/__init__.py +164 -0
  7. fmp_data-2.0.0/fmp_data/alternative/__init__.py +36 -0
  8. fmp_data-2.0.0/fmp_data/alternative/async_client.py +166 -0
  9. fmp_data-2.0.0/fmp_data/alternative/client.py +158 -0
  10. fmp_data-2.0.0/fmp_data/alternative/endpoints.py +533 -0
  11. fmp_data-2.0.0/fmp_data/alternative/mapping.py +736 -0
  12. fmp_data-2.0.0/fmp_data/alternative/models.py +351 -0
  13. fmp_data-2.0.0/fmp_data/alternative/schema.py +165 -0
  14. fmp_data-2.0.0/fmp_data/async_client.py +348 -0
  15. fmp_data-2.0.0/fmp_data/base.py +816 -0
  16. fmp_data-2.0.0/fmp_data/batch/__init__.py +26 -0
  17. fmp_data-2.0.0/fmp_data/batch/async_client.py +456 -0
  18. fmp_data-2.0.0/fmp_data/batch/client.py +436 -0
  19. fmp_data-2.0.0/fmp_data/batch/endpoints.py +669 -0
  20. fmp_data-2.0.0/fmp_data/batch/models.py +157 -0
  21. fmp_data-2.0.0/fmp_data/client.py +411 -0
  22. fmp_data-2.0.0/fmp_data/company/__init__.py +48 -0
  23. fmp_data-2.0.0/fmp_data/company/async_client.py +871 -0
  24. fmp_data-2.0.0/fmp_data/company/client.py +821 -0
  25. fmp_data-2.0.0/fmp_data/company/endpoints.py +1958 -0
  26. fmp_data-2.0.0/fmp_data/company/hints.py +77 -0
  27. fmp_data-2.0.0/fmp_data/company/mapping.py +1507 -0
  28. fmp_data-2.0.0/fmp_data/company/models.py +813 -0
  29. fmp_data-2.0.0/fmp_data/company/schema.py +132 -0
  30. fmp_data-2.0.0/fmp_data/config.py +293 -0
  31. fmp_data-2.0.0/fmp_data/economics/__init__.py +24 -0
  32. fmp_data-2.0.0/fmp_data/economics/async_client.py +90 -0
  33. fmp_data-2.0.0/fmp_data/economics/client.py +84 -0
  34. fmp_data-2.0.0/fmp_data/economics/endpoints.py +271 -0
  35. fmp_data-2.0.0/fmp_data/economics/mapping.py +791 -0
  36. fmp_data-2.0.0/fmp_data/economics/models.py +159 -0
  37. fmp_data-2.0.0/fmp_data/economics/schema.py +116 -0
  38. fmp_data-2.0.0/fmp_data/exceptions.py +55 -0
  39. fmp_data-2.0.0/fmp_data/fundamental/__init__.py +46 -0
  40. fmp_data-2.0.0/fmp_data/fundamental/async_client.py +128 -0
  41. fmp_data-2.0.0/fmp_data/fundamental/client.py +112 -0
  42. fmp_data-2.0.0/fmp_data/fundamental/endpoints.py +538 -0
  43. fmp_data-2.0.0/fmp_data/fundamental/mapping.py +1127 -0
  44. fmp_data-2.0.0/fmp_data/fundamental/models.py +1366 -0
  45. fmp_data-2.0.0/fmp_data/fundamental/schema.py +59 -0
  46. fmp_data-2.0.0/fmp_data/helpers.py +80 -0
  47. fmp_data-2.0.0/fmp_data/index/__init__.py +14 -0
  48. fmp_data-2.0.0/fmp_data/index/async_client.py +68 -0
  49. fmp_data-2.0.0/fmp_data/index/client.py +66 -0
  50. fmp_data-2.0.0/fmp_data/index/endpoints.py +110 -0
  51. fmp_data-2.0.0/fmp_data/index/models.py +52 -0
  52. fmp_data-2.0.0/fmp_data/institutional/__init__.py +28 -0
  53. fmp_data-2.0.0/fmp_data/institutional/async_client.py +346 -0
  54. fmp_data-2.0.0/fmp_data/institutional/client.py +332 -0
  55. fmp_data-2.0.0/fmp_data/institutional/endpoints.py +783 -0
  56. fmp_data-2.0.0/fmp_data/institutional/mapping.py +706 -0
  57. fmp_data-2.0.0/fmp_data/institutional/models.py +967 -0
  58. fmp_data-2.0.0/fmp_data/institutional/schema.py +99 -0
  59. fmp_data-2.0.0/fmp_data/intelligence/__init__.py +62 -0
  60. fmp_data-2.0.0/fmp_data/intelligence/async_client.py +554 -0
  61. fmp_data-2.0.0/fmp_data/intelligence/client.py +536 -0
  62. fmp_data-2.0.0/fmp_data/intelligence/endpoints.py +1310 -0
  63. fmp_data-2.0.0/fmp_data/intelligence/mapping.py +1913 -0
  64. fmp_data-2.0.0/fmp_data/intelligence/models.py +1104 -0
  65. fmp_data-2.0.0/fmp_data/intelligence/schema.py +57 -0
  66. fmp_data-2.0.0/fmp_data/investment/__init__.py +32 -0
  67. fmp_data-2.0.0/fmp_data/investment/async_client.py +167 -0
  68. fmp_data-2.0.0/fmp_data/investment/client.py +157 -0
  69. fmp_data-2.0.0/fmp_data/investment/endpoints.py +322 -0
  70. fmp_data-2.0.0/fmp_data/investment/mapping.py +806 -0
  71. fmp_data-2.0.0/fmp_data/investment/models.py +334 -0
  72. fmp_data-2.0.0/fmp_data/investment/schema.py +106 -0
  73. fmp_data-2.0.0/fmp_data/lc/__init__.py +257 -0
  74. fmp_data-2.0.0/fmp_data/lc/config.py +88 -0
  75. fmp_data-2.0.0/fmp_data/lc/embedding.py +140 -0
  76. fmp_data-2.0.0/fmp_data/lc/hints.py +66 -0
  77. fmp_data-2.0.0/fmp_data/lc/mapping.py +107 -0
  78. fmp_data-2.0.0/fmp_data/lc/models.py +98 -0
  79. fmp_data-2.0.0/fmp_data/lc/registry.py +698 -0
  80. fmp_data-2.0.0/fmp_data/lc/utils.py +38 -0
  81. fmp_data-2.0.0/fmp_data/lc/validation.py +267 -0
  82. fmp_data-2.0.0/fmp_data/lc/vector_store.py +664 -0
  83. fmp_data-2.0.0/fmp_data/logger.py +473 -0
  84. fmp_data-2.0.0/fmp_data/market/__init__.py +28 -0
  85. fmp_data-2.0.0/fmp_data/market/async_client.py +438 -0
  86. fmp_data-2.0.0/fmp_data/market/client.py +430 -0
  87. fmp_data-2.0.0/fmp_data/market/endpoints.py +1070 -0
  88. fmp_data-2.0.0/fmp_data/market/hints.py +22 -0
  89. fmp_data-2.0.0/fmp_data/market/mapping.py +1191 -0
  90. fmp_data-2.0.0/fmp_data/market/models.py +512 -0
  91. fmp_data-2.0.0/fmp_data/market/schema.py +186 -0
  92. fmp_data-2.0.0/fmp_data/mcp/__init__.py +0 -0
  93. fmp_data-2.0.0/fmp_data/mcp/__main__.py +65 -0
  94. fmp_data-2.0.0/fmp_data/mcp/cli.py +486 -0
  95. fmp_data-2.0.0/fmp_data/mcp/discovery.py +314 -0
  96. fmp_data-2.0.0/fmp_data/mcp/server.py +70 -0
  97. fmp_data-2.0.0/fmp_data/mcp/setup.py +554 -0
  98. fmp_data-2.0.0/fmp_data/mcp/tool_loader.py +148 -0
  99. fmp_data-2.0.0/fmp_data/mcp/tools_manifest.py +205 -0
  100. fmp_data-2.0.0/fmp_data/mcp/utils.py +433 -0
  101. fmp_data-2.0.0/fmp_data/models.py +334 -0
  102. fmp_data-2.0.0/fmp_data/py.typed +0 -0
  103. fmp_data-2.0.0/fmp_data/rate_limit.py +266 -0
  104. fmp_data-2.0.0/fmp_data/schema.py +165 -0
  105. fmp_data-2.0.0/fmp_data/sec/__init__.py +24 -0
  106. fmp_data-2.0.0/fmp_data/sec/async_client.py +306 -0
  107. fmp_data-2.0.0/fmp_data/sec/client.py +300 -0
  108. fmp_data-2.0.0/fmp_data/sec/endpoints.py +492 -0
  109. fmp_data-2.0.0/fmp_data/sec/models.py +209 -0
  110. fmp_data-2.0.0/fmp_data/technical/__init__.py +30 -0
  111. fmp_data-2.0.0/fmp_data/technical/async_client.py +216 -0
  112. fmp_data-2.0.0/fmp_data/technical/client.py +214 -0
  113. fmp_data-2.0.0/fmp_data/technical/endpoints.py +566 -0
  114. fmp_data-2.0.0/fmp_data/technical/mapping.py +448 -0
  115. fmp_data-2.0.0/fmp_data/technical/models.py +87 -0
  116. fmp_data-2.0.0/fmp_data/technical/schema.py +261 -0
  117. fmp_data-2.0.0/fmp_data/transcripts/__init__.py +16 -0
  118. fmp_data-2.0.0/fmp_data/transcripts/async_client.py +84 -0
  119. fmp_data-2.0.0/fmp_data/transcripts/client.py +78 -0
  120. fmp_data-2.0.0/fmp_data/transcripts/endpoints.py +139 -0
  121. fmp_data-2.0.0/fmp_data/transcripts/models.py +64 -0
  122. fmp_data-2.0.0/pyproject.toml +424 -0
  123. fmp_data-2.0.0/tests/__init__.py +0 -0
  124. fmp_data-2.0.0/tests/integration/__init__.py +0 -0
  125. fmp_data-2.0.0/tests/integration/base.py +68 -0
  126. fmp_data-2.0.0/tests/integration/conftest.py +203 -0
  127. fmp_data-2.0.0/tests/integration/test_alternative.py +223 -0
  128. fmp_data-2.0.0/tests/integration/test_batch.py +127 -0
  129. fmp_data-2.0.0/tests/integration/test_company.py +726 -0
  130. fmp_data-2.0.0/tests/integration/test_economics.py +205 -0
  131. fmp_data-2.0.0/tests/integration/test_fundamental.py +305 -0
  132. fmp_data-2.0.0/tests/integration/test_index.py +62 -0
  133. fmp_data-2.0.0/tests/integration/test_institutional.py +550 -0
  134. fmp_data-2.0.0/tests/integration/test_intelligence.py +803 -0
  135. fmp_data-2.0.0/tests/integration/test_investment.py +278 -0
  136. fmp_data-2.0.0/tests/integration/test_lc.py +166 -0
  137. fmp_data-2.0.0/tests/integration/test_market.py +546 -0
  138. fmp_data-2.0.0/tests/integration/test_sec.py +144 -0
  139. fmp_data-2.0.0/tests/integration/test_technical.py +153 -0
  140. fmp_data-2.0.0/tests/integration/test_transcripts.py +46 -0
  141. fmp_data-2.0.0/tests/unit/__init__.py +0 -0
  142. fmp_data-2.0.0/tests/unit/conftest.py +212 -0
  143. fmp_data-2.0.0/tests/unit/lc/__init__.py +0 -0
  144. fmp_data-2.0.0/tests/unit/lc/conftest.py +6 -0
  145. fmp_data-2.0.0/tests/unit/lc/test_config.py +65 -0
  146. fmp_data-2.0.0/tests/unit/lc/test_embedding.py +99 -0
  147. fmp_data-2.0.0/tests/unit/lc/test_endpoint_based_rules.py +170 -0
  148. fmp_data-2.0.0/tests/unit/lc/test_imports.py +17 -0
  149. fmp_data-2.0.0/tests/unit/lc/test_mapping.py +99 -0
  150. fmp_data-2.0.0/tests/unit/lc/test_models.py +88 -0
  151. fmp_data-2.0.0/tests/unit/lc/test_utils.py +55 -0
  152. fmp_data-2.0.0/tests/unit/lc/test_validation_registry.py +139 -0
  153. fmp_data-2.0.0/tests/unit/lc/test_vector_store.py +208 -0
  154. fmp_data-2.0.0/tests/unit/test_alternative.py +161 -0
  155. fmp_data-2.0.0/tests/unit/test_alternative_coverage.py +169 -0
  156. fmp_data-2.0.0/tests/unit/test_async_clients.py +2625 -0
  157. fmp_data-2.0.0/tests/unit/test_base.py +667 -0
  158. fmp_data-2.0.0/tests/unit/test_base_async.py +278 -0
  159. fmp_data-2.0.0/tests/unit/test_base_coverage.py +131 -0
  160. fmp_data-2.0.0/tests/unit/test_batch.py +574 -0
  161. fmp_data-2.0.0/tests/unit/test_client.py +777 -0
  162. fmp_data-2.0.0/tests/unit/test_company.py +972 -0
  163. fmp_data-2.0.0/tests/unit/test_company_coverage.py +430 -0
  164. fmp_data-2.0.0/tests/unit/test_config.py +637 -0
  165. fmp_data-2.0.0/tests/unit/test_economics.py +368 -0
  166. fmp_data-2.0.0/tests/unit/test_exceptions.py +210 -0
  167. fmp_data-2.0.0/tests/unit/test_fundamental.py +402 -0
  168. fmp_data-2.0.0/tests/unit/test_helpers.py +117 -0
  169. fmp_data-2.0.0/tests/unit/test_index.py +192 -0
  170. fmp_data-2.0.0/tests/unit/test_institutional.py +616 -0
  171. fmp_data-2.0.0/tests/unit/test_intelligence.py +1412 -0
  172. fmp_data-2.0.0/tests/unit/test_investment.py +307 -0
  173. fmp_data-2.0.0/tests/unit/test_logger.py +849 -0
  174. fmp_data-2.0.0/tests/unit/test_market.py +744 -0
  175. fmp_data-2.0.0/tests/unit/test_mcp.py +432 -0
  176. fmp_data-2.0.0/tests/unit/test_mcp_cli.py +489 -0
  177. fmp_data-2.0.0/tests/unit/test_models.py +206 -0
  178. fmp_data-2.0.0/tests/unit/test_rate_limit.py +732 -0
  179. fmp_data-2.0.0/tests/unit/test_rate_limit_async.py +157 -0
  180. fmp_data-2.0.0/tests/unit/test_rate_limit_coverage.py +201 -0
  181. fmp_data-2.0.0/tests/unit/test_sec.py +335 -0
  182. fmp_data-2.0.0/tests/unit/test_technical.py +152 -0
  183. fmp_data-2.0.0/tests/unit/test_technical_coverage.py +230 -0
  184. fmp_data-2.0.0/tests/unit/test_transcripts.py +154 -0
@@ -0,0 +1,82 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ share/python-wheels/
20
+ *.egg-info/
21
+ .installed.cfg
22
+ *.egg
23
+
24
+ # Virtual Environment
25
+ .venv
26
+ env/
27
+ venv/
28
+ ENV/
29
+
30
+ # UV lock file (can be regenerated quickly)
31
+ uv.lock
32
+
33
+ # IDE
34
+ .idea/
35
+ .vscode/
36
+ *.swp
37
+ *.swo
38
+
39
+ # Testing
40
+ .coverage
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+ .mypy_cache/
54
+ .ruff_cache/
55
+ tests/integration/vcr_cassettes/**/*.yaml
56
+
57
+ # Build
58
+ *.manifest
59
+ *.spec
60
+ pip-log.txt
61
+ pip-delete-this-directory.txt
62
+ site/
63
+
64
+ # Documentation build
65
+ site/
66
+
67
+ # Security reports
68
+ reports/
69
+
70
+ # Test fixtures (can be regenerated)
71
+ tests/integration/vcr_cassettes/
72
+
73
+ # Misc
74
+ .DS_Store
75
+
76
+ # Environment files (keep .env.example)
77
+ .env
78
+ .env.*
79
+ !.env.example
80
+
81
+ # Firecrawl example outputs
82
+ examples/firecrawl_app/outputs/
fmp_data-2.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Mehdi Zare
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
fmp_data-2.0.0/NOTICE ADDED
@@ -0,0 +1,37 @@
1
+ FMP Data Client
2
+ Copyright (c) 2024-2026 Mehdi Zare
3
+
4
+ This software includes the following third-party packages:
5
+
6
+ - httpx (BSD-3-Clause License)
7
+ Copyright (c) 2019, Tom Christie
8
+ https://github.com/encode/httpx
9
+
10
+ - pydantic (MIT License)
11
+ Copyright (c) 2017-present Samuel Colvin and other contributors
12
+ https://github.com/pydantic/pydantic
13
+
14
+ - tenacity (Apache License 2.0)
15
+ Copyright (c) 2016 Julien Danjou and contributors
16
+ Licensed under the Apache License, Version 2.0
17
+ https://github.com/jd/tenacity
18
+
19
+ Licensed under the Apache License, Version 2.0 (the "License");
20
+ you may not use this file except in compliance with the License.
21
+ You may obtain a copy of the License at
22
+
23
+ http://www.apache.org/licenses/LICENSE-2.0
24
+
25
+ Unless required by applicable law or agreed to in writing, software
26
+ distributed under the License is distributed on an "AS IS" BASIS,
27
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28
+ See the License for the specific language governing permissions and
29
+ limitations under the License.
30
+
31
+ For more detailed license information and full license texts:
32
+ - httpx: https://github.com/encode/httpx/blob/master/LICENSE.md
33
+ - pydantic: https://github.com/pydantic/pydantic/blob/main/LICENSE
34
+ - tenacity: http://www.apache.org/licenses/LICENSE-2.0
35
+
36
+ Third-party dependencies may have their own licenses and terms. Please refer to
37
+ each package's documentation for complete licensing information.