semvec/pypi-packages huggingface dataset:
pyxkcd 0.1.0
A simple, easy-to-use xkcd API wrapper!
License: MIT License
Requires Python: >=3.7
Keywords: xkcd,api,api wrapper

# pyxkcd

A simple, easy-to-use xkcd wrapper

-----

## Documentation

Check the documentation [here](https://pyxkcd.readthedocs.io/en/latest/)

## Quickstart

### Sync mode:

```py
import xkcd

client = xkcd.Client()

latest = client.latest()
print(latest.json())
```

### Async mode:

```py
import asyncio
import xkcd

client = xkcd.AsyncClient()

async def main():
    tasks = (client.random() for _ in range(25))
    return await asyncio.gather(*tasks)

asyncio.run(main())```