papers-cli
utilitários para manter sua biblioteca de PDF organizada
Downloads & Adoção na Comunidade
Análise de Saúde & Engenharia (5 Pilares)
1. Governança & Comunidade50 / 200 ▾
2. Metadados & Empacotamento PEP150 / 200 ▾
3. Segurança & Supply Chain200 / 200 ▾
4. Documentação, SEO & Ecossistema155 / 200 ▾
5. Engenharia, CI & Qualidade130 / 200 ▾
Documentação Oficial & Guia de Uso — papers-cli
Exibir documentação original completa (README em Inglês) ▾
papers
Command-line tool to manage your bibliography (PDFs + BibTeX).
papers keeps a BibTeX file for each of your projects, and the PDFs that
go with it. Give it a PDF: it reads the DOI, fetches the entry from
crossref, renames the PDF after the entry and adds both to your project.
A project can use another library as its pool, and take its entries and
PDFs from there, so that each PDF is stored and fetched once.
It works like git: one papers command with subcommands, run inside a
project folder.
- Add papers from PDFs, DOIs, bibtex, RIS, CSL-JSON or BibJSON files, or whole folders. The DOI is read from the PDF, and the metadata comes from crossref (by DOI or full-text search), doi.org, google scholar or OpenAlex.
- Name the PDFs with a template (
{authorX}_{year}_{title}by default), and attach supplements to an entry. - Share entries and PDFs between projects: a shallow project uses
another library as its pool, takes its entries from there and links to
its PDFs; any library can also exchange entries with another one
(
--pool PATH).papers pull,pushandsyncexchange the entries with a field-by-field three-way merge; each project keeps its own keys. - Search and act on a library with
papers list(tag, edit, delete, rename, fetch, deduplicate), in the style offindandgrep. - Detect duplicates by DOI, arXiv identifier, ISBN, or authors and title, and merge them.
- Export a selection as a library with copies of its PDFs, or as RIS and CSL-JSON (for Zotero, EndNote, pandoc) or BibJSON (for programs).
- Plain files: the bibtex is the database, the PDFs stay in folders you see, and the library can be edited with any tool.
- Undo anything: every command is a step of the library's history,
kept on your computer;
papers undo/papers redotake back any command, with the files it moved, renamed or deleted, and a change made outside papers is never lost. - Fast on large libraries: the parsed bibtex is cached piece by piece,
and
papers statuscompares a project with its pool only where they changed.
Example
A project with its own PDFs, and a second project that uses it as pool:
$ cd ~/projects/sealevel
$ papers init
created the library ~/projects/sealevel
* bibtex: papers.bib
* files: files (the files directory of the library)
`papers config` lists and sets the settings
$ papers add ~/Downloads/esd-4-11-2013.pdf
Added -> perrette_landerer2013: A scaling approach to project regional sea level rise and it... (doi:10.5194/esd-4-11-2013, file:1)
$ cd ~/projects/tides
$ papers init --pool ../sealevel
created the library ~/projects/tides
* bibtex: papers.bib
* files: in the pool (shallow library)
* pool: ../sealevel
`papers config` lists and sets the settings
$ papers add --doi 10.5194/esd-4-11-2013
Added -> perrette_landerer2013: A scaling approach to project regional sea level rise and it... (doi:10.5194/esd-4-11-2013, file:1) [from pool ../sealevel]
$ papers add ~/Downloads/bg-8-515-2011.pdf
Added -> perrette_yool2011: Near-ubiquity of ice-edge blooms in the Arctic (doi:10.5194/bg-8-515-2011, file:1) [also added to pool ../sealevel]
$ grep "file =" papers.bib
file = {:../sealevel/files/perrette_et_al_2013_a-scaling-approach-to-project-regional-sea-level-rise-and-its-uncertainties.pdf:pdf},
file = {:../sealevel/files/perrette_et_al_2011_near-ubiquity-of-ice-edge-blooms-in-the-arctic.pdf:pdf},
The second project took the first entry and its PDF from the pool: no
request to crossref, and no second copy of the PDF. The paper it added is
in the pool too. papers sync later exchanges the changes made in either
project. A library kept for sharing, such as ~/Documents/papers, can be
the pool of all projects (papers init --shallow, see
A global shared library).
Documentation
Full documentation: https://perrette.github.io/papers/
- Installation (incl. external dependencies)
- Quickstart: a self-contained project, and a shallow project that uses it
- Upgrading from papers 2
- Adding entries
- Listing and searching
- Pools, shallow libraries, a global shared library
- Configuration
- Also: files, renaming files and keys, managing your library, export, git integration, undo/redo
papers --help and papers <command> --help describe every command and
option.
Install
pip install papers-cli
papers 2 (the previous major version), for a library that must stay readable by papers 2:
pip install "papers-cli<3"
The package is called papers-cli because another project is registered
on PyPI as papers; the command is papers. Python 3.11 or later is
needed. See the
installation page for
external dependencies.
The project is developed by one person and is still evolving: bug reports and contributions are welcome.
From the same author
A few other open-source tools I maintain.
Scientific writing & data
- texmark — write scientific articles in Markdown and convert them to journal-ready LaTeX/PDF.
- datamanifest — declarative, reproducible dataset management. (See also the datamanifest.toml format spec and the DataManifest.jl Julia port.)
Speech to Text (dictate) and Text to Speech (read-aloud) tools