All Projects → pubs → Pubs

pubs / Pubs

Licence: lgpl-3.0
Your bibliography on the command line

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pubs

Gscholar
Query Google Scholar with Python
Stars: ✭ 209 (+18.75%)
Mutual labels:  cli, bibtex, pdf
Tucl
The first-ever paper on the Unix shell written by Ken Thompson in 1976 scanned, transcribed, and redistributed with permission
Stars: ✭ 303 (+72.16%)
Mutual labels:  paper, pdf
Percollate
A command-line tool to turn web pages into beautiful, readable PDF, EPUB, or HTML docs.
Stars: ✭ 3,535 (+1908.52%)
Mutual labels:  cli, pdf
Papis
Powerful and highly extensible command-line based document and bibliography manager.
Stars: ✭ 636 (+261.36%)
Mutual labels:  cli, bibtex
Universal Resume
Minimal and formal résumé (CV) website template for print, mobile, and desktop. https://bit.ly/ur_demo
Stars: ✭ 1,349 (+666.48%)
Mutual labels:  paper, pdf
Backslide
💦 CLI tool for making HTML presentations with Remark.js using Markdown
Stars: ✭ 679 (+285.8%)
Mutual labels:  cli, pdf
Md To Pdf
Hackable CLI tool for converting Markdown files to PDF using Node.js and headless Chrome.
Stars: ✭ 374 (+112.5%)
Mutual labels:  cli, pdf
Hugo Academic Cli
📚 Import academic publications from Bibtex to Hugo
Stars: ✭ 158 (-10.23%)
Mutual labels:  cli, bibtex
Docker Texlive
A docker container containing an installation of texlive as well as several useful scripts.
Stars: ✭ 52 (-70.45%)
Mutual labels:  bibtex, pdf
Pdfsave
Convert websites into readable PDFs
Stars: ✭ 46 (-73.86%)
Mutual labels:  cli, pdf
Go Audio
An offline solution to convert pdfs into audiobooks
Stars: ✭ 153 (-13.07%)
Mutual labels:  cli, pdf
Chrome Headless Render Pdf
Stars: ✭ 164 (-6.82%)
Mutual labels:  cli, pdf
Firessh
free, cross-platform SSH terminal client for Firefox and Chrome
Stars: ✭ 173 (-1.7%)
Mutual labels:  cli
Live Stream Radio
24/7 live stream video radio station CLI / API 📹 📻
Stars: ✭ 175 (-0.57%)
Mutual labels:  cli
Tably
Python command-line script for converting .csv data to LaTeX tables
Stars: ✭ 173 (-1.7%)
Mutual labels:  cli
Mandown
man-page inspired Markdown viewer
Stars: ✭ 173 (-1.7%)
Mutual labels:  cli
Pdf Viewer
A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.
Stars: ✭ 175 (-0.57%)
Mutual labels:  pdf
Whitepaper
免费分享区块链白皮书,涉及各门各派。内容均来自互联网,如果侵权,请联系删除。 区块链白皮书 weixin:mipengchong
Stars: ✭ 175 (-0.57%)
Mutual labels:  paper
Discordrpcmaker
Cross-platform Discord Rich Presence Maker, WITH BUTTONS!
Stars: ✭ 165 (-6.25%)
Mutual labels:  cli
Thinreports Editor
Report Designer for Thinreports
Stars: ✭ 172 (-2.27%)
Mutual labels:  pdf

Pubs

Pubs brings your bibliography to the command line.

Pubs organizes your scientific papers together with their bibliographic data and provides command line access to basic and advanced manipulation of your library.

Pubs is built with the following principles in mind:

  • all papers are referenced using unique citation keys,
  • bibliographic data—bibtex information—is kept separated from metadata such as links to pdf or tags.
  • everything is stored in plain text so it can be manually edited or version controlled.

Pubs is currently being maintained, rather than developed aggressively. We add small features, correct bugs, but have no short-term plans to add major features to it. Pubs does most of what it is supposed to do: help us do science, so now we are mostly doing that.

Notice: pubs is relatively stable but comes with no warranty; do keep backups of your data. Notice: pubs currently works with Python 2.7, but support is being dropped (tests are not run anymore).

Installation

You can install the latest stable version of pubs through Pypi, with:

pip install pubs

Alternatively, you can:

  • install the latest development version with pip:

    pip install --upgrade git+https://github.com/pubs/pubs
    
  • clone the repository and install it manually:

    git clone https://github.com/pubs/pubs
    cd pubs
    python setup.py install [--user]
    

Arch Linux users can also use the pubs-git AUR package.

Getting started

Create your library (by default, goes to ~/.pubs/).

pubs init

Import existing data from bibtex (pubs will try to automatically copy documents defined as 'file' in bibtex):

pubs import path/to/collection.bib

or for a .bib file containing a single reference:

pubs add reference.bib -d article.pdf

pubs can also automatically retrieve the bibtex from a doi:

pubs add -D 10.1007/s00422-012-0514-6 -d article.pdf

or an ISBN (dashes are ignored):

pubs add -I 978-0822324669 -d article.pdf

or an arXiv id (automatically downloading arXiv article is in the works):

pubs add -X math/9501234 -d article.pdf

References always up-to-date

If you use latex, you can automatize references, by running pubs export > references.bib each time you update your library, which also fits well as a makefile rule.

This ensures that your reference file is always up-to-date; you can cite a paper in your manuscript a soon as you add it in pubs. This means that if you have, for instance, a DOI on a webpage, you only need to do:

pubs add -D 10.1007/s00422-012-0514-6

and then add \cite{Loeb_2012} in your manuscript. After exporting the bibliography, the citation will correctly appear in your compiled pdf.

Document management

You can attach a document to a reference:

pubs doc add Loeb2012_downloaded.pdf Loeb_2012

And open your documents automatically from the command line:

pubs doc open Loeb_2012
pubs doc open --with lp Loeb_2012  # Opens the document with `lp` to actually print it.

Versioning

Pubs comes with a git plugin that automatically commits your changes. You only need to activate it in your configuration:

[plugins]
active = git,

You can then also conveniently interact with the git repository by using pubs git <regular git commands>.

Multiple pubs Repositories

You may want to have different pubs repositories, for different projects. To create an alternate repository:

pubs --config /path/to/config init --pubsdir /path/to/desired_repository_directory

The configuration file and repository will be automatically created.

Then you can add papers to the new repository:

pubs --config /path/to/config add -D 10.1007/s00422-012-0514-6

A useful thing might be to define an alias in your shell:

alias pubs2="pubs --config /path/to/config"

and then use pubs2 as you would use pubs directly. Note that you cannot use the alias plugin below to do this.

Customization

Pubs is designed to interact well with your command line tool chain. You can add custom commands to pubs by defining aliases in your configuration file (make sure that the alias plugin is activated in your configuration by using pubs conf).

[[alias]]
evince = open --with evince
count = !pubs list -k "[email protected]" | wc -l

The first configuration line defines a new subcommand: pubs open --with evince will be executed when pubs evince is typed. The second starts with a bang: !, which means that it is treated as a shell command. If other arguments are provided they are passed to the shell command as in a script. In the example above the count alias can take arguments that are passed over to the pubs list -k command, hence enabling filters like pubs count year:2012.

Autocompletion

For autocompletion to work, you need the argcomplete Python package, and Bash 4.2 or newer. For activating bash or tsch completion, consult the argcomplete documentation.

For zsh completion, the global activation is not supported but bash completion compatibility can be used for pubs. For that, add the following to your .zshrc:

# Enable and load bashcompinit
autoload -Uz compinit bashcompinit
compinit
bashcompinit
# Argcomplete explicit registration for pubs
eval "$(register-python-argcomplete pubs)"

Need more help ?

You can access the self-documented configuration by using pubs conf, and all the commands' help is available with the --help option. Did not find an answer to your question? Drop us an issue. We may not answer right away (science comes first!) but we'll eventually look into it.

Authors

Creators

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].