Skip to main content

Get the information of cocktails.

Project description

cocktail_info

This project is called cocktail_info. The functions are built to get the information of cocktails users want to know. Below are the explanations for what each function can do:

Function get_id(): This function can help users to get the id of the cocktail they input so that they could use for further search.

Function get_cocktail(): This function can help users to get the details of the cocktails they input, such as ID, Name, Category, whether they contain alcohol, the ways to make them, etc.

Function get_one(): This function can help users to get the information of the exact one cocktail they want through the unique id.

Function get_ingredient(): This function can help users to get the names and measures of the ingredients in the cocktail after the users input the name of cocktails.

Function get_pics(): This function can help users to get the pictures of the cocktails along with the IDs and names they input.

Function decsription(): This function can give users the introduction of cocktails users input.

Function is_in(): This function allows users to check whether the ingredient they input is in the ingredients list.

Installation

$ pip install cocktail_info

Usage

from cocktail_info import cocktail_info

Get the id of the cocktail

cocktail_info.get_id('gin')

Get the information of the cocktails

cocktail_info.get_cocktail('gin')

Get the information of the exact cocktail you want to know

cocktail_info.get_one('gin')

Get the ingredients of the cocktails

cocktail_info.get_ingredient('gin')

Get the pictures of the cocktails

cocktail_info.get_pics('gin')

Get the introduction of the cocktail

cocktail_info.description('gin')

Tell whether one ingredient is in the cocktail

cocktail_info.is_in('gin')

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

cocktail_info was created by Kun Yao. It is licensed under the terms of the MIT license.

Credits

cocktail_info was created with cookiecutter and the py-pkgs-cookiecutter template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocktail_info-0.1.8.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

cocktail_info-0.1.8-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page