Python bindings for several image boards
Project description
🦀 Cunny.py 🦀
🖼️ Python Bindings for Several Image Boards 🖼️
📜About | 📥Installation | 🌟Features | ⚙️Usage
📜About
🦀 Cunny.py is a library that makes it dead-simple to interact with image boards using Python.
📥Installation
✅ Getting started with Cunny.py is quick and easy! Simply install the package using your favorite tool.
📥Using pip:
pip install cunnypy
🪶Using poetry:
poetry add cunnypy
🌟Features
- 🚀 Fully Async
- 💯 Tons of boorus supported. See Boorus.toml.
- 🆔 Support for booru aliases
- 🎲 Randomize each search with gatcha
- 🔍 Autocomplete support for tags
- 🔢 Search multiple boors at once
- 🐍 Modern and Pythonic API
⚙️Usage
🎉 Other examples can be found in the Examples folder.
🔎 Basic Search
📝 Note: You can specify additional parameters in the search function, such as limit
and gatcha
.
import cunnypy
import asyncio
async def main():
posts = await cunnypy.search("gelbooru", "megumin", limit=20, gatcha=True)
print(posts)
asyncio.run(main())
🔍 Basic Multi-Booru Search
import cunnypy
import asyncio
async def main():
posts = await cunnypy.ms([{'booru': 'gel'}, {'booru': 'safe'}], "megumin")
print(posts)
asyncio.run(main())
🤖 Autocomplete
import cunnypy
import asyncio
async def main():
auto = await cunnypy.autocomplete("gel", "megumi")
print(auto)
asyncio.run(main())
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
cunnypy-2.0.0.tar.gz
(20.8 kB
view hashes)
Built Distribution
cunnypy-2.0.0-py3-none-any.whl
(20.8 kB
view hashes)