Metadata-Version: 2.1
Name: bibtexgen
Version: 0.0.2
Summary: A tool to quickly export all references to bibtex
Home-page: https://github.com/sdabhi23/bibtexgen
License: MIT
Author: Shrey Dabhi
Author-email: shrey.dabhi23@gmail.com
Requires-Python: >=3.5,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: beautifulsoup4 (>=4.9.0,<5.0.0)
Requires-Dist: requests (>=2.23.0,<3.0.0)
Requires-Dist: tqdm (>=4.45.0,<5.0.0)
Project-URL: Repository, https://github.com/sdabhi23/bibtexgen
Description-Content-Type: text/markdown

# BibtexGen


[![PyPi Version](https://img.shields.io/pypi/v/bibtexgen.svg)](https://pypi.org/project/bibtexgen/)
[![PyPi License](https://img.shields.io/pypi/l/bibtexgen.svg)](https://pypi.org/project/bibtexgen/)
[![PyPi PyVersions](https://img.shields.io/pypi/pyversions/bibtexgen.svg)](https://pypi.org/project/bibtexgen/)
[![PyPi Format](https://img.shields.io/pypi/format/bibtexgen.svg)](https://pypi.org/project/bibtexgen/)

| Continuous Integration | Continuous Delivery |
|:--------:|:-----:|
| ![test](https://github.com/sdabhi23/bibtexgen/workflows/test/badge.svg) | ![publish to pypi](https://github.com/sdabhi23/bibtexgen/workflows/publish%20to%20pypi/badge.svg) |

A simple cli tool to generate a list of references of any paper available on Semantic Scholar as a .bib file.

## Installation

This package supports only Python 3.5 and above.

```bash
$ pip install bibtexgen
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
        Preparing wheel metadata ... done
.
.
.
Successfully built bibtexgen
Installing collected packages: bibtexgen
Successfully installed bibtexgen-0.0.1
```

## Usage

* As cli tool:

    ```bash
    $ bibtexgen


    ================================= Welcome to BibTex Generator =================================


    Please enter the Sematic Scholar Id of your paper: 6258b37b8d517f121c844ebad226da472761adc6

    Creating file 6258b37b8d517f121c844ebad226da472761adc6_references.bib

    100%|█████████████████████████████████████████████████████████| 8/8 [00:21<00:00,  2.63s/papers]

    Your references have been saved!
    ```

* Programmatically:

    ```python
    from bibtexgen import bibtex
    from pprint import pprint

    b = bibtex()
    r = b.generate_references('6258b37b8d517f121c844ebad226da472761adc6')

    pprint(r)
    ```

