fmp-data 2.3.0__tar.gz → 2.4.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.
- {fmp_data-2.3.0 → fmp_data-2.4.0}/PKG-INFO +24 -24
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/base.py +113 -15
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/models.py +26 -1
- {fmp_data-2.3.0 → fmp_data-2.4.0}/pyproject.toml +48 -46
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_base.py +402 -1
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_batch.py +47 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_company.py +50 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/.gitignore +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/LICENSE +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/NOTICE +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/README.md +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/alternative/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/_csv_utils.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/batch/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/cache/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/cache/base.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/cache/config.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/cache/file.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/cache/memory.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/cache/redis_backend.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/hints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/company/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/config.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/economics/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/exceptions.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/fundamental/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/helpers.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/index/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/index/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/index/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/index/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/index/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/index/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/institutional/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/intelligence/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/investment/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/config.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/embedding.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/hints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/registry.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/utils.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/validation.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/lc/vector_store.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/logger.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/hints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/market/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/__main__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/cli.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/discovery.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/server.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/setup.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/tool_loader.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/tools_manifest.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/mcp/utils.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/py.typed +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/rate_limit.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/sec/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/sec/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/sec/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/sec/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/sec/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/sec/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/technical/schema.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/transcripts/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/transcripts/async_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/transcripts/client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/transcripts/endpoints.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/transcripts/mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/fmp_data/transcripts/models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/examples/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/examples/test_examples_smoke.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/base.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/conftest.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_alternative.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_batch.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_company.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_economics.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_fundamental.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_index.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_institutional.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_intelligence.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_investment.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_lc.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_market.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_sec.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_technical.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/integration/test_transcripts.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/conftest.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/__init__.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/conftest.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_config.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_embedding.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_endpoint_based_rules.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_imports.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_mapping.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_utils.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_validation_registry.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/lc/test_vector_store.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_alternative.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_alternative_coverage.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_async_clients.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_base_async.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_base_coverage.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_cache_backends.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_cache_integration.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_cassette_contracts.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_client.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_company_coverage.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_config.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_economics.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_exceptions.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_fundamental.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_helpers.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_index.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_institutional.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_intelligence.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_investment.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_logger.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_market.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_mcp.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_mcp_cli.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_models.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_rate_limit.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_rate_limit_async.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_rate_limit_coverage.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_sec.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_technical.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_technical_coverage.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_transcripts.py +0 -0
- {fmp_data-2.3.0 → fmp_data-2.4.0}/tests/unit/test_vcr_sanitization.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fmp-data
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Python client for the Financial Modeling Prep API
|
|
5
5
|
Project-URL: Homepage, https://github.com/MehdiZare/fmp-data
|
|
6
6
|
Project-URL: Repository, https://github.com/MehdiZare/fmp-data
|
|
@@ -28,43 +28,43 @@ Classifier: Topic :: Office/Business :: Financial
|
|
|
28
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
29
|
Requires-Python: <3.15,>=3.10
|
|
30
30
|
Requires-Dist: httpx>=0.28.1
|
|
31
|
-
Requires-Dist: pydantic>=2.
|
|
31
|
+
Requires-Dist: pydantic>=2.13.4
|
|
32
32
|
Requires-Dist: tenacity>=9.1.4
|
|
33
33
|
Provides-Extra: cache-redis
|
|
34
|
-
Requires-Dist: redis>=
|
|
34
|
+
Requires-Dist: redis>=8.0.1; extra == 'cache-redis'
|
|
35
35
|
Provides-Extra: dev
|
|
36
36
|
Requires-Dist: bandit[toml]>=1.9.4; extra == 'dev'
|
|
37
|
-
Requires-Dist: coverage>=7.
|
|
37
|
+
Requires-Dist: coverage>=7.15.1; extra == 'dev'
|
|
38
38
|
Requires-Dist: freezegun>=1.5.5; extra == 'dev'
|
|
39
|
-
Requires-Dist: mypy>=
|
|
40
|
-
Requires-Dist: nox>=2026.
|
|
41
|
-
Requires-Dist: pip-audit>=2.10.
|
|
42
|
-
Requires-Dist: pre-commit>=4.
|
|
43
|
-
Requires-Dist: pytest-asyncio>=1.
|
|
39
|
+
Requires-Dist: mypy>=2.2.0; extra == 'dev'
|
|
40
|
+
Requires-Dist: nox>=2026.7.11; extra == 'dev'
|
|
41
|
+
Requires-Dist: pip-audit>=2.10.1; extra == 'dev'
|
|
42
|
+
Requires-Dist: pre-commit>=4.6.0; extra == 'dev'
|
|
43
|
+
Requires-Dist: pytest-asyncio>=1.4.0; extra == 'dev'
|
|
44
44
|
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
|
|
45
45
|
Requires-Dist: pytest-mock>=3.15.1; extra == 'dev'
|
|
46
|
-
Requires-Dist: pytest-xdist>=3.
|
|
47
|
-
Requires-Dist: pytest>=9.
|
|
46
|
+
Requires-Dist: pytest-xdist>=3.8.0; extra == 'dev'
|
|
47
|
+
Requires-Dist: pytest>=9.1.1; extra == 'dev'
|
|
48
48
|
Requires-Dist: python-dotenv>=1.2.2; extra == 'dev'
|
|
49
|
-
Requires-Dist: responses>=0.26.
|
|
50
|
-
Requires-Dist: rich>=
|
|
51
|
-
Requires-Dist: ruff>=0.15.
|
|
49
|
+
Requires-Dist: responses>=0.26.2; extra == 'dev'
|
|
50
|
+
Requires-Dist: rich>=15.0.0; extra == 'dev'
|
|
51
|
+
Requires-Dist: ruff>=0.15.21; extra == 'dev'
|
|
52
52
|
Requires-Dist: twine>=6.2.0; extra == 'dev'
|
|
53
|
-
Requires-Dist: vcrpy>=8.
|
|
53
|
+
Requires-Dist: vcrpy>=8.3.0; extra == 'dev'
|
|
54
54
|
Provides-Extra: docs
|
|
55
55
|
Requires-Dist: mkdocs-material>=9.7.6; extra == 'docs'
|
|
56
56
|
Requires-Dist: mkdocs>=1.6.1; extra == 'docs'
|
|
57
|
-
Requires-Dist: mkdocstrings-python>=2.0.
|
|
57
|
+
Requires-Dist: mkdocstrings-python>=2.0.5; extra == 'docs'
|
|
58
58
|
Provides-Extra: langchain
|
|
59
|
-
Requires-Dist: faiss-cpu>=1.
|
|
60
|
-
Requires-Dist: langchain-community>=0.4.
|
|
61
|
-
Requires-Dist: langchain-core>=1.
|
|
62
|
-
Requires-Dist: langchain-openai>=1.
|
|
63
|
-
Requires-Dist: langgraph>=1.
|
|
64
|
-
Requires-Dist: openai>=2.
|
|
65
|
-
Requires-Dist: tiktoken>=0.
|
|
59
|
+
Requires-Dist: faiss-cpu>=1.14.3; extra == 'langchain'
|
|
60
|
+
Requires-Dist: langchain-community>=0.4.2; extra == 'langchain'
|
|
61
|
+
Requires-Dist: langchain-core>=1.4.9; extra == 'langchain'
|
|
62
|
+
Requires-Dist: langchain-openai>=1.3.5; extra == 'langchain'
|
|
63
|
+
Requires-Dist: langgraph>=1.2.9; extra == 'langchain'
|
|
64
|
+
Requires-Dist: openai>=2.45.0; extra == 'langchain'
|
|
65
|
+
Requires-Dist: tiktoken>=0.13.0; extra == 'langchain'
|
|
66
66
|
Provides-Extra: mcp
|
|
67
|
-
Requires-Dist: mcp[cli]>=1.
|
|
67
|
+
Requires-Dist: mcp[cli]>=1.28.1; extra == 'mcp'
|
|
68
68
|
Requires-Dist: pyyaml>=6.0.3; extra == 'mcp'
|
|
69
69
|
Description-Content-Type: text/markdown
|
|
70
70
|
|
|
@@ -6,8 +6,9 @@ from contextvars import ContextVar
|
|
|
6
6
|
import copy
|
|
7
7
|
import json
|
|
8
8
|
import logging
|
|
9
|
+
import re
|
|
9
10
|
import time
|
|
10
|
-
from typing import Any, Literal, TypeGuard, TypeVar, cast, overload
|
|
11
|
+
from typing import Any, Literal, NoReturn, TypeGuard, TypeVar, cast, overload
|
|
11
12
|
import warnings
|
|
12
13
|
|
|
13
14
|
import httpx
|
|
@@ -46,12 +47,57 @@ _rate_limit_retry_count: ContextVar[int] = ContextVar(
|
|
|
46
47
|
"rate_limit_retry_count", default=0
|
|
47
48
|
)
|
|
48
49
|
_extra_field_warnings_seen: set[tuple[str, tuple[str, ...]]] = set()
|
|
50
|
+
_API_KEY_ASSIGNMENT_RE = re.compile(
|
|
51
|
+
r"([\"']?api_?key[\"']?\s*[=:]\s*[\"']?)([^&\s\"'<>]+)([\"']?)",
|
|
52
|
+
re.IGNORECASE,
|
|
53
|
+
)
|
|
54
|
+
_API_KEY_ENCODED_RE = re.compile(r"(apikey%3[Dd])([^&\s\"'<>]+)", re.IGNORECASE)
|
|
49
55
|
|
|
50
56
|
|
|
51
57
|
def _is_pydantic_model(model: type[Any]) -> TypeGuard[type[BaseModel]]:
|
|
52
58
|
return isinstance(model, type) and issubclass(model, BaseModel)
|
|
53
59
|
|
|
54
60
|
|
|
61
|
+
def _redact_api_keys(text: str) -> str:
|
|
62
|
+
"""Redact apikey/api_key values embedded in free-form strings.
|
|
63
|
+
|
|
64
|
+
Handles common query-string, percent-encoded (``apikey%3D``), and
|
|
65
|
+
assignment/JSON-text patterns. For structured dict payloads, use
|
|
66
|
+
:func:`_sanitize_error_details` (also redacts ``api-key`` keys by name).
|
|
67
|
+
"""
|
|
68
|
+
redacted = _API_KEY_ASSIGNMENT_RE.sub(r"\1[REDACTED]\3", text)
|
|
69
|
+
return _API_KEY_ENCODED_RE.sub(r"\1[REDACTED]", redacted)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def _sanitize_error_details(
|
|
73
|
+
value: dict[str, Any] | list[Any] | str,
|
|
74
|
+
) -> dict[str, Any] | list[Any] | str:
|
|
75
|
+
"""Recursively redact API keys from error payloads that may reflect them."""
|
|
76
|
+
if isinstance(value, str):
|
|
77
|
+
return _redact_api_keys(value)
|
|
78
|
+
if isinstance(value, list):
|
|
79
|
+
return [_sanitize_error_value(item) for item in value]
|
|
80
|
+
return {
|
|
81
|
+
key: (
|
|
82
|
+
"[REDACTED]"
|
|
83
|
+
if key.lower() in {"apikey", "api_key", "api-key"}
|
|
84
|
+
else _sanitize_error_value(item)
|
|
85
|
+
)
|
|
86
|
+
for key, item in value.items()
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _sanitize_error_value(value: Any) -> Any:
|
|
91
|
+
"""Sanitize a single error-payload value (dict, list, string, or other)."""
|
|
92
|
+
if isinstance(value, dict):
|
|
93
|
+
return _sanitize_error_details(value)
|
|
94
|
+
if isinstance(value, list):
|
|
95
|
+
return [_sanitize_error_value(item) for item in value]
|
|
96
|
+
if isinstance(value, str):
|
|
97
|
+
return _redact_api_keys(value)
|
|
98
|
+
return value
|
|
99
|
+
|
|
100
|
+
|
|
55
101
|
class BaseClient:
|
|
56
102
|
def __init__(self, config: ClientConfig) -> None:
|
|
57
103
|
"""
|
|
@@ -267,8 +313,9 @@ class BaseClient:
|
|
|
267
313
|
if outcome is not None and outcome.failed:
|
|
268
314
|
exc = outcome.exception()
|
|
269
315
|
if isinstance(exc, RateLimitError) and exc.retry_after is not None:
|
|
270
|
-
return exc.retry_after
|
|
271
|
-
|
|
316
|
+
return float(exc.retry_after)
|
|
317
|
+
wait = wait_exponential(multiplier=1, min=4, max=10)(retry_state)
|
|
318
|
+
return float(wait)
|
|
272
319
|
|
|
273
320
|
@staticmethod
|
|
274
321
|
def _is_retryable_error(exc: BaseException) -> bool:
|
|
@@ -276,6 +323,13 @@ class BaseClient:
|
|
|
276
323
|
return True
|
|
277
324
|
if isinstance(exc, RateLimitError):
|
|
278
325
|
return True
|
|
326
|
+
# Mapped FMP errors from status conversion (incl. binary endpoints).
|
|
327
|
+
if (
|
|
328
|
+
isinstance(exc, FMPError)
|
|
329
|
+
and exc.status_code is not None
|
|
330
|
+
and exc.status_code >= 500
|
|
331
|
+
):
|
|
332
|
+
return True
|
|
279
333
|
if isinstance(exc, httpx.HTTPStatusError):
|
|
280
334
|
return exc.response.status_code >= 500
|
|
281
335
|
return False
|
|
@@ -387,7 +441,7 @@ class BaseClient:
|
|
|
387
441
|
try:
|
|
388
442
|
data: bytes | dict[str, Any] | list[Any]
|
|
389
443
|
if endpoint.response_model is bytes:
|
|
390
|
-
|
|
444
|
+
self._raise_response_for_status(response)
|
|
391
445
|
data = response.content
|
|
392
446
|
else:
|
|
393
447
|
data = self.handle_response(endpoint, response)
|
|
@@ -498,17 +552,45 @@ class BaseClient:
|
|
|
498
552
|
)
|
|
499
553
|
return cast(dict[str, Any] | list[Any], data)
|
|
500
554
|
|
|
555
|
+
def _raise_response_for_status(self, response: httpx.Response) -> None:
|
|
556
|
+
"""Raise typed FMP errors for non-success binary responses.
|
|
557
|
+
|
|
558
|
+
Binary endpoints must not re-raise raw ``httpx.HTTPStatusError``:
|
|
559
|
+
that type stringifies the request URL, which often includes ``apikey``.
|
|
560
|
+
"""
|
|
561
|
+
try:
|
|
562
|
+
response.raise_for_status()
|
|
563
|
+
except httpx.HTTPStatusError as exc:
|
|
564
|
+
self._raise_fmp_http_error(
|
|
565
|
+
exc,
|
|
566
|
+
self._safe_error_details(exc.response),
|
|
567
|
+
exc.response.status_code,
|
|
568
|
+
)
|
|
569
|
+
|
|
501
570
|
@staticmethod
|
|
502
571
|
def _get_error_details(
|
|
503
572
|
response: httpx.Response,
|
|
504
573
|
) -> dict[str, Any] | list[Any]:
|
|
574
|
+
"""Return response body for error reporting with API keys redacted."""
|
|
505
575
|
try:
|
|
506
576
|
data = response.json()
|
|
507
|
-
except json.JSONDecodeError:
|
|
508
|
-
|
|
577
|
+
except (json.JSONDecodeError, UnicodeDecodeError, ValueError):
|
|
578
|
+
raw = response.content.decode("utf-8", errors="replace")
|
|
579
|
+
return {"raw_content": _redact_api_keys(raw)}
|
|
509
580
|
if isinstance(data, dict | list):
|
|
510
|
-
return data
|
|
511
|
-
return {"raw_content": str(data)}
|
|
581
|
+
return cast(dict[str, Any] | list[Any], _sanitize_error_details(data))
|
|
582
|
+
return {"raw_content": _redact_api_keys(str(data))}
|
|
583
|
+
|
|
584
|
+
@classmethod
|
|
585
|
+
def _safe_error_details(
|
|
586
|
+
cls,
|
|
587
|
+
response: httpx.Response,
|
|
588
|
+
) -> dict[str, Any] | list[Any]:
|
|
589
|
+
"""Best-effort error details; never fail open to unreadable bodies."""
|
|
590
|
+
try:
|
|
591
|
+
return cls._get_error_details(response)
|
|
592
|
+
except Exception:
|
|
593
|
+
return {"raw_content": "[unreadable error body]"}
|
|
512
594
|
|
|
513
595
|
def _handle_http_status_error(
|
|
514
596
|
self,
|
|
@@ -524,7 +606,7 @@ class BaseClient:
|
|
|
524
606
|
"_handle_http_status_error() missing required error argument"
|
|
525
607
|
)
|
|
526
608
|
|
|
527
|
-
error_details = self.
|
|
609
|
+
error_details = self._safe_error_details(error.response)
|
|
528
610
|
status_code = error.response.status_code
|
|
529
611
|
|
|
530
612
|
if status_code == 404:
|
|
@@ -551,8 +633,24 @@ class BaseClient:
|
|
|
551
633
|
)
|
|
552
634
|
return {}
|
|
553
635
|
|
|
636
|
+
self._raise_fmp_http_error(error, error_details, status_code)
|
|
637
|
+
|
|
638
|
+
def _raise_fmp_http_error(
|
|
639
|
+
self,
|
|
640
|
+
error: httpx.HTTPStatusError,
|
|
641
|
+
error_details: dict[str, Any] | list[Any],
|
|
642
|
+
status_code: int,
|
|
643
|
+
) -> NoReturn:
|
|
644
|
+
"""Map HTTP status errors to FMP exceptions without chaining httpx.
|
|
645
|
+
|
|
646
|
+
``from None`` is intentional: ``httpx.HTTPStatusError`` stringifies the
|
|
647
|
+
request URL (often including ``apikey``), so chaining would leak keys
|
|
648
|
+
into formatted tracebacks.
|
|
649
|
+
"""
|
|
554
650
|
if status_code == 429:
|
|
555
|
-
self._rate_limiter.handle_response(
|
|
651
|
+
self._rate_limiter.handle_response(
|
|
652
|
+
status_code, _redact_api_keys(error.response.text)
|
|
653
|
+
)
|
|
556
654
|
retry_after = self._rate_limiter.get_retry_after(error.response.headers)
|
|
557
655
|
wait_time = (
|
|
558
656
|
retry_after
|
|
@@ -564,27 +662,27 @@ class BaseClient:
|
|
|
564
662
|
status_code=429,
|
|
565
663
|
response=error_details,
|
|
566
664
|
retry_after=wait_time,
|
|
567
|
-
) from
|
|
665
|
+
) from None
|
|
568
666
|
|
|
569
667
|
if status_code == 401:
|
|
570
668
|
raise AuthenticationError(
|
|
571
669
|
"Invalid API key or authentication failed",
|
|
572
670
|
status_code=401,
|
|
573
671
|
response=error_details,
|
|
574
|
-
) from
|
|
672
|
+
) from None
|
|
575
673
|
|
|
576
674
|
if status_code == 400:
|
|
577
675
|
raise ValidationError(
|
|
578
676
|
f"Invalid request parameters: {error_details}",
|
|
579
677
|
status_code=400,
|
|
580
678
|
response=error_details,
|
|
581
|
-
) from
|
|
679
|
+
) from None
|
|
582
680
|
|
|
583
681
|
raise FMPError(
|
|
584
682
|
f"HTTP {status_code} error occurred: {error_details}",
|
|
585
683
|
status_code=status_code,
|
|
586
684
|
response=error_details,
|
|
587
|
-
) from
|
|
685
|
+
) from None
|
|
588
686
|
|
|
589
687
|
@staticmethod
|
|
590
688
|
def _check_error_response(data: dict[str, Any]) -> None:
|
|
@@ -902,7 +1000,7 @@ class BaseClient:
|
|
|
902
1000
|
try:
|
|
903
1001
|
data: bytes | dict[str, Any] | list[Any]
|
|
904
1002
|
if endpoint.response_model is bytes:
|
|
905
|
-
|
|
1003
|
+
self._raise_response_for_status(response)
|
|
906
1004
|
data = response.content
|
|
907
1005
|
else:
|
|
908
1006
|
data = self.handle_response(endpoint, response)
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
from datetime import date, datetime
|
|
4
4
|
from decimal import Decimal
|
|
5
5
|
import json
|
|
6
|
+
import math
|
|
6
7
|
from typing import Any
|
|
7
8
|
from urllib.parse import urlparse
|
|
8
9
|
from zoneinfo import ZoneInfo
|
|
@@ -25,14 +26,38 @@ from fmp_data.models import ShareFloat
|
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
def coerce_volume_value(value: Any) -> Any:
|
|
28
|
-
"""Coerce volume values to int (FMP
|
|
29
|
+
"""Coerce volume values to int (FMP may return floats or numeric strings).
|
|
30
|
+
|
|
31
|
+
JSON endpoints return volume as a number, but the bulk CSV endpoints (e.g.
|
|
32
|
+
``profile-bulk``) return a possibly-fractional string such as ``"475.9"``.
|
|
33
|
+
Both must land as ``int`` (truncating toward zero) so a fractional value
|
|
34
|
+
doesn't fail the ``int`` field and silently drop the whole parsed row.
|
|
35
|
+
Empty strings become ``None``; non-numeric and non-finite values (``nan``,
|
|
36
|
+
``inf``) are passed through unchanged so they surface as a validation error
|
|
37
|
+
instead of raising ``OverflowError`` or masking bad data.
|
|
29
38
|
|
|
30
39
|
See: https://github.com/MehdiZare/fmp-data/issues/70
|
|
31
40
|
"""
|
|
32
41
|
if value is None:
|
|
33
42
|
return None
|
|
34
43
|
if isinstance(value, int | float):
|
|
44
|
+
# bool is a subclass of int; int(True)==1 would mask bad payloads.
|
|
45
|
+
if isinstance(value, bool):
|
|
46
|
+
return value
|
|
47
|
+
if isinstance(value, float) and not math.isfinite(value):
|
|
48
|
+
return value
|
|
35
49
|
return int(value)
|
|
50
|
+
if isinstance(value, str):
|
|
51
|
+
stripped = value.strip()
|
|
52
|
+
if not stripped:
|
|
53
|
+
return None
|
|
54
|
+
try:
|
|
55
|
+
number = float(stripped)
|
|
56
|
+
except ValueError:
|
|
57
|
+
return value
|
|
58
|
+
if not math.isfinite(number):
|
|
59
|
+
return value
|
|
60
|
+
return int(number)
|
|
36
61
|
return value
|
|
37
62
|
|
|
38
63
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
requires = [
|
|
3
|
-
"hatchling>=1.
|
|
3
|
+
"hatchling>=1.31.0",
|
|
4
4
|
"hatch-vcs>=0.5.0",
|
|
5
5
|
]
|
|
6
6
|
build-backend = "hatchling.build"
|
|
@@ -47,7 +47,7 @@ classifiers = [
|
|
|
47
47
|
]
|
|
48
48
|
dependencies = [
|
|
49
49
|
"httpx>=0.28.1",
|
|
50
|
-
"pydantic>=2.
|
|
50
|
+
"pydantic>=2.13.4",
|
|
51
51
|
"tenacity>=9.1.4",
|
|
52
52
|
]
|
|
53
53
|
|
|
@@ -64,84 +64,84 @@ fmp-mcp = "fmp_data.mcp.cli:main"
|
|
|
64
64
|
|
|
65
65
|
[project.optional-dependencies]
|
|
66
66
|
mcp = [
|
|
67
|
-
"mcp[cli]>=1.
|
|
67
|
+
"mcp[cli]>=1.28.1",
|
|
68
68
|
"pyyaml>=6.0.3",
|
|
69
69
|
]
|
|
70
70
|
cache-redis = [
|
|
71
|
-
"redis>=
|
|
71
|
+
"redis>=8.0.1",
|
|
72
72
|
]
|
|
73
73
|
langchain = [
|
|
74
|
-
"faiss-cpu>=1.
|
|
75
|
-
"langchain-core>=1.
|
|
76
|
-
"langchain-community>=0.4.
|
|
77
|
-
"langchain-openai>=1.
|
|
78
|
-
"langgraph>=1.
|
|
79
|
-
"openai>=2.
|
|
80
|
-
"tiktoken>=0.
|
|
74
|
+
"faiss-cpu>=1.14.3",
|
|
75
|
+
"langchain-core>=1.4.9",
|
|
76
|
+
"langchain-community>=0.4.2",
|
|
77
|
+
"langchain-openai>=1.3.5",
|
|
78
|
+
"langgraph>=1.2.9",
|
|
79
|
+
"openai>=2.45.0",
|
|
80
|
+
"tiktoken>=0.13.0",
|
|
81
81
|
]
|
|
82
82
|
dev = [
|
|
83
|
-
"ruff>=0.15.
|
|
84
|
-
"mypy>=
|
|
83
|
+
"ruff>=0.15.21",
|
|
84
|
+
"mypy>=2.2.0",
|
|
85
85
|
"bandit[toml]>=1.9.4",
|
|
86
|
-
"pip-audit>=2.10.
|
|
86
|
+
"pip-audit>=2.10.1",
|
|
87
87
|
"python-dotenv>=1.2.2",
|
|
88
|
-
"pytest>=9.
|
|
89
|
-
"pytest-asyncio>=1.
|
|
88
|
+
"pytest>=9.1.1",
|
|
89
|
+
"pytest-asyncio>=1.4.0",
|
|
90
90
|
"pytest-cov>=7.1.0",
|
|
91
91
|
"pytest-mock>=3.15.1",
|
|
92
|
-
"pytest-xdist>=3.
|
|
92
|
+
"pytest-xdist>=3.8.0",
|
|
93
93
|
"freezegun>=1.5.5",
|
|
94
|
-
"responses>=0.26.
|
|
95
|
-
"vcrpy>=8.
|
|
96
|
-
"coverage>=7.
|
|
97
|
-
"pre-commit>=4.
|
|
98
|
-
"rich>=
|
|
94
|
+
"responses>=0.26.2",
|
|
95
|
+
"vcrpy>=8.3.0",
|
|
96
|
+
"coverage>=7.15.1",
|
|
97
|
+
"pre-commit>=4.6.0",
|
|
98
|
+
"rich>=15.0.0",
|
|
99
99
|
"twine>=6.2.0",
|
|
100
|
-
"nox>=2026.
|
|
100
|
+
"nox>=2026.7.11",
|
|
101
101
|
]
|
|
102
102
|
docs = [
|
|
103
103
|
"mkdocs>=1.6.1",
|
|
104
104
|
"mkdocs-material>=9.7.6",
|
|
105
|
-
"mkdocstrings-python>=2.0.
|
|
105
|
+
"mkdocstrings-python>=2.0.5",
|
|
106
106
|
]
|
|
107
107
|
|
|
108
108
|
[dependency-groups]
|
|
109
109
|
dev = [
|
|
110
|
-
"ruff>=0.15.
|
|
111
|
-
"mypy>=
|
|
110
|
+
"ruff>=0.15.21",
|
|
111
|
+
"mypy>=2.2.0",
|
|
112
112
|
"bandit[toml]>=1.9.4",
|
|
113
|
-
"pip-audit>=2.10.
|
|
113
|
+
"pip-audit>=2.10.1",
|
|
114
114
|
"python-dotenv>=1.2.2",
|
|
115
|
-
"pytest>=9.
|
|
116
|
-
"pytest-asyncio>=1.
|
|
115
|
+
"pytest>=9.1.1",
|
|
116
|
+
"pytest-asyncio>=1.4.0",
|
|
117
117
|
"pytest-cov>=7.1.0",
|
|
118
118
|
"pytest-mock>=3.15.1",
|
|
119
|
-
"pytest-xdist>=3.
|
|
119
|
+
"pytest-xdist>=3.8.0",
|
|
120
120
|
"freezegun>=1.5.5",
|
|
121
|
-
"responses>=0.26.
|
|
122
|
-
"vcrpy>=8.
|
|
123
|
-
"coverage>=7.
|
|
124
|
-
"pre-commit>=4.
|
|
125
|
-
"rich>=
|
|
121
|
+
"responses>=0.26.2",
|
|
122
|
+
"vcrpy>=8.3.0",
|
|
123
|
+
"coverage>=7.15.1",
|
|
124
|
+
"pre-commit>=4.6.0",
|
|
125
|
+
"rich>=15.0.0",
|
|
126
126
|
"twine>=6.2.0",
|
|
127
|
-
"nox>=2026.
|
|
127
|
+
"nox>=2026.7.11",
|
|
128
128
|
]
|
|
129
129
|
docs = [
|
|
130
130
|
"mkdocs>=1.6.1",
|
|
131
131
|
"mkdocs-material>=9.7.6",
|
|
132
|
-
"mkdocstrings-python>=2.0.
|
|
132
|
+
"mkdocstrings-python>=2.0.5",
|
|
133
133
|
]
|
|
134
134
|
langchain = [
|
|
135
|
-
"faiss-cpu>=1.
|
|
136
|
-
"langchain-core>=1.
|
|
137
|
-
"langchain-community>=0.4.
|
|
138
|
-
"langchain-openai>=1.
|
|
139
|
-
"langgraph>=1.
|
|
140
|
-
"openai>=2.
|
|
141
|
-
"tiktoken>=0.
|
|
135
|
+
"faiss-cpu>=1.14.3",
|
|
136
|
+
"langchain-core>=1.4.9",
|
|
137
|
+
"langchain-community>=0.4.2",
|
|
138
|
+
"langchain-openai>=1.3.5",
|
|
139
|
+
"langgraph>=1.2.9",
|
|
140
|
+
"openai>=2.45.0",
|
|
141
|
+
"tiktoken>=0.13.0",
|
|
142
142
|
]
|
|
143
143
|
mcp = [
|
|
144
|
-
"mcp[cli]>=1.
|
|
144
|
+
"mcp[cli]>=1.28.1",
|
|
145
145
|
"pyyaml>=6.0.3",
|
|
146
146
|
]
|
|
147
147
|
|
|
@@ -223,7 +223,9 @@ known-first-party = [
|
|
|
223
223
|
force-sort-within-sections = true
|
|
224
224
|
|
|
225
225
|
[tool.mypy]
|
|
226
|
-
|
|
226
|
+
# Analyze against 3.12 so third-party stubs (numpy 2.x PEP 695 `type` statements)
|
|
227
|
+
# parse correctly. Runtime still supports Python 3.10+.
|
|
228
|
+
python_version = "3.12"
|
|
227
229
|
warn_return_any = true
|
|
228
230
|
warn_unused_configs = true
|
|
229
231
|
disallow_untyped_defs = true
|