Publish HTML reports as shareable, hosted URLs — Folio Python SDK
Project description
folio-sdk
Publish HTML reports as shareable, hosted URLs — Folio Python SDK.
pip install folio-sdk
Usage
import folio
folio.configure("fol_your_key_here") # or set FOLIO_API_KEY env var
url = folio.publish(html, title="Q2 Analysis")
print(url) # → https://folio.ac/r/abc123
Get your API key at folio.ac/dashboard.
Options
url = folio.publish(
html,
title="Q2 Revenue",
expires_in_days=30, # 7 | 14 | 30 | 90 (default: 7)
password="secret", # optional gate
custom_slug="q2-rev", # → folio.ac/you/r/q2-rev
)
Agent / LLM usage
import anthropic, folio
folio.configure("fol_your_key_here")
client = anthropic.Anthropic()
msg = client.messages.create(
model="claude-opus-4-7",
max_tokens=8096,
messages=[{"role": "user", "content": "Analyse this data and return a full HTML report with charts."}],
)
url = folio.publish(msg.content[0].text, title="Analysis")
print(f"Report: {url}")
Links
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
folio_sdk-0.1.0.tar.gz
(2.4 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
File details
Details for the file folio_sdk-0.1.0.tar.gz.
File metadata
- Download URL: folio_sdk-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
564d9206c39226312de1c64b1be3b821b02b9c0db4efbb419fc793122aa3ffc8
|
|
| MD5 |
0ab03efdf9420f2f6e3c7941499b422e
|
|
| BLAKE2b-256 |
005c510639232a982736786401b089eafb7d5d005820a4c3fe9799d60d098a0d
|
File details
Details for the file folio_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: folio_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c04628501dcf06e3425fcbab0ceb98c3cce0b3e0fa715e61300e8fea52566f7b
|
|
| MD5 |
638abf25417aa1d8920793181a837d8d
|
|
| BLAKE2b-256 |
9075b102195cb759370c4e5f1648fe797efd49f256880173b9d0a0fc45cb9123
|