Skip to main content

A python API wrapper for systembolaget.se

Project description

SystembolagetAPI

Usage

from systembolaget_api import (
    FilterOptions,
    SystembolagetAPI,
    SystembolagetClient,
)

client = SystembolagetClient()
api = SystembolagetAPI(client)

# Simple query only
api.search("Nils Oscar")

# Query with filters
api.search("wine", FilterOptions(price_max=200, country=["France"]))

# Everything
api.search(
    query="red wine",
    options=FilterOptions(
        price_min=100,
        price_max=500,
        country=["France", "Italy"],
        vintage=[2018, 2019],
    ),
)

# Simple search with sorting
api.search("Nils Oscar", sort_by="ProductLaunchDate", sort_direction="Ascending")

# With filters too
api.search(
    query="wine",
    sort_by="Price",
    sort_direction="Descending",
    options=FilterOptions(price_max=200, country=["France"]),
)

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

systembolaget_api-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

systembolaget_api-0.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systembolaget_api-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for systembolaget_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c51b20a1dd57f64d14ba1c7d4393291a2994da2fffd3f8dedbb3fdfd6746e46f
MD5 27ea6946ebd54e57ea02e645adfb843b
BLAKE2b-256 1600d59ecd2c5c318b8acc2dbd6dcd421df6de9baad789c4109c147888b8f76a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for systembolaget_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ab3c2bb6dd7a877d93d01f334c8f06acb8bd75efb401c4f4744f107f359d7b9
MD5 45c935fcf88464e28df670a8a5427a73
BLAKE2b-256 0761edd24f96fe13cca9b06c39e6933c82c47caa6dc6436d8c90f4b7bc2d3d85

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