Skip to main content

fmp-py-sdk

fmp-py-sdk is the Python distribution for the Rust-backed fmp package, a typed client for the Financial Modeling Prep (FMP) data API.

The Python facade currently exposes 1 of the 276 endpoint entries in the repository's captured API documentation oracle: the documented GET /stable/quote-short?symbol=... endpoint. The remaining Python facades are planned work; Rust's broader endpoint coverage does not imply Python parity.

python -m pip install fmp-py-sdk
import os

from fmp import FmpClient

client = FmpClient(token=os.environ["FMP_API_KEY"])
rows = client.quote_short("AAPL")
print(rows)

quote_short returns list[QuoteShort], preserving empty and multi-row provider responses. The public native modules follow a conventional HTTP SDK surface: FmpClient lives in fmp.client, the exception hierarchy lives in fmp.errors, and response models live in endpoint domains such as fmp.quote. Every public type also remains available from the package root. FmpClient is synchronous; it releases the Python GIL while its async Rust transport waits.

Custom router or proxy

import os

from fmp import FmpClient

client = FmpClient(
    base_url=os.environ["FMP_PROXY_BASE_URL"],
    path_prefix="router/stable",
    auth_mode="custom_header",
    auth_name="X-Proxy-Token",
    auth_prefix="Bearer ",
    token=os.environ["FMP_PROXY_TOKEN"],
    headers={"X-Tenant": os.environ["FMP_TENANT"]},
)
rows = client.quote_short("AAPL")

Available auth modes are none, fmp_header, fmp_query, bearer, custom_header, and custom_query. auth_mode="none" supports credential-free local or trusted routers. Redirect following is either disabled or same-origin only.

The package supports CPython 3.9 or newer through Python's stable ABI. Native public modules are paired with documentation/source .py shims and hand-maintained .pyi contracts, plus a py.typed marker for type checkers. Transport, configuration, and runtime internals are intentionally not exposed as Python modules.

This project is available under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fmp_py_sdk-0.5.0.tar.gz (149.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fmp_py_sdk-0.5.0-cp39-abi3-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.9+Windows x86-64

fmp_py_sdk-0.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

fmp_py_sdk-0.5.0-cp39-abi3-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file fmp_py_sdk-0.5.0.tar.gz.

File metadata

  • Download URL: fmp_py_sdk-0.5.0.tar.gz
  • Upload date:
  • Size: 149.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fmp_py_sdk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f9dd8ec5e064cd62cfebe14d3b1d259096a4ff6cb80587e19b142a02d2162c65
MD5 a80029600e1b132d72bf360a5b96c7b9
BLAKE2b-256 60f261fff6f328da22c78ad3ea14d2ab051edaf1a0085f06135c2f62e1731b9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for fmp_py_sdk-0.5.0.tar.gz:

Publisher: semantic-release.yml on bitbrew-dev/libfmp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fmp_py_sdk-0.5.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: fmp_py_sdk-0.5.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fmp_py_sdk-0.5.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 18c18823ac864754a363680eecbff5e541c553a35818db83602781b521d8d77c
MD5 2829823e27e65d9dbf98aab7551efe9c
BLAKE2b-256 0889ceb28d4c915f97de0146933e7bb6e76fa03916772911d2ba4e1660e9ab60

See more details on using hashes here.

Provenance

The following attestation bundles were made for fmp_py_sdk-0.5.0-cp39-abi3-win_amd64.whl:

Publisher: semantic-release.yml on bitbrew-dev/libfmp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fmp_py_sdk-0.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fmp_py_sdk-0.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65f839db192b752a69696fd6796b81475f01e89a0c93ccbc3992cb90ffe54b1f
MD5 367bb3ca1fbd2ea9511e2543eda30fa0
BLAKE2b-256 5db53af0cb4d6fcfaf4daa9b65276eeb8472271141c01af5dc0c6093bfc3cec2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fmp_py_sdk-0.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: semantic-release.yml on bitbrew-dev/libfmp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fmp_py_sdk-0.5.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fmp_py_sdk-0.5.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3601ff0a3fc17e8e64932d43e5bf6856a05753dc6e23558629e8d73e959cd7f
MD5 9316f4387407e34ea6144f601be6fb3a
BLAKE2b-256 c6de5241323244ba436a3f3e71917315d324168d57e2ee717b08c01d133d4aa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fmp_py_sdk-0.5.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: semantic-release.yml on bitbrew-dev/libfmp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.0 This release

4 files

0.4.0

4 files

0.3.0

4 files

0.2.0

4 files

0.1.1

4 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page