Easily create citations from URLs
Project description
easycit - Create Citations from the command-line
Easily create citations from website URLs.
Installation
[!WARNING] Not available to pip install... yet. I apologize for the inconvenience.
Install this tool using pip
:
pip install easycit
Usage
For help, run:
easycit --help
You can also use:
python -m easycit --help
Generate a Citation
To generate a citation, use the following command:
easycit <URL> -f <format>
Available Options
- -f, --fmt [mla|apa|chicago|IEEE|Harvard]: The citation format (default: mla).
- --no-date: Omit the accessed date from the citation.
- --no-url: Omit the URL from the citation.
- --override : Override specific fields (e.g., --override author "John Doe").
Batch Processing
To generate citations for multiple URLs from a file, use the following command:
easycit batch_citations <file> -f <format>
Examples
Generate an MLA citation:
easycit https://realpython.com/python-serialize-data/ -f mla
Generate an APA citation without the accessed date:
easycit https://realpython.com/python-serialize-data/ -f apa --no-date
Generate a Chicago citation without the URL:
easycit https://realpython.com/python-serialize-data/ -f chicago --no-url
Override the author and title fields:
easycit https://realpython.com/python-serialize-data/ -f apa --override author "John Doe"
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd easycit
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.