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.3.0

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.3.0
File Size Uploaded
refkit-0.3.0.tar.gz 95.8 kB Details

Built distributions (wheels)

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

Total release size: 10.3 MB

Release files / refkit-0.3.0.tar.gz

Download URL refkit-0.3.0.tar.gz
Size 95.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26dab2b60513bcb2d3a3028154a5fcbd9ab88f5f7542f98ddd3ad44c7998539d
BLAKE2b-256 checksum
How to use checksums
48e4355e09b37b3c3a8fb7ecc26ce2acfc1ed02c0cb4b57389163da3f1b22be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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.3.0-cp310-abi3-win_amd64.whl

Download URL refkit-0.3.0-cp310-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6d6b5b1f71bcd65eb56b5000428a9c4a8aa8a9b1d60f7eb235346895d1d018e7
BLAKE2b-256 checksum
How to use checksums
785d68a2107b8b0c3b07bed7bca2dd2f6f7f5a9c1394a17d4074c9c72008fccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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.3.0-cp310-abi3-pyemscripten_2026_0_wasm32.whl

Download URL refkit-0.3.0-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
be069cc62925529df571c4329f8d62ad7f1139879f8b3f0345d0f7dcf3622bac
BLAKE2b-256 checksum
How to use checksums
c4c9b5a507863a3c2158327f5ff74ca0f58635a6b925259c87caded924da0d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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.3.0-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL refkit-0.3.0-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
57ef68fb7f88c657a417370459b1a35b8dc69a887c8db1e9ea1570229819ebbb
BLAKE2b-256 checksum
How to use checksums
532590ef6d68246af88a27952332ca0e735e3cc619ff26eea59a383869bdd583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL refkit-0.3.0-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
857eb7d2de841dc9718652fc7e2d9fd4418f45cfb662e54348d712d5dd5d13fe
BLAKE2b-256 checksum
How to use checksums
820ff4397845b523ce239e1230e2953bd25bc568a039226b687885aa5c75f972
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.11 {"installer":{"name":"uv","version":"0.12.11","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