Skip to main content

Tool for determining packages used in a particular project that should be cited.

Project description

citationhelper


This is a utility that generates a list of all packages imported into python scripts (*.py) in a given list of directories. It is intended to be used to help keep track of community software used in research projects so that the packages can be properly cited in publications. The utility works by first walking the named directories and identifying *.py files, then searching these files for import statements.

Installation


citationhelper can be installed via pip

pip install citationhelper

Alternatively, citationhelper can be installed from github

pip install git+https://github.com/EarthCubeInGeo/citationhelper.git

After installing, set the environment variable CITEHELP_REFFILE if you want to use a custom JSON library of full citations. The utility will work without this, but it can only generate a list of package names with no citation information.

export CITEHELP_REFFILE=filename

Usage


Run citationhelper with the citehelp command followed by a list of the directories to search for import statements and print a report to the screen.

citehelp project_directory

WARNING: This tool was developed to assist researchers in keeping track of software packages, but it is HIGHLY recommended users review the list of packages produced.

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

citationhelper-0.4.tar.gz (16.4 kB view hashes)

Uploaded Source

Built Distribution

citationhelper-0.4-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

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