Autogenerate bibtex citations for common Python packages
Project description
# makecite
[![alt text](http://apmechev.com/img/git_repos/pylint/makecite.svg "pylint score")](https://github.com/apmechev/pylint-badge)
[![Build Status](https://travis-ci.org/adrn/makecite.svg?branch=master)](https://travis-ci.org/adrn/makecite)
[![Coverage Status](https://coveralls.io/repos/github/adrn/makecite/badge.svg?branch=master)](https://coveralls.io/github/adrn/makecite?branch=master)
[![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/adrn/makecite/blob/master/LICENSE)
![badge-img](https://img.shields.io/badge/Made%20at-%23AstroHackWeek-8063d5.svg?style=flat)
[![DOI](https://zenodo.org/badge/143292502.svg)](https://zenodo.org/badge/latestdoi/143292502)
Generate latex + bibtex citation commands by looking at what packages are imported in your Python code.
## Examples
Get bibtex records for packages used in a single script, and store to a `.bib` file in the current working directory:
```
makecite my_script.py
```
Get bibtex records for packages used in all `.py` scripts in the current directory and store to a `.bib` file called "software_refs.bib":
```
makecite --ext=.py -o software_refs.bib .
```
Get bibtex records for packages used in all `.py` scripts and IPython notebook, `.ipynb`, files in two paths `my_code` and `my_notebooks`:
```
makecite --ext=.py --ext=.ipynb my_code my_notebooks
```
Get bibtex records for packages used in all `.py` scripts in the current directory and output a AAS journals `\software{}` tag:
```
makecite --ext=.py --aas .
```
## Citing this script
If you use this script, please consider citing [our Zenodo
record](https://zenodo.org/badge/latestdoi/143292502):
```
@misc{makecite:2018,
author = {Adrian Price-Whelan and
Alexandar Mechev and
jumeroag},
title = {adrn/makecite: v0.1},
month = aug,
year = 2018,
doi = {10.5281/zenodo.1343295},
url = {https://doi.org/10.5281/zenodo.1343295}
}
```
## License
Copyright 2018 the developers.
`makecite` is free software made available under the MIT License. For details
see the [LICENSE](https://github.com/adrn/makecite/blob/master/LICENSE) file.
[![alt text](http://apmechev.com/img/git_repos/pylint/makecite.svg "pylint score")](https://github.com/apmechev/pylint-badge)
[![Build Status](https://travis-ci.org/adrn/makecite.svg?branch=master)](https://travis-ci.org/adrn/makecite)
[![Coverage Status](https://coveralls.io/repos/github/adrn/makecite/badge.svg?branch=master)](https://coveralls.io/github/adrn/makecite?branch=master)
[![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/adrn/makecite/blob/master/LICENSE)
![badge-img](https://img.shields.io/badge/Made%20at-%23AstroHackWeek-8063d5.svg?style=flat)
[![DOI](https://zenodo.org/badge/143292502.svg)](https://zenodo.org/badge/latestdoi/143292502)
Generate latex + bibtex citation commands by looking at what packages are imported in your Python code.
## Examples
Get bibtex records for packages used in a single script, and store to a `.bib` file in the current working directory:
```
makecite my_script.py
```
Get bibtex records for packages used in all `.py` scripts in the current directory and store to a `.bib` file called "software_refs.bib":
```
makecite --ext=.py -o software_refs.bib .
```
Get bibtex records for packages used in all `.py` scripts and IPython notebook, `.ipynb`, files in two paths `my_code` and `my_notebooks`:
```
makecite --ext=.py --ext=.ipynb my_code my_notebooks
```
Get bibtex records for packages used in all `.py` scripts in the current directory and output a AAS journals `\software{}` tag:
```
makecite --ext=.py --aas .
```
## Citing this script
If you use this script, please consider citing [our Zenodo
record](https://zenodo.org/badge/latestdoi/143292502):
```
@misc{makecite:2018,
author = {Adrian Price-Whelan and
Alexandar Mechev and
jumeroag},
title = {adrn/makecite: v0.1},
month = aug,
year = 2018,
doi = {10.5281/zenodo.1343295},
url = {https://doi.org/10.5281/zenodo.1343295}
}
```
## License
Copyright 2018 the developers.
`makecite` is free software made available under the MIT License. For details
see the [LICENSE](https://github.com/adrn/makecite/blob/master/LICENSE) file.
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
makecite-0.2.tar.gz
(12.4 kB
view details)
File details
Details for the file makecite-0.2.tar.gz
.
File metadata
- Download URL: makecite-0.2.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d7c1cdfb2678fb4f29e3e1d4fde2038314598946513e2b2074f4bf4dc020246 |
|
MD5 | efdc9dcd141049c3b56b9fe6f7b2c049 |
|
BLAKE2b-256 | fd3bad197d4a0534ba15be678d9875730e9821fed195905f3d31755a12434a7e |