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.0.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

xkcd_python-2.0.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file xkcd-python-2.0.5.tar.gz.

File metadata

  • Download URL: xkcd-python-2.0.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.0 Windows/10

File hashes

Hashes for xkcd-python-2.0.5.tar.gz
Algorithm Hash digest
SHA256 2208c9839abcdf75773928aabb059897e870cc97bd793a322247a47a79acd04a
MD5 5ae46235665466d73eebc0421809d25a
BLAKE2b-256 c22b037f0779cd4f56b92e2fff5fa64974cc2d421794e7482ac5abc9342ca09c

See more details on using hashes here.

File details

Details for the file xkcd_python-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: xkcd_python-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.0 Windows/10

File hashes

Hashes for xkcd_python-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a567b224b3a9bfdcf92eeefd3f9f895fd323a26da433e588274d24ccdad61d2e
MD5 93bd8048c99430c47d7d02509b848de5
BLAKE2b-256 7edd1556b0f2e19959a9f95d2cf7424ab5e3003e3a6c8e5e9e77e43e87bf77a8

See more details on using hashes here.

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