A small python library to interact with cocktaildb api (https://www.thecocktaildb.com/api.php)
Project description
cocktaildbpy
A small python library to interact with cocktaildb api (https://www.thecocktaildb.com/api.php)
Installation
pip install cocktaildbpy
Example Usage
from cocktaildbpy import Api
from cocktaildbpy.constants import Ingredient
def main():
# "1" is the development/testing api key
client = Api(api_key="1")
drinks = client.search_by_ingredient(Ingredient.GIN)
drink = client.lookup_cocktail_by_id(drinks[0].id)
print(drink)
drink = client.get_cocktail_by_name("old fashioned")
print(drink)
if __name__ == "__main__":
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
cocktaildbpy-0.0.3.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cocktaildbpy-0.0.3.tar.gz.
File metadata
- Download URL: cocktaildbpy-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cee8fb3c08ca4f95d09aa2f92d13868a054e55c822dfb471fc916b734935126
|
|
| MD5 |
920baf6ee0b213a7680926f668ee24e6
|
|
| BLAKE2b-256 |
029ec484969334afcdb1e420a2f5fbf310503d564457e9a69ef643dcace9cec6
|
File details
Details for the file cocktaildbpy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: cocktaildbpy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8f2d038952a5d7dad87eab4c3a8e4a9d100378873154d2a3058c534e3a6e743
|
|
| MD5 |
3ffd24d902523722125846e2ccee95fd
|
|
| BLAKE2b-256 |
61a010f09bc006766e764f248289f2efb39f2ca6aa3cd7959a9124de1954c33d
|