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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b27228e37ea14db4813f6ad49843e5c11f5d28bda528c2663fc01a65f2d595c
|
|
| MD5 |
a08c9a2cbaa1478f2f81aa001f5dd809
|
|
| BLAKE2b-256 |
dd5830950deeb7a90078d3c6a27aee9d875d71f87b12f178d8fc8d8703edeba2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9125b486d98be11bcf47ba3b4acdd4b5215406bfb63edfbfc59267e1ac9b82b9
|
|
| MD5 |
3a108701c0ec9c92d5c0f7e8a4975ff1
|
|
| BLAKE2b-256 |
842ce359a56973ab2ae1dcaadbe9ae1e659c837851bdcca5b450d5208d8bba8d
|