Skip to main content

Fiberplane studio integration with FastAPI

Reason this release was yanked:

not the latest code

Project description

fpx.py

Provides instrumentation and route detection for FastAPI apps.

Installation

The package is available on PyPy, installing it as simple as

uv add fpxpy

Usage

After installing fpxpy either from source or from pip, simply add the second line referencing your FastAPI app.

from fpxpy import setup

app = FastAPI()
setup(app)

Running

After that, when running your FastAPI server, be sure to set the FPX_ENDPOINT env variable pointing to your instance of Fiberplane Studio, e.g:

$ FPX_ENDPOINT=http://localhost:8788/v1/traces uv run fastapi dev main.py

Development

This package uses uv for its dependencies and running the tooling. The following tools are used for linting, checking & formatting. They are listed as part of the dev dependencies (and will be installed by uv by default).

  • MyPy for type checking. Run: uv run mypy .
  • ruff for linting (uv run ruff check) and formatting (uv run ruff format)

Project details


Download files

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

Source Distribution

fpxpy-0.2.0.tar.gz (46.6 kB view details)

Uploaded Source

Built Distribution

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

fpxpy-0.2.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file fpxpy-0.2.0.tar.gz.

File metadata

  • Download URL: fpxpy-0.2.0.tar.gz
  • Upload date:
  • Size: 46.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for fpxpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8b27228e37ea14db4813f6ad49843e5c11f5d28bda528c2663fc01a65f2d595c
MD5 a08c9a2cbaa1478f2f81aa001f5dd809
BLAKE2b-256 dd5830950deeb7a90078d3c6a27aee9d875d71f87b12f178d8fc8d8703edeba2

See more details on using hashes here.

File details

Details for the file fpxpy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fpxpy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for fpxpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9125b486d98be11bcf47ba3b4acdd4b5215406bfb63edfbfc59267e1ac9b82b9
MD5 3a108701c0ec9c92d5c0f7e8a4975ff1
BLAKE2b-256 842ce359a56973ab2ae1dcaadbe9ae1e659c837851bdcca5b450d5208d8bba8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page