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
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
xkcd-python-2.8.0.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file xkcd-python-2.8.0.tar.gz
.
File metadata
- Download URL: xkcd-python-2.8.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf58d5d9c1de6bb94eb604d94353655d5c3ed1dbbe7a3ba66392e40cffe27b1a |
|
MD5 | 8db3b34cfa0cdf20290aaf1e94c76251 |
|
BLAKE2b-256 | c5bc833a40940a71ce682791e5ef414782f52be193fcae7450927a2a554ffb9e |
File details
Details for the file xkcd_python-2.8.0-py3-none-any.whl
.
File metadata
- Download URL: xkcd_python-2.8.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa15530f2bd4360e697541255558a7bfd4c548b6b4f988bb6376c4e913fe2246 |
|
MD5 | 7d1429cbf0bc29f8493984dc28080ec7 |
|
BLAKE2b-256 | b8cbe672a15da2bcf4d467fe8f3a363744d54fd23f4c6f5171fef6de2ccf5f68 |