Skip to main content

A simple command line tool for bibliography management

Project description

biblibrary : a command line tool for managing references

This is a simple command line tool for managing references (e.g. like a very primitive Mendeley) that builds up a bibtex file (at ~/.biblib.bib). You can then search it or get ones with particular tags, and output the whole thing or a subset to tex file or pdf. Please bear in mind that this project is in its very early stages.

Install

pip install git+https://github.com/jagoosw/biblibrary

Usage

Type biblib --help for command line help. As an example you could add this article by:

biblib add --title "Scenarios towards limiting global mean temperature increase below 1.5 °C" --year 2018 --journal Nature --author "Rogelj, J. Popp, A. Calvin, K.V. et al"

Which would give:

You have not entered: label, type
0 )  label
1 )  type
Which [0 to 1]?

So we will enter 0:

label: rogelj2018
type: article
Would you like to add anymore fields [bool]?y
0 )  tags
1 )  address
2 )  annotate
3 )  booktitle
4 )  chapter
5 )  crossref
6 )  edition
7 )  editor
8 )  howpublished
9 )  institution
10 )  key
11 )  month
12 )  note
13 )  number
14 )  organization
15 )  pages
16 )  publisher
17 )  school
18 )  series
19 )  volume
20 )  doi
Which [0 to 20]? 0
tags: climate change,climate,1.5degrees,warming,ssp
Are you sure [bool]?y
Would you like to add anymore fields [bool]?y
...
Which [0 to 20]? 20
doi: https://doi.org/10.1038/s41558-018-0091-3
Are you sure [bool]?y
Would you like to add anymore fields [bool]?n
You have entered:
    title: Scenarios towards limiting global mean temperature increase below 1.5 °C
    year: 2018
    journal: Nature
    author: Rogelj, J. et al
    note: sounds bad 
    type: article
    doi: https://doi.org/10.1038/s41558-018-0091-3
    tags: climate change,climate,1.5degrees,warming,ssp
    label: rogelj2018
Is this correct [bool]?y

Now we might want to see what's in out bibliography:

biblib show
@article{rogelj2018,
    author = "Rogelj, J. et al",
    title = "Scenarios towards limiting global mean temperature increase below 1.5 °C",
    year = "2018",
    journal = "Nature",
    doi = "https://doi.org/10.1038/s41558-018-0091-3",
    tags = "climate change,climate,1.5degrees,warming,ssp"
}

Or output it to a pdf (see examples folder):

biblib show --compile true --stdout false

Or just to a bibtex file, show it on screen, and only output ones with the tags "climate change,ssp" (or):

biblib show --tags "climate change,ssp" --bibtex true
...

Thanks

Special thanks to pybtex so I didn't have to make a bibtex handler, and to click for hugely simplifying the command line tool aspect.

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

biblibrary-1.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

biblibrary-1.0.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file biblibrary-1.0.0.tar.gz.

File metadata

  • Download URL: biblibrary-1.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for biblibrary-1.0.0.tar.gz
Algorithm Hash digest
SHA256 150c25deea356ddb7617b4a52a96222e1405567fc71aa6db2a651253c501e24c
MD5 771cd3bc7a718301dac56cac979e9809
BLAKE2b-256 a50b6f96e49c2e439f106b43a66479a3cb9a8773c18be47cb6ad46eb51457646

See more details on using hashes here.

File details

Details for the file biblibrary-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: biblibrary-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for biblibrary-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd012b663a01a97e34d320b5c82af46e72689d1239f4141261d9816a48b08b07
MD5 a0efd04761682d81604a5444cdec6f79
BLAKE2b-256 bbe2e3afe4c0f4709b3a15c27934df49dab4fc0a1f1f4b9e62bc58f5fd1caeea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page