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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c94d1bf90d90526f9f401ad382fcc77b7eebb019f13cc98510563fdbdea2a875
|
|
| MD5 |
daca22bf79f19469ddc92ceb1c0db378
|
|
| BLAKE2b-256 |
9b6d962d0a9881cdcf1f8c1146186063b3e40e258301c75cd61ba00baa774169
|
File details
Details for the file systembolaget_api-0.0.3-py3-none-any.whl.
File metadata
- Download URL: systembolaget_api-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eacbd7cb8057c91c93aa1b1a069a46dd89dc321af35756b32fe900150054b293
|
|
| MD5 |
30d8f359271734d677c2e5c6d5ef792e
|
|
| BLAKE2b-256 |
b3cd1da9017de5a51a7f15ad1766a45430118647d2d4a173848df9fa633dbf39
|