Skip to main content

A python API wrapper for systembolaget.se

Project description

SystembolagetAPI

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.2.tar.gz (4.2 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systembolaget_api-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 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.2.tar.gz
Algorithm Hash digest
SHA256 10db0ea98a9c9d51b0f194b9aa0a6a5838996585fcbdf9603ac9e3964b3e6251
MD5 016b179826e357b9efaab613655cf363
BLAKE2b-256 356e88376c2311f2e41f37064ff324cf183746e95c8584fd91bbe394711a7526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for systembolaget_api-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9411c784641d3da9ce5c8e68ecc114f57f5565086308ff672e717b75b348e595
MD5 981e60c748378aae4773d2d6a322a2db
BLAKE2b-256 3dbcf6b5cb2e43477fcabbc6b3d975909d5dc30e4d547c63e11b0fdc01d0fdf0

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