Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

QuickCite-0.0.5-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page