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.5.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file QuickCite-0.0.5.tar.gz
.
File metadata
- Download URL: QuickCite-0.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73d10669ecdd1a8f14844e97514a2cd19b9d367e867f140d3ede3ac95e047348 |
|
MD5 | 68aa2668b2267909ca3b4204d60be309 |
|
BLAKE2b-256 | f7c0fe1ce22ed573510eeab5f87c9d84dac15c9136aa5b17b024948a9094539c |
File details
Details for the file QuickCite-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: QuickCite-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb2ca2ee61355549d3de0631e533bc2302abfcf95c1ade796e9d4ae2a3cf7879 |
|
MD5 | a8be0bc9df86a9183c262e2bac6de162 |
|
BLAKE2b-256 | a3500fe9deeb87e763a4bd5a936aee3fc9fadad52661fa15fa55bd3a3b796681 |