Metadata-Version: 2.1
Name: bibo
Version: 0.0.14
Summary: A reference manager with single source of truth: the .bib file. Inspired by beets
Home-page: https://github.com/Nagasaki45/bibo
Author: Tom Gurion
Author-email: nagasaki45@gmail.com
License: UNKNOWN
Description: Bibo
        ####
        
        .. image:: https://travis-ci.org/Nagasaki45/bibo.svg?branch=master
            :target: https://travis-ci.org/Nagasaki45/bibo
        
        .. image:: https://codecov.io/gh/Nagasaki45/bibo/branch/master/graph/badge.svg
          :target: https://codecov.io/gh/Nagasaki45/bibo
        
        
        A reference manager with a single source of truth: the ``.bib`` file. Inspired by `beets`_.
        
        
        Why?
        ----
        
        There are many reference managers out there, so why writing another one? Bibo is different for a few reasons:
        
        1. It relies solely on your ``.bib`` file to track information. This is bibo's main selling point! Your ``.bib`` file and your other files (PDFs, for example) are exactly where you want them to be. You have full control over your data.
        2. Being a command line tool, integration with other command line applications is easy and powerful.
        3. It's extensible with plugins (more on this later).
        
        
        Installation
        -------------
        
        Prerequisites
        =============
        
        1. On linux, make sure to install ``xclip``.
        2. Optionally, define the ``EDITOR`` environment variable to an editor of your choice (this is usually already set on unix systems).
        3. Optionally, for improved presentation, install ``bibtex``.
        
        
        ``pip`` installation
        ====================
        
        .. code-block:: bash
        
            pip install bibo
        
        
        On linux / mac you might need to prepend the above command with ``sudo`` for system wide installation, or, preferably, use the ``--user`` flag like this:
        
        .. code-block:: bash
        
            pip install --user bibo
        
        
        For more information see the `official packages installation guide`_.
        
        
        Quick start guide
        -----------------
        
        
        The ``--database`` argument
        ===========================
        
        When running bibo you should tell it where your ``.bib`` file is. For example, to list the entries in your database, run
        
        .. code-block:: bash
        
            bibo --database /path/to/your/database.bib list
        
        If you don't yet have a ``.bib`` file, or want to start working on a new one pass a path to where you want your ``.bib`` file to be and bibo will create the new file for you.
        
        
        The ``BIBO_DATABASE`` environment variable
        ==========================================
        
        Most of the time you will probably use the same ``.bib`` file. So, instead of passing the ``--database`` argument whenever you call bibo you can define the ``BIBO_DATABASE`` environment variable with the path to your ``.bib`` file. From now on, if you don't pass the ``--database`` argument explicitly, bibo will use this predefined database. Note that this is the only bit of configuration bibo uses. Everything else is in your ``.bib`` file!
        
        Commands
        ========
        
        We already saw the ``list`` command. To check all of bibo's commands run
        
        .. code-block:: bash
        
            bibo --help
        
        
        To read additional information about each command and its arguments run, for example
        
        .. code-block:: bash
        
            bibo list --help
        
        
        Let's go through some of the less obvious commands.
        
        
        ``add``
        ~~~~~~~
        
        To add a new entry to the database, copy the ``bibtex`` citation from, let's say, google scholar, and run
        
        .. code-block:: bash
        
            bibo add
        
        Bibo will open your editor and paste the clipboard content to it. You are free to edit this content and save it to add the entry to the database.
        
        If you want to include a file (a PDF, for example) run the same command with ``--file /path/to/file`` at the end. After saving the bibtex citation in the editor bibo will search through the already existing paths in your database, find the most commonly used one, and copy the file you specified to there, renaming it to the bibtex key. If you don't want this automatic destination heuristic you can specify the destination yourself by adding ``--destination /path/to/folder/``.
        
        
        ``open``
        ~~~~~~~~
        
        Try running
        
        .. code-block:: bash
        
            bibo open Albert Einstein
        
        
        If you have a single entry in the database by Albert Einstein (more about search terms below), and the ``file`` field is defined, bibo will open this file with an appropriate application. If it's a PDF it will probably be your PDF reader. But it can also be a presentation, ``.zip`` file, or even a folder.
        
        
        ``edit``
        ~~~~~~~~
        
        The ``edit`` command allows you to edit a single entry. You can set the type by running, for example
        
        .. code-block:: bash
        
            bibo edit Albert Einstein --type article
        
        Setting the key is the same.
        
        To edit a field run, for example
        
        .. code-block:: bash
        
            bibo edit Albert Einstein --field title
        
        Your editor will open with the current content of the title field (or empty if there was no title). Saving will update the database.
        
        The ``edit`` command is also used to link a file to the entry. It is done exactly the same way as the ``add`` command.
        
        
        ``SEARCH_TERMS``
        ================
        
        Most of bibo's commands expect you to provide search terms. Some of them, like the ``open`` command, will only work if the search terms matches a single entry in the database. A single search term matches an entry if it appears in the type, key, or any of the fields of the entry. If multiple search terms are provided an entry should match all of them. Note that search terms are case insensitive. In addition, it is possible to match against a specific field with, for example ``author:einstein`` or ``year:2018``. You can match against type / key in a similar fashion, with, let's say ``type:book``.
        
        
        .. _beets: https://github.com/beetbox/beets
        .. _`official packages installation guide`: https://packaging.python.org/tutorials/installing-packages/
        
Keywords: bib latex reference interface
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Database :: Front-Ends
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Text Processing :: Markup :: LaTeX
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Provides-Extra: dev
