Skip to main content

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.

Metadata

Release files for cocktail-info 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cocktail-info 0.1.8
File Size Uploaded
cocktail_info-0.1.8.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cocktail-info 0.1.8
File Interpreter ABI Platform
cocktail_info-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / cocktail_info-0.1.8.tar.gz

Download URL cocktail_info-0.1.8.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d0396663416500ec92ea8909d6df9673dffe9a9fb9ecfaf48d432e366d506e9b
BLAKE2b-256 checksum
How to use checksums
a450af7fb76831f08eefc994f82b9814555a5b4883a1758d9169f6730e2b9a0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Darwin/20.6.0

Release files / cocktail_info-0.1.8-py3-none-any.whl

Download URL cocktail_info-0.1.8-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d6c3ca1129af45cedce1e58b05e31ca39cc626cba9a6e1d7312d26ee88508ef
BLAKE2b-256 checksum
How to use checksums
02f0f8e95a397c85b5cc27260ff31e8355145968197734c3ae5738c0cd83683a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Darwin/20.6.0

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page