Skip to main content

Lightkone CLI

The command line and Python package for Lightkone, the web reference manager. It works on the same library as the web app: the plain files in your Cloudflare R2 / S3 bucket, your GitHub repository, or a folder on disk. Search, add, tag, file, annotate, export BibTeX and draw the citation map from the terminal, a script or a notebook.

pipx install lightkone               # or: pip install lightkone
lightkone login --from-backup lightkone-settings.json   # Lightkone: Settings → Backup → Export settings
lightkone ls author:hinton year:2010-2015
lightkone add 2106.09685 10.1103/PhysRevLett.116.061102 -t lensing -f Physics/GR
lightkone export in:Thesis -o thesis.bib
lightkone map in:Thesis --open        # which of your papers cite which
lightkone open Hinton2012-in -p 3     # read it in the web app, at page 3

Extras: lightkone[data] (pandas DataFrames), lightkone[graph] (networkx, GraphML and GEXF), lightkone[crypto] (encrypted settings backups), or lightkone[all].

The full guide is at https://lightkone.lab.kausalflow.com/docs/cli.html (docs/CLI.md in the repository).

Working on it

cd cli
pip install -e ".[dev]"
pytest

tests/data/golden.json holds what Lightkone's TypeScript code produces for the same inputs (BibTeX parsing, citation keys, library.json and library.bib text, search, merging, filing, the citation graph). It is written by tests/cli-golden.test.ts in the app's tests, and npm run check fails when the app's output no longer matches it. After changing one of those formats in the app, run UPDATE_GOLDEN=1 npx vitest run tests/cli-golden.test.ts and make the Python side pass pytest again.

License

Apache-2.0 (see the LICENSE and NOTICE files that come with it). The Lightkone web app in the rest of this repository is under AGPL-3.0.

Metadata

Release files for lightkone 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 lightkone 0.1.0
File Size Uploaded Provenance Actions
lightkone-0.1.0.tar.gz 49.6 kB With provenance Details for lightkone-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 96.7 kB

Release files / lightkone-0.1.0.tar.gz

Download URL lightkone-0.1.0.tar.gz
Size 49.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ea162be0867e610326537420b8d37284519f318b4ac8dc66affef43838672e4f
BLAKE2b-256 checksum
How to use checksums
275a63f1c8a5f98190969767c7872527aa6ff395d7f948debb83e24bd3708709
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 10, 2026.

Transparency log

Release files / lightkone-0.1.0-py3-none-any.whl

Download URL lightkone-0.1.0-py3-none-any.whl
Size 47.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72cea32599a31bd00d9f8516fe4c2d259f5a21aee02c8af9f15089009dac373b
BLAKE2b-256 checksum
How to use checksums
1732c95f07285c66467825e220fad2ed5851d1e1e081b79da721b80e8c667a10
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 10, 2026.

Transparency log

Security for lightkone 0.1.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 lightkone-0.1.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 10, 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