Skip to main content

A small command-line tool for generating a BibLaTeX file from a bunch of pdf using their DOI and Crossref.

Project description

pdf2biblatex

PyPI - Version PyPI - Python Version


pdf2biblatex is a small command-line tool for generating a BibLaTeX file from a bunch of pdf using their DOI and Crossref.

Installation

The default way of installing is by using pip :

pip install pdf2biblatex

But I recommand using pipx to not burden your system with package dependencies (pdf2biblatex requires PyMuPDF and requests), pipx putting them in a dedicated virtual environment. Installation is similar to pip :

pipx install pdf2biblatex

Otherwise, your prefered method for dealing with python package likely works.

Usage

pdf2biblatex takes a directory filled with pdf as primary input, you might need to put in a dedicated folder all those you want to use in the generation of the BibLaTeX file.

From there, typical use is :

pdf2biblatex -d path/to/directory

or

cd path/to/directory
pdf2biblatex -d

-d (or --directory) will look into the selected folder and scan the five first pages and the metadata of any pdf for a DOI. If no DOI is found or is invalid, an error indicate the associated file. Then, a BibLaTeX file is generated for all valid DOI using the Crossref API.

After this, you might want to run :

pdf2biblatex -a DOI_1 DOI_2 ...

-a (or --add-doi) will take any given DOI and generate the corresponding BibLaTeX entry in an existing BibLaTeX file or create a new one if none is detected.

Be careful if you run --directory again after using --add-doi, the former will write over the bibliography file you might have completed with the latter.

There is also a third argument -b (or --bib-file), whom you can use to change the name used for the BibLaTeX file.

For more details, you can use pdf2biblatex --help or look directly into the code at src/pdf2biblatex/pdf2biblatex.py.

License

pdf2biblatex is distributed under the terms of the GPL-3.0-or-later license.

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

pdf2biblatex-1.1.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

pdf2biblatex-1.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file pdf2biblatex-1.1.0.tar.gz.

File metadata

  • Download URL: pdf2biblatex-1.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"n/a","libc":{"lib":"glibc","version":"2.43"},"name":"Arch Linux","version":"rolling"},"implementation":{"name":"CPython","version":"3.14.6"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.3 9 Jun 2026","python":"3.14.6","system":{"name":"Linux","release":"7.1.3-arch2-2"}} HTTPX2/2.3.0

File hashes

Hashes for pdf2biblatex-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1207e48e70b2f9dc73cd3a0c914e98df3b6754a5a43e15ecdb08e56d2ac442c8
MD5 d519975bcf0eb43bcbc1433b5035c95e
BLAKE2b-256 8e62d08f436b854d56ea9a18392014c082ed568f588e3b87b50303cdcd809fcc

See more details on using hashes here.

File details

Details for the file pdf2biblatex-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdf2biblatex-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.0 {"ci":null,"cpu":"x86_64","distro":{"id":"n/a","libc":{"lib":"glibc","version":"2.43"},"name":"Arch Linux","version":"rolling"},"implementation":{"name":"CPython","version":"3.14.6"},"installer":{"name":"hatch","version":"1.17.0"},"openssl_version":"OpenSSL 3.6.3 9 Jun 2026","python":"3.14.6","system":{"name":"Linux","release":"7.1.3-arch2-2"}} HTTPX2/2.3.0

File hashes

Hashes for pdf2biblatex-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa32e4ed235999bd9ec4bca775438edd88cfdc38a0ad4486137c156feb68f233
MD5 cc87bc9308932e96ceb8d0e3114e2242
BLAKE2b-256 ebf08035f558291004f10639ec3f0f33f384bdc7ab2b8f9a87a17faa3757aa05

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