Skip to main content

pynakes

pynakes logo

PyPI Python CI License

pynakes is a reference management engine for BibTeX and BibLaTeX bibliographies and their research materials, exposed through a Python library and CLI.

Acquire and curate references, compare and enrich records, organize groups, track citations in manuscripts, and optionally manage PDFs and source bundles through Pinax, addressed by citation key. The .bib remains authoritative, and JabRef interoperability keeps existing libraries usable across tools.

Status: the engine is Beta. Its CLI, JSON envelope, and error codes follow the compatibility policy; the Python API is experimental until 1.0. The VS Code editor is an unpublished Alpha.

What it offers

  • Source preservation. Untouched entries write back byte-for-byte. Surgical edits keep diffs focused; whole-file formatting is an explicit operation.
  • Review before writing. Preview changes with --dry-run --diff. Writes are atomic and re-parse-validated, backups are optional, and ambiguous operations report conflicts rather than guessing.
  • Reference management. Import, search, lint, normalize, deduplicate, edit, convert, and export references. Track TeX citations and prepare scrubbed public copies without altering the working bibliography.
  • References and materials together. Pinax tracks PDFs, source bundles, and provenance. Materials can follow entries through citation-key changes and bibliography combine/split operations.
  • Research reads. Compare a set of papers through bounded, paged reads of their abstracts, materials, and recorded provenance; save selections as named queries; describe a bibliography's coverage with analyze; and map its co-author network with coauthors.
  • Automation. Structured JSON, change plans, exit codes, and machine-readable capabilities support scripts, CI, and agent workflows. Network access is explicit.

Install

Requires Python 3.12+ on Linux, macOS, or Windows. Install the published release with:

pip install pynakes

Or install the CLI as an isolated tool with uv:

uv tool install pynakes

For this development checkout and optional tooling, see the installation guide.

Quick start

This offline example creates a bibliography and previews an edit before applying it:

pynakes init refs.bib
pynakes ref add refs.bib Newton1687 --type book --field author="Isaac Newton" --field title="Principia" --field year=1687 --field publisher="Royal Society"
pynakes inspect refs.bib --json
pynakes ref edit refs.bib Newton1687 --field note="Reviewed" --dry-run --diff
# Apply after reviewing the diff:
pynakes ref edit refs.bib Newton1687 --field note="Reviewed"
pynakes search refs.bib Principia --json

When the current directory has exactly one .bib file, commands that take one bibliography can infer its path. Otherwise, provide the file explicitly. See the quick-start guide for imports, normalization, and other workflows.

The Python library uses the same staged lifecycle:

from pynakes import Bibliography, CanonicalLayout

bib = Bibliography.open("refs.bib")
bib.format(CanonicalLayout(field_order="preferred", wrap_values="stable"))
print(bib.diff())
# Commit after reviewing the diff:
bib.commit(backup=True)

See the API reference for preview(), change_plan(), and the other Bibliography operations.

VS Code editor

The editor companion provides a bibliography table, entry and metadata editing, groups, citation navigation, and material access using the same engine. It is a project-scoped editor, currently an unpublished alpha. Its user guide and build instructions are maintained separately.

Documentation

The planned Library and rebuildable Catalogue APIs extend this engine to collection-wide work; they are not implemented yet. See the vision and development plan. Release history is in the changelog.

Contributing and license

See CONTRIBUTING.md for development setup and checks. Licensed under MIT.

Named after the Pinakes, Callimachus’s catalogue of the Library of Alexandria. A .bib is the index card; a pinax is the card together with the shelf it points at.

Metadata

Release files for pynakes 0.9.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 pynakes 0.9.0
File Size Uploaded Provenance Actions
pynakes-0.9.0.tar.gz 1.9 MB With provenance Details for pynakes-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynakes 0.9.0
File Interpreter ABI Platform Actions
pynakes-0.9.0-py3-none-any.whl Python 3 none any Details for pynakes-0.9.0-py3-none-any.whl

Total release size: 3.6 MB

Release files / pynakes-0.9.0.tar.gz

Download URL pynakes-0.9.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
8a7517eb996e04c49c121a0cacc8d075e0397de1f825f791649fffb916f4ef46
BLAKE2b-256 checksum
How to use checksums
d8dcc6761da3d76bcdfca35dbd50e1f45f8a18855a9019574179b45dfa5a7b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / pynakes-0.9.0-py3-none-any.whl

Download URL pynakes-0.9.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e1f941984978538f1bb97e0a9d14de21e427efda6e3a0bb9cf2c663b11eeef50
BLAKE2b-256 checksum
How to use checksums
077b8da94bb45394ee596dc8fc0709a046237d8e68a6435ea3438af929565714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for pynakes 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pynakes-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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