Skip to content

chenlong-clock/paper2bib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🫧 Paper2Bib

Version Python License Web

Type a paper title. Get clean BibTeX. Keep your references organized.

Paper2Bib (paper2bib) is a Python package and CLI that searches DBLP from paper titles and returns clean BibTeX entries.

Language: English (this file) | 简体中文 README

Why Paper2Bib

  • Search DBLP directly from paper titles
  • Generate BibTeX ready to copy or export
  • Run batch conversion for large reading lists
  • Keep consistent key naming across your references
  • Use the same core engine from Web, CLI, Python, and HTTP API

Installation

pip install paper2bib

CLI Usage

Single title:

paper2bib "Attention Is All You Need"

Batch mode:

paper2bib --file titles.txt --preference venueFirst --output refs.bib

Web UI

Open the static pages directly:

Open Chinese Webpage Open English Webpage

Paper2Bib Web UI Chinese Paper2Bib Web UI English

Self-hosted local run:

  1. Start backend API:
uvicorn dblp_bib.api:app --reload
  1. Serve static frontend from repository root:
python3 -m http.server 8000
  1. Open in browser:
http://localhost:8000/docs/

Python Usage

from dblp_bib import search_bibtex, batch_search_bibtex

single = search_bibtex("Attention Is All You Need", preference="venueFirst")
batch = batch_search_bibtex([
    "Attention Is All You Need",
    "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding",
], preference="venueFirst")

HTTP API

uvicorn dblp_bib.api:app --reload
curl http://127.0.0.1:8000/health

Project Layout

docs/         Web frontend (self-hosted static files)
dblp_bib/     Python package, CLI, FastAPI
pyproject.toml
setup.py

Acknowledgement

  • If this project is useful to you, please give it a Star.
  • New feature ideas and pull requests are welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages