Pure Python wrapper for the Formatically Citation Website.
Project description
QuickCite
An API Wrapper for automatic MLA, CHI, & APA citations
How To Use:
Installation with PIP
pip install QuickCite
Basic Usage
# Import Module
from QuickCite import Citation
# Create Citation Object with URL as paramater
c = Citation(URL="https://www.brookings.edu/research/trans-atlantic-scorecard-april-2021/")
# Get Citations
MLA = c.MLA()
APA = c.APA()
CHI = c.CHI()
print("MLA:\n"+MLA)
print("\nAPA:\n"+APA)
print("\nCHI:\n"+CHI)
Output:
MLA:
Wright, Thomas. "Trans-Atlantic Scorecard — April 2021" Brookings, 2021-04-27, https://www.brookings.edu/research/trans-atlantic-scorecard-april-2021/. Accessed 2/5/2021.
APA:
Wright, T. (2021, 04-27) Trans-Atlantic Scorecard — April 2021. Brookings. https://www.brookings.edu/research/trans-atlantic-scorecard-april-2021/
CHI:
Thomas Wright, "Trans-Atlantic Scorecard — April 2021," Brookings, last modified 2021-04-27, https://www.brookings.edu/research/trans-atlantic-scorecard-april-2021/.
Advanced Usage (Cont'd from Basic)
# Adding the optional type paramater to define what citation
# format is outputted when the __str__() method is called.
c_advanced = Citation(URL="https://www.brookings.edu/research/trans-atlantic-scorecard-april-2021/", type="APA")
# The type parameter is a string, and can either be:
# "MLA" (default)
# "APA"
# "CHI"
# Printing Citation Object
print(c_advanced)
Output:
Wright, T. (2021, 04-27) Trans-Atlantic Scorecard — April 2021. Brookings. https://www.brookings.edu/research/trans-atlantic-scorecard-april-2021/
Known issues
- Errors with date formatting
- Errors getting multiple authors
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.
Source Distribution
QuickCite-0.0.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for QuickCite-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af90b364896c1f75edcb1ed5eae247f460f3b9de7b5fc2369c225ec02a171ad |
|
MD5 | 8132699c4f9b5487295663c11d2e1a61 |
|
BLAKE2b-256 | 9ac1d610718f58892d40f2916c2c168968677e185d029a3d962aa399ab96f01d |