Skip to main content

A wrapper for xkcd.com's API. Built Using Python.

Project description

xkcd-python

xkcd-python is an API wrapper for xkcd.com written in python.

Installation

Use the package manager pip to install foobar.

pip install -U xkcd-python

Usage

from xkcd_python import *

#creates the client
client = Client()

# returns the comic by id
client.get(1)

# returns a random comic
client.random()

# returns the latest comic
client.latest_comic()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

xkcd-python-2.6.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

xkcd_python-2.6.0-py3-none-any.whl (3.2 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