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"
Documentation
For more, check out the
documentation. The
great_tables
documentation is also useful as many of the examples work in typ-tables.
Metadata
Release files for typ-tables 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typ_tables-0.3.1.tar.gz | 79.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typ_tables-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 128.1 kB
Release files / typ_tables-0.3.1.tar.gz
| Download URL | typ_tables-0.3.1.tar.gz |
|---|---|
| Size | 79.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fdf401b80ed860ff91e66a316b05d7c4823394c88b77a1d6209f8ccc54a2526
|
|
BLAKE2b-256 checksum How to use checksums |
5d03c657030defbeec6eac3cc793f9abc3d251554706c0f86c18e553b5151640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","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}
|
Release files / typ_tables-0.3.1-py3-none-any.whl
| Download URL | typ_tables-0.3.1-py3-none-any.whl |
|---|---|
| Size | 48.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ebd0aad9b42d631fc547884ad9b0a4b0a327e12a34a469640fa657e1263b605
|
|
BLAKE2b-256 checksum How to use checksums |
f49015436ddd0f09a9a888ec43ee27bba13ac9d45188ee4935220bd8ef49dcb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","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}
|