Skip to main content

RefKit

Parse bibliography data, render citations and bibliographies, and edit raw BibTeX from Python. RefKit accepts BibTeX, BibLaTeX, and Hayagriva YAML, with Citation Style Language rendering into text, HTML, and structured trees.

Documentation · Python reference · Polars

Render a citation

Install in Python 3.10 through 3.14:

python -m pip install refkit
import refkit as rk

library = rk.Library.parse_bibtex("""
@article{doe2024,
  author = {Doe, Jane},
  title = {Fast Citations},
  journal = {Journal of Citation Tests},
  year = {2024}
}
""")
document = rk.Document(library, rk.Style.load("apa"), locale="en-US")
result = document.render([rk.Citation("intro", "doe2024")])

print(result["intro"].text)
print(result.bibliography.text)
(Doe, 2024)
Doe, J. (2024). Fast Citations. Journal of Citation Tests.

Pass related citations in one ordered render call so numbering and disambiguation share the same context. Continue with the Python quickstart.

Use with agents

The refkit package includes an Agent Plugin with version-matched task guidance. An agent that can execute Python can discover the installed workflow:

import refkit.agent

help(refkit.agent)

Agent integration covers discovery and packaged resources.

Choose a workflow

RefKit is alpha software. Public APIs may change before 1.0.

Apache-2.0 license

Release files for refkit 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for refkit 0.2.1
File Size Uploaded
refkit-0.2.1.tar.gz 92.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for refkit 0.2.1
File
refkit-0.2.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
refkit-0.2.1-cp310-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.10 abi3 PyEmscripten 2026.0+ WebAssembly Details
refkit-0.2.1-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details
refkit-0.2.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size:10.2 MB

Release files / refkit-0.2.1.tar.gz

Download URL refkit-0.2.1.tar.gz
Size 92.1 kB
Tags Source
SHA-256 checksum
How to use checksums
92ac5dffdd0de13ce905ac6401da573476dbb623326333c4f3c3ab5a73ff3a66
BLAKE2b-256 checksum
How to use checksums
8bff527320dc6371df5b746920e9793414323a3fa85168ae24f67fbf6a02dcb9
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / refkit-0.2.1-cp310-abi3-win_amd64.whl

Download URL refkit-0.2.1-cp310-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
57689e2fa400340d125c5e19790dd6c8da26ed6f55240bdbefc9ea6738f8a986
BLAKE2b-256 checksum
How to use checksums
86d92e703e4679e4a8cd5580cbf2f702577b9a37e29efa4cca6721d3fc31f1c8
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / refkit-0.2.1-cp310-abi3-pyemscripten_2026_0_wasm32.whl

Download URL refkit-0.2.1-cp310-abi3-pyemscripten_2026_0_wasm32.whl
Size 2.0 MB
Tags CPython 3.10 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
d00c83f008bf80dc767691be670006c7eca608fe3fd9782f8219d296dcd537f6
BLAKE2b-256 checksum
How to use checksums
a59f9e8e5bc73ee9e993429d97c828fb39e54b70beeee263fa8590a11b2b8bcd
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / refkit-0.2.1-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL refkit-0.2.1-cp310-abi3-manylinux_2_34_x86_64.whl
Size 2.8 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
ab87ece7bbe938c8f9dfedcbc36af9d1e1fb6fc8f6d8b8009e92fa551b3863a1
BLAKE2b-256 checksum
How to use checksums
e895809593a85987aa6365cdd1df7ca0ecb66b5dbbfa275ada275e3df50fa110
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / refkit-0.2.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL refkit-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e8447534c6bda10420507b0935b2ad80a333f9726510d2860f62a805a6c16f34
BLAKE2b-256 checksum
How to use checksums
d7c1107a6e20213950b75f377b059cc6854fe7720fd5abacb1ca3562ae09ec29
Upload date
Uploaded using Trusted Publishing?
What is 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}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page