Skip to main content

A python API wrapper for systembolaget.se

Project description

SystembolagetAPI

PyPI version License Python

SystembolagetAPI lets you search and filter for products on Systembolaget using their unofficial client api.

Install

SystembolagetAPI is available on PyPI.

uv add systembolaget-api
pip install systembolaget-api

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.3.tar.gz (4.3 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.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systembolaget_api-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 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.3.tar.gz
Algorithm Hash digest
SHA256 c94d1bf90d90526f9f401ad382fcc77b7eebb019f13cc98510563fdbdea2a875
MD5 daca22bf79f19469ddc92ceb1c0db378
BLAKE2b-256 9b6d962d0a9881cdcf1f8c1146186063b3e40e258301c75cd61ba00baa774169

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for systembolaget_api-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eacbd7cb8057c91c93aa1b1a069a46dd89dc321af35756b32fe900150054b293
MD5 30d8f359271734d677c2e5c6d5ef792e
BLAKE2b-256 b3cd1da9017de5a51a7f15ad1766a45430118647d2d4a173848df9fa633dbf39

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