Skip to main content

Create and revise bibtex entries from DBLP.

Project description

bibtex-dblp

Build Status GitHub release PyPi

Create and revise bibtex entries from DBLP.

Dependencies

Installation

The package can be installed from PyPI with:

pip install bibtex-dblp

Manual installation is possible by cloning this repository and building the Python package:

pip install .

Usage

All relevant scripts can be found in the bin directory. Every script provides information about the expected input and additional arguments via --help.

Importing new publications from DBLP

The script bin/import_dblp.py searches for a new publication on DBLP and adds the corresponding bibtex entry to the bibliography.

Usage:

import_dblp [--query QUERY] [--bib BIBTEX] [--format FORMAT]

If the argument --query is not given, the search keywords can be given directly in the terminal. The script then queries the DBLP API and displays the possible matches. The correct publication number can be selected in the terminal (or 0 for abort). The bibtex entry of the selected publication is either appended to the given bibliography (if --bib is provided) or displayed on the terminal.

Converting between DBLP formats

The script bin/convert_dblp.py converts the complete bibliography between different DBLP formats.

Usage:

convert_dblp INPUT_BIB [--out OUTPUT_BIB] [--format FORMAT]

All bibtex entries with either the field biburl given or a bibtex name corresponding to a DBLP id are automatically converted into the desired format. All other entries are left unchanged.

Updating existing bibliography from DBLP

The script bin/update_from_dblp.py updates the entries in an existing bibliography by looking up the information from DBLP.

Usage:

update_from_dblp INPUT_BIB [--out OUTPUT_BIB] [--format FORMAT]

For each bibtex entry without a DBLP id, the scripts searches DBLP for a possible match. The user can select the correct entry from a list of possible matches and the bibliography is updated accordingly. Bibtex entries which already have a DBLP id are left unchanged.

Modifying bibliography

The script bin/modify_bibtex.py allows apply some modifications on the bibtex file:

  • --no-escape removes the escape characters in front of underscores for fields url and doi. So \_ becomes _. Note that this requires the packages such as hyperref in LaTeX to properly compile.
  • --no-timestamp, --no-biburl and --no-bibsource can be added to remove the corresponding fields timestamp, biburl and bibsource, respectively, from the bibtex file.

Supported DBLP formats

The following bibtex formats from DBLP are currently supported:

  • condensed: Condensed format where e.g. journals and conferences are abbreviated. Default value.
  • standard: Default format from DBLP.
  • crossref: Extensive format in which conferences have their own bibtex entry
  • condensed_doi: Corresponds to condensed but additionally includes the DOI

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

bibtex_dblp-1.0.1.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

bibtex_dblp-1.0.1-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file bibtex_dblp-1.0.1.tar.gz.

File metadata

  • Download URL: bibtex_dblp-1.0.1.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bibtex_dblp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 314bf717693b4ccf1513a63b29dda50d849bae535c0f1ce838924d2612598a11
MD5 95d890a07b7223eab7b9568517ae5285
BLAKE2b-256 7110711ef8124be489783939c0c1ab732438d6313b2a6e3aacbb86481d3025c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for bibtex_dblp-1.0.1.tar.gz:

Publisher: release.yml on volkm/bibtex-dblp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bibtex_dblp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: bibtex_dblp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bibtex_dblp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d374464d30296f63864a4c14b469531fb00f4288d9089bb2ce7922c2cf27cf
MD5 6d6120581b942279e5f9b96cb70b88fd
BLAKE2b-256 cf2a64ce19db4d00e405da8f28f860701618d56d5d1b0fa7a838222dd3ea0c38

See more details on using hashes here.

Provenance

The following attestation bundles were made for bibtex_dblp-1.0.1-py3-none-any.whl:

Publisher: release.yml on volkm/bibtex-dblp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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