Reportobello
Python SDK for the Reportobello API.
This package also includes the Reportobello CLI, rpbl.
To learn more about the CLI, read the docs here.
Installing
$ pip install reportobello
Basic Usage
Below is a full exmaple of how to create reports in Reportobello.
This example is ready to go, and can be copy-pasted into your project.
from dataclasses import dataclass
import asyncio
from reportobello import ReportobelloApi, Template
@dataclass
class QuarterlyReport(Template):
name = "quarterly_report"
# See Typst docs for syntax: https://typst.app/docs
content = """
#let data = json("data.json")
= Q#data.quarter Earnings Report
Generated: #datetime.today().display()
Earnings: #data.earnings
"""
# Alternatively, store in a file
# file = "report.typ"
quarter: int
earnings: float
api = ReportobelloApi()
async def main():
template = QuarterlyReport(quarter=1, earnings=123_456)
# You only need to run this if the template above changes
await api.create_or_update_template(template)
pdf = await api.build_template(template)
print(f"Downloading {pdf.url}")
await pdf.save_to("output.pdf")
asyncio.run(main())
Read the docs for more info.
Metadata
Release files for reportobello 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reportobello-0.2.6.tar.gz | 11.5 kB | Without provenance | Details for reportobello-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reportobello-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for reportobello-0.2.6-py3-none-any.whl |
Total release size: 24.6 kB
Release files / reportobello-0.2.6.tar.gz
| Download URL | reportobello-0.2.6.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a2b8c3496b31dd41683b5d93f2d9d13f65db52b8f3818525790dfdfe862324f
|
|
BLAKE2b-256 checksum How to use checksums |
314972f5033197fde6ebc21e7265b3ad98357890d188cbd8cdeecac6c20a7170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / reportobello-0.2.6-py3-none-any.whl
| Download URL | reportobello-0.2.6-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d06a235e82b8b737ac08ed6cef98949642de3811d97944700ff874a59ec40a8a
|
|
BLAKE2b-256 checksum How to use checksums |
e81fbe238d8683f759b137f8a629b40030b19d8e99bf3336b845e8735325c2df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for reportobello 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.