自动为包创建引用
citep的Python项目详细描述
城市
Python3.7+
使用从软件包存储库自动收集的信息轻松引用软件库。
安装
pip install citepy
用法
usage: citepy [-h] [--all] [--repo {pypi,crates}] [--output OUTPUT] [--format FORMAT] [--threads THREADS] [--verbose] [--version VERSION] [package [package ...]] positional arguments: package names of python packages you want to cite, optionally with (full) version string. e.g. numpy==1.16.3 beautifulsoup4==4.7.1 optional arguments: -h, --help show this help message and exit --all, -a if set, will get information for all python packages accessible to `pip freeze` --repo {pypi,crates}, -r {pypi,crates} which package repository to use (default pypi) --output OUTPUT, -o OUTPUT path to write output to (default write to stdout) --format FORMAT, -f FORMAT format to write out (default json) --threads THREADS, -t THREADS how many threads to use to fetch data --verbose, -v Increase verbosity of logging (can be repeated). One for DEBUG, two for NOTSET, three includes all library logging. --version VERSION print version information and exit
支持的包回购
- PYPI
- 板条箱.io
支持的输出格式
- CSL数据JSON
csl数据可以使用另一个工具(例如citation-js)转换为bibtex、html或纯文本书目。