Skip to main content

Command line tool to manage references.

Project description

Zoia

zoia is a utility to organize your library of academic papers.

Organization

zoia uses a simple, flat layout to organize data. Every paper is referenced by a unique citation key (typically shortened to "citekey"). This would be the same key that you would reference with citep or citet in LaTeX. Bibliographic data is stored in a file called .metadata.json.

Each paper also gets its own subdirectory in the root directory. Within each subdirectory the document (if it exists) is stored as document.pdf. Any notes associated with the document are stored as notes.md. However, zoia imposes no additional structure on the layout. If you would like to add additional files for a paper (e.g., supplementary data, code, or text), you are free to do so.

A sample directory structure might look like this:

my_library
         ├── einstein05-electrodynamics
         │   ├── document.pdf
         │   └── notes.md
         └── .metadata.json

Citation key style

zoia generates citekeys by taking the last names of the first three authors on the paper and joining them by +, (with a trailing + if there are more than three authors), followed by the last two digits of the publication year, followed by a hyphen, followed by the first word of the title (excluding common words like "the", "a", "on", etc.).

Examples

Author(s) Title Year Citation key
Einstein, A. On the electrodynamics of moving bodies 1905 einstein05-electrodynamics
Einstein, A., and Rosen, N. The particle problem in the general theory of relativity 1935 einstein+rosen35-particle
Einstein, A., Podolsky, B., and Rosen, N. Can quantum-mechanical description of physical reality be considered complete? 1935 einstein+podolsky+rosen35-can
Abbott, B. P., et al. Observation of Gravitational Waves from a Binary Black Hole Merger 2016 abbott+16-obseravtion

Collisions

Inevitably you will one day try to add two different papers which have the same auto-generated citation keys. The default style makes this rare, but does not guarantee that it will never happen. When it does, zoia will add the character b after the year. For example, suppose a less well known physicist named Egbert Einstein had written another, somewhat less revolutionary, paper in 1905 called "On the electrodynamics of stationary bodies" and you tried to add it, it would get a citekey of einstein05b-electrodynamics. If the citekey with the b already exists, zoia will try adding a c, and then a d, etc. all the way up to z. If that's still not good enough it will continue with aa, ab, etc., though for your sake pray that things never come to that.

Note that the first paper will retain its original citekey --- it won't get an a added to it. This is because you may have been using that old citekey in your papers. Changing the citekey would break that link.

Configuration

zoia follows the XDG standard and stores its configuration data in $XDG_CONFIG_HOME/zoia if the XDG_CONFIG_HOME environment variable is set. If it is not set it uses the standard default of $HOME/.config/zoia. Whatever the directory, zoia keeps its configuration data in file called config.yaml.

Usage

Initialization

After you have installed zoia you can initialize your library by running:

zoia init [directory]

This will tell zoia that your library is going to be stored in the provided directory. (Note that this directory must be empty.) If you don't provide a directory, zoia will store your library in your current working directory if it is empty. If it isn't empty, it will try creating a subdirectory named zoia and will store your library there (assuming that that subdirectory doesn't already exist).

Adding a paper

Once you have initialized your library, you can add papers to it using their arXiv ID:

zoia add 1001.0001

It's also fine if you have the prefix arxiv:1001.0001.

zoia will add the paper's metadata to the .metadata.json file and download the PDF.

In the future zoia will support adding papers by their DOI, books by their ISBN, and PDFs directly.

Opening a paper

You can open the PDF of a paper in your library from its citekey by running:

zoia open <citekey>

This will open the PDF using your default PDF viewer. In the future it will be possible to also open the PDF based on the arXiv ID, DOI, or ISBN.

Taking notes on a paper

zoia keeps your notes for a paper in a Markdown file called notes.md in that paper's subdirectory. You can edit that file in your default editor by running:

zoia note <citekey>

About the name

zoia is named in honor of the librarian Zoia Horn who spent her life fighting for intellectual and academic freedom.

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

zoia-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

zoia-0.1.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file zoia-0.1.0.tar.gz.

File metadata

  • Download URL: zoia-0.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for zoia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1b68f1662a2578668f89ade9eaaf0206206a7262641815bbe706485949d80e2
MD5 a9870ab43adfb0da15fe3f801da99968
BLAKE2b-256 fbaf751aae3cc1994b71829b9f030c49b3883dfe7fdb08de30f817a3cb60390c

See more details on using hashes here.

File details

Details for the file zoia-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zoia-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for zoia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c64b2a1bca6883e3c1e37805af4c23a815177b1427a75a12cef49dace75b2b85
MD5 afb921167204b5497b38b90cbfad7640
BLAKE2b-256 f86619154a9c5297293ac55326fa4a4c6c98389a23993373e0e8d6abba7bda2a

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