Skip to main content

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)

if __name__ == "__main__":
    main()

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

cocktaildbpy-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cocktaildbpy-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file cocktaildbpy-0.0.1.tar.gz.

File metadata

  • Download URL: cocktaildbpy-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.2

File hashes

Hashes for cocktaildbpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bc9ce13011fa0c0ad62a1605bbcc98063cd8766daa2095174db6a786b4e4412e
MD5 bd0638f6f877d9e0227b2d9b9fccd15c
BLAKE2b-256 009212317372e7c2d479583fc89d619f3244f8e4a0ecae778ae4769afa8eaf52

See more details on using hashes here.

File details

Details for the file cocktaildbpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cocktaildbpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.2

File hashes

Hashes for cocktaildbpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d51a5956bc7cc88be264b4be3815cab37d4e83b22ed966acb9d10f0d9bd16a7
MD5 c7617658730562dd43506200ba9af167
BLAKE2b-256 289783a2249a39a34574bdc13b52f61f88e93e8f2f9247b30b5f34b4d49c5ad2

See more details on using hashes here.

Supported by

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