Skip to main content

Usage of search function:

import cocktaildb 

async def tequila_info():
  return await cocktaildb.search(query='tequila')

Parameters include query, id, key, category, dict: bool, first_letter_only: bool, ingredient: bool, random: bool. All of which default to either None or False.

Lists of categories, ingredients etc. that may appear:

import cocktaildb

# This is in literally a list, not in the form of a dict or string
async def list_of_categories():
  return await cocktaildb.categories()

There are more functions such as glasses() and ingredients().

This is a simple api wrapper that only supports free endpoints (for now atleast).

Release files for cocktail-wrapper 1.0.9

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-wrapper 1.0.9
File Size Uploaded
cocktail-wrapper-1.0.9.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cocktail-wrapper 1.0.9
File Interpreter ABI Platform
cocktail_wrapper-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / cocktail-wrapper-1.0.9.tar.gz

Download URL cocktail-wrapper-1.0.9.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
96071b4436b9c94b014aa87681ad416f96370208a09ca1ad47191a98393f3bd7
BLAKE2b-256 checksum
How to use checksums
77985da7ffcefa5373262811086d6610d283d988aa81fd3524c6dba19ebf6d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / cocktail_wrapper-1.0.9-py3-none-any.whl

Download URL cocktail_wrapper-1.0.9-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c56d32f61b7190853142e48a53c6ffe6b6d50a4980f80d91df03a5e0532d5973
BLAKE2b-256 checksum
How to use checksums
9ba53a9791096fdb9641477f5d5d28850a7f13eb128daa728f30c2c21d5c23e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.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