Polars RefKit
Parse, inspect, render, and format BibTeX columns inside Polars eager and lazy queries. Each source row owns an independent bibliography and citation state.
Documentation · Expression reference · Python objects
Render a citation column
Install in Python 3.11 through 3.14 with Polars 1.29 or newer:
python -m pip install polars-refkit
import polars as pl
import polars_refkit
frame = pl.DataFrame(
{
"bibtex": ["@article{doe2024, author={Doe, Jane}, title={Fast Citations}, year={2024}}"],
"key": ["doe2024"],
}
)
result = frame.select(
citation=pl.col("bibtex").refkit.cite("key"),
entries=pl.col("bibtex").refkit.entry_count(),
)
print(result.to_dicts())
[{'citation': '(Doe, 2024)', 'entries': 1}]
Importing polars_refkit registers pl.Expr.refkit. A string argument names a column. Use pl.lit(...) for literal bibliography text or citation keys.
Choose an operation
| Task | Expressions |
|---|---|
| Parse and inspect | entry_count, keys, entries, can_parse, diagnostics, has_diagnostics, parse_report |
| Render citations | cite, cite_each, cite_group |
| Render every entry | full_bibliography |
| Inspect render failures | render_report |
| Format and deduplicate | tidy_bibtex, tidy_bibtex_report |
Choose output="text", "html", or "rendered" on rendering expressions. Pass formatting settings as an options= dictionary. Value expressions return null on row-local failures. Reports retain structured diagnostics, errors, or rename records beside the source row.
Use with agents
The package includes version-matched task guidance:
import polars_refkit.agent
help(polars_refkit.agent)
Agent integration covers discovery. Data shapes defines reports and Pyodide records the tested browser runtime.
RefKit is alpha software. Public APIs may change before 1.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 polars_refkit-0.0.7.tar.gz.
File metadata
- Download URL: polars_refkit-0.0.7.tar.gz
- Upload date:
- Size: 93.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a6a7008144071e25468dc6e0130aae5b1a0814d22b32bb24846621e41f319a0
|
|
| MD5 |
e48672d8e5957521a3707266f4b3593b
|
|
| BLAKE2b-256 |
6f62682aa52dfdfe03689ee1cc3b3a2e79461a52d5c76c19ad497f5ec72facbd
|
File details
Details for the file polars_refkit-0.0.7-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: polars_refkit-0.0.7-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90faa0659eea937335b1fb1c2d71b1bb000a8eba0f3aae6bc2a1074656207823
|
|
| MD5 |
8887e1c4cb3a6a0dc52df400e0e11c18
|
|
| BLAKE2b-256 |
51d88985677d149917c7ccd2069e4cb9d66a6492b83a3efa0a9f462009843fb3
|
File details
Details for the file polars_refkit-0.0.7-cp311-abi3-pyemscripten_2026_0_wasm32.whl.
File metadata
- Download URL: polars_refkit-0.0.7-cp311-abi3-pyemscripten_2026_0_wasm32.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.11+, PyEmscripten 2026.0 wasm32
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8ca49fb64dbc4c141a85c53f71e733952b8f4876a70b2e4affce86c21c90c34
|
|
| MD5 |
ee1de3576e930ef21f832eefecaff23f
|
|
| BLAKE2b-256 |
5b60cd3ce79ef02bf0dbea908539c975f5413693be79d6eab1695a6f12c78c9d
|
File details
Details for the file polars_refkit-0.0.7-cp311-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: polars_refkit-0.0.7-cp311-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 6.2 MB
- Tags: CPython 3.11+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f2ed85fca5c769ebe5d8a517d5b16f9801110c910420ab5a383630cdbe048f
|
|
| MD5 |
f40c27aa18b1220192715e6ef6762f00
|
|
| BLAKE2b-256 |
531902ef090e9d383703bdb77cb95b3daac346566f04a91fe715d6ab6f87dec2
|
File details
Details for the file polars_refkit-0.0.7-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: polars_refkit-0.0.7-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.3 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32821aa5fd2969f147f5750f6a1447887bd93e6836253b787af6bf0859b15ca6
|
|
| MD5 |
1dc6d24615c86b59b6e0b4e2d51be5e9
|
|
| BLAKE2b-256 |
640d5356e667b1c53e8623f6a1c9a023083bb754c1fad48a8fde8e520f4201b1
|