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.11 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 · Upstream notices

Release files for refkit 0.1.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.1.0
File Size Uploaded
refkit-0.1.0.tar.gz 92.4 kB Details

Built distributions (wheels)

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

Total release size: 10.3 MB

Release files / refkit-0.1.0.tar.gz

Download URL refkit-0.1.0.tar.gz
Size 92.4 kB
Tags Source
SHA-256 checksum
How to use checksums
21956a258eaa8dc0f11391bcc637f95590c8871b02f252d3516766ea84d69deb
BLAKE2b-256 checksum
How to use checksums
54b96188b9006b3bfe79b473e6b911573d5e80b04e25bb1c8fefb403449aaf66
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.1.0-cp311-abi3-win_amd64.whl

Download URL refkit-0.1.0-cp311-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8817be90ed1253f5ecbe4a7444a6475cf4e5767e8d3228c3a256d6b47c94f719
BLAKE2b-256 checksum
How to use checksums
5b85919e9da2221dc23c70b1cca3c3d9f096364705ddebce8b076d9157096bb5
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.1.0-cp311-abi3-pyemscripten_2026_0_wasm32.whl

Download URL refkit-0.1.0-cp311-abi3-pyemscripten_2026_0_wasm32.whl
Size 2.0 MB
Tags CPython 3.11 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
3fc58d90b431a68bdd4e49f471d74a524601e3da680fadfd435a3b77319c5029
BLAKE2b-256 checksum
How to use checksums
b1accb89f3a0765ce1f1783bbf3f8393ab3baa38d247fdf9a3b48a89f250f9fc
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.1.0-cp311-abi3-manylinux_2_34_x86_64.whl

Download URL refkit-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl
Size 2.8 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
f90fac6da71856767eeb376e14a985e586e13bd33a7bfbd258f4e2a809f4b35c
BLAKE2b-256 checksum
How to use checksums
daf004adebceb268c75508e250cf0115283261896fb0bf45985813c17b031ca7
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.1.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL refkit-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d4207fbeca3c2562873c9c014f523189341e78f1805d9ecfe14ecb1ff4622d4d
BLAKE2b-256 checksum
How to use checksums
1e569ee3834eca60fe4add2f4a9b4d3f03ef694d13a2fd85f5969d72c868098c
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