Generate Typst Tables from DataFrames.
Project description
typ-tables
Inspired by great_tables, a way to turn DataFrames into Typst tables.
To install, run uv add typ-tables
Tables that look like
Created using the following Python script:
import polars as pl
from typ_tables import TypTable
df = pl.DataFrame(
{
"string": ["a", "b", "c"],
"int": [10, 10000, 1000000],
"float": [0.000001, 0.1368753, 163985.8374],
}
)
table = TypTable(df)
result: str = table.to_typst()
To include the table in your Typst report you can write the resulting Typst string to a file and include it.
#include "table.typ"
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
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 typ_tables-0.1.3.tar.gz.
File metadata
- Download URL: typ_tables-0.1.3.tar.gz
- Upload date:
- Size: 65.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"20.04","id":"focal","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 |
fb2b5c6b39c1bf4aed0a8ef9db7265fcfd988fd3ec4a31f153bcd5d6522c6901
|
|
| MD5 |
3b655e6328a4946b4cbab68910ecd495
|
|
| BLAKE2b-256 |
e19a3a1e20947e9023d9b897932db710f325e275c1a9a45f256f410f60c025b1
|
File details
Details for the file typ_tables-0.1.3-py3-none-any.whl.
File metadata
- Download URL: typ_tables-0.1.3-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"20.04","id":"focal","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 |
c848ab8718cec961ca662c4bc27894185fe049c47e5c2ba430340f21ac2c4c29
|
|
| MD5 |
eee29e71711986c77cad6f27e616fefb
|
|
| BLAKE2b-256 |
2acf8a615825e55c0f837f81beb02be3acaa7eb80389e62b8d81167297dc036c
|