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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: citationhelper-0.4.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for citationhelper-0.4.tar.gz
Algorithm Hash digest
SHA256 9c0ea1edc9edc5580673bac3a85f1457e2a36abb0e74e823e9da74368cd37ee1
MD5 53f397efc04840c5abcfa50caae525ad
BLAKE2b-256 c6d7fd3add08334d822e88f8683331d403f2564b8bc126cd36e57d0dcfd109fd

See more details on using hashes here.

File details

Details for the file citationhelper-0.4-py3-none-any.whl.

File metadata

  • Download URL: citationhelper-0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for citationhelper-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d81fa162ff60b808c3f66ce123c9e22014fb7ce5941486b9d9fda228961c56db
MD5 bd0ee4a14fbf7f3814200bafe30afb8c
BLAKE2b-256 e531be87e4b4134d7824917c193b72dbbb333831efff1bc3d216e43cefab1fe8

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