30 lines
460 B
Markdown
30 lines
460 B
Markdown
|
|
# Citer
|
||
|
|
|
||
|
|
Simple CLI that turns an arXiv ID/URL or DOI/URL into a single-line APA citation.
|
||
|
|
|
||
|
|
## Setup
|
||
|
|
|
||
|
|
```bash
|
||
|
|
pip install -e .
|
||
|
|
```
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# arXiv IDs or URLs
|
||
|
|
citer arxiv 2106.01342
|
||
|
|
citer arxiv https://arxiv.org/abs/2106.01342
|
||
|
|
|
||
|
|
# DOIs or DOI URLs
|
||
|
|
citer doi 10.1038/nphys1170
|
||
|
|
citer doi https://doi.org/10.1038/nphys1170
|
||
|
|
```
|
||
|
|
|
||
|
|
Errors are printed with a clear message if an ID cannot be parsed or a lookup fails.
|
||
|
|
|
||
|
|
## Tests
|
||
|
|
|
||
|
|
```bash
|
||
|
|
python -m pytest
|
||
|
|
```
|