Skip to main content

Autogenerate bibtex citations for common Python packages

Project description

makecite

alt text Build Status Coverage Status License badge-img DOI

Generate latex + bibtex citation commands by looking at what packages are imported in your Python code.

Installation

The recommended installation procedure is to use pip:

pip install makecite

To install the development version, you can pip install directly from this GitHub repository with:

pip install git+https://github.com/adrn/makecite

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:

@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 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.4.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file makecite-0.4.tar.gz.

File metadata

  • Download URL: makecite-0.4.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4

File hashes

Hashes for makecite-0.4.tar.gz
Algorithm Hash digest
SHA256 aa714e38c6a2e3ba14c9b1ca561a363ed6b6fe10f6b3acec6de1490d80bc57da
MD5 5ef1cf167966e00b699a2bc92909ed39
BLAKE2b-256 c922908bd999a9e841be4db3db1693cdae56ade66a4a6db02c6f5702a6607c71

See more details on using hashes here.

Supported by

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