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.2.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.2.tar.gz.
File metadata
- Download URL: cocktaildbpy-0.0.2.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 |
2d583e124e6e28df08f99cbe03e5e7fdaae999606375d222cc474628a09b49a2
|
|
| MD5 |
cc9d02115bf7a8090b27b87a93af37a7
|
|
| BLAKE2b-256 |
a402bb52e7a9ecd3ac132dd7ddc5c3e18ba406dcaecaabc76317be4de870843d
|
File details
Details for the file cocktaildbpy-0.0.2-py3-none-any.whl.
File metadata
- Download URL: cocktaildbpy-0.0.2-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 |
9f1354d56aee726f41382084ce2e121ee71397e70c0ceb3ea7353e12118e8777
|
|
| MD5 |
6aacd818ae8c74aea01904dd9f46a657
|
|
| BLAKE2b-256 |
8e4f64ad5414e28c38f729b1f19675d92ca7f0277e7f8149ea5b805fb97ace52
|