Metadata-Version: 2.1
Name: bibtex-dblp
Version: 0.9
Summary: Create and revise bibtex entries from DBLP.
Home-page: https://github.com/volkm/bibtex-dblp
Author: M. Volk
Author-email: m.volk@utwente.nl
Maintainer: M. Volk
Maintainer-email: m.volk@utwente.nl
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE

# bibtex-dblp
[![Build Status](https://github.com/volkm/bibtex-dblp/workflows/Build%20and%20Test/badge.svg)](https://github.com/volkm/bibtex-dblp/actions)
[![GitHub release](https://img.shields.io/github/release/volkm/bibtex-dblp.svg)](https://github.com/volkm/bibtex-dblp/releases/)
[![PyPi](https://img.shields.io/pypi/v/bibtex-dblp)](https://pypi.org/project/bibtex-dblp/)

Create and revise bibtex entries from [DBLP](https://dblp.uni-trier.de/).

## Dependencies
- uses [pybtex](https://pybtex.org/)
- inspired from [dblp-python](https://github.com/scholrly/dblp-python)

## Installation
The package can be installed from [PyPI](https://pypi.org/) with:
```
pip install bibtex-dblp
```

Manual installation is possible by cloning this repository and building the Python package:
```
python setup.py develop
```


## 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:
```
convert_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.


## 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
