-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae6f55d
commit 5694874
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Usage of search function: | ||
```python | ||
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). |