Skip to main content

Manage BibTeX libraries from the terminal

Project description

antilibrary

Manage a BibTeX file from the terminal.

Install

pip install antilibrary
# or
uv tool install antilibrary

Usage

Antilibrary operates on a single .bib file resolved in this order:

  1. -f / --file FILE argument
  2. $ANTILIBRARY_BIB environment variable
export ANTILIBRARY_BIB=~/refs/main.bib

antilibrary add                          # interactively add an entry
antilibrary get smith2024                # print citation for a key
antilibrary browse                       # list entries
antilibrary browse -q "attention"        # fuzzy search
antilibrary browse -t "nlp,transformers" # filter by tags
antilibrary remove smith2024             # delete an entry

Citation styles

antilibrary get KEY --style {bibtex|bibtex-full|latex|org-cite|pandoc} prints a citation in the requested format:

style output
bibtex smith2024
bibtex-full the whole entry
latex \cite{smith2024}
org-cite [cite:@smith2024]
pandoc [@smith2024]

Adding entries

antilibrary add is interactive — it prompts for type, title, author, year, key, and any extra fields. Adding an entry that matches an existing one (by DOI, arXiv ID, ISBN, or normalized title+author) silently fills any empty fields on the existing entry rather than creating a duplicate. Pass --no-merge to skip on duplicate, or --force to append anyway with an auto-suffixed key.

Companion tools (planned):

  • bibzapper — batch extraction from PDFs, EPUBs, URLs, DOIs, arXiv IDs, or ISBNs into a .bib file.
  • bibsearcher — online search (movies, TV, music, papers, books) → BibTeX.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antilibrary-0.1.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antilibrary-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file antilibrary-0.1.0.tar.gz.

File metadata

  • Download URL: antilibrary-0.1.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for antilibrary-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff7e72032b946cc3daab0d23e10c2969dda211bff16070ced38026e2bc97e575
MD5 d1f3982bf07222d78f6181ee6ac06c98
BLAKE2b-256 b3b8b80246bd833f9937f4ac338ea7b457e0af2ba09c29da51750178b55f3a3c

See more details on using hashes here.

File details

Details for the file antilibrary-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: antilibrary-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for antilibrary-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cac1143d3ab6e13424335e557fce219ed176f6cae365775dc42d8b10afa67b61
MD5 fd3a14b4a0a06cfdebc1e1e59030e0a2
BLAKE2b-256 e61836021ed67d908b0b03c62a9fabdd1eccf5824afafa44535765d59edeb66d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page