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

Uploaded Source

Built Distribution

xkcd_python-2.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xkcd-python-2.1.0.tar.gz
  • Upload date:
  • Size: 3.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 e7e6c307e864d709ba834d96053654ec66db5ecca662c8acaaa99ad2c5da19fd
MD5 2ee3c7b1a612aa19b9e180ff2597d4b7
BLAKE2b-256 cd7d29ba0cf7ff5d85948555be570d849ad5a753fac4a0c44727e1ca5917d4a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xkcd_python-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d89b4f633ed73ce3962b2ef21ac1ce9f506fd52209529af937779971ff70724c
MD5 45e7871ab934835c3b32c44dbee21a4a
BLAKE2b-256 1538634bafffb997da4aa53a65d2e7149eda0f51210c7a35ddd42c72c47965d9

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