InteractiveForest Plot
Project description
Forestly
A production-ready forest plot system for clinical trials with interactive Reactable tables, supporting nested listings and drill-down capabilities.
Installation
pip install -e .
Quick Start
from forestly import ForestPlot, TextPanel, SparklinePanel, Config
import polars as pl
# Create forest plot
forest = ForestPlot(
data=efficacy_data,
panels=[
TextPanel(variables="subgroup"),
SparklinePanel(
variables="hazard_ratio",
lower="hr_ci_lower",
upper="hr_ci_upper",
reference_line=1.0
),
TextPanel(variables="p_value", title="P-value")
]
)
# Export to interactive Reactable
forest.to_reactable()
Features
- Panel-based architecture for flexible layouts
- Interactive Reactable tables with drill-down capabilities
- Multiple export formats (RTF, static plots)
- Pydantic validation for data integrity
- Support for hierarchical data structures
Development
# Install development dependencies
uv add --dev pytest pytest-cov ruff mypy hypothesis
# Run tests
pytest
# Format code
ruff format .
# Type check
mypy src/
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
forestly-0.1.1.tar.gz
(21.1 kB
view details)
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
forestly-0.1.1-py3-none-any.whl
(20.0 kB
view details)
File details
Details for the file forestly-0.1.1.tar.gz.
File metadata
- Download URL: forestly-0.1.1.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ce8d9963d0b0a36e5f131ce7dcb9cc5cdcc0b57d40ac93e3149c2dc47354d5a
|
|
| MD5 |
dec0da9c9720977de9d600433124f477
|
|
| BLAKE2b-256 |
b4ed6ba5e5225bcd68a18d5050ee2e6aaa57d6d3b654f035819ed8b374e54f06
|
File details
Details for the file forestly-0.1.1-py3-none-any.whl.
File metadata
- Download URL: forestly-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1b41da3cd3a97845feb5b993ea0094ac2fc958d072850c045d16b9d8617ee5
|
|
| MD5 |
dd2010e3fe2003e1638bdf0ef835fb00
|
|
| BLAKE2b-256 |
2df77777dc5951ff0fba9e54362af21633e1118555db4a18f03341d73186e176
|