An unofficial asynchronous API wrapper for thecocktaildb.com.
Project description
Usage of search function:
import cocktaildb
async def tequila_info():
return await cocktaildb.search(query='tequila')
Parameters include query, id, key, category, dict: bool, first_letter_only: bool, ingredient: bool, random: bool. All of which default to either None or False.
Lists of categories, ingredients etc. that may appear:
import cocktaildb
# This is in literally a list, not in the form of a dict or string
async def list_of_categories():
return await cocktaildb.categories()
There are more functions such as glasses() and ingredients().
This is a simple api wrapper that only supports free endpoints (for now atleast).
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
cocktail-wrapper-1.0.7.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for cocktail_wrapper-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83d190181effaab30bf2f799a92546c3e26deb0188dea98b5a2efc721506bf0 |
|
MD5 | 5ce4e8e072030d5e2dbc2ffa2ddfd46b |
|
BLAKE2b-256 | 5132b24a1c02a2d01120ef61f1e62f59f13d692a8fcfd1f8e0c75e576f175b2a |