https://github.com/thelovinator1/webhallen.py
A Python wrapper for the Webhallen API
https://github.com/thelovinator1/webhallen.py
webhallen
Last synced: 2 months ago
JSON representation
A Python wrapper for the Webhallen API
- Host: GitHub
- URL: https://github.com/thelovinator1/webhallen.py
- Owner: TheLovinator1
- License: gpl-3.0
- Created: 2024-11-26T16:25:52.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-01T20:14:33.000Z (6 months ago)
- Last Synced: 2025-03-19T12:07:47.681Z (3 months ago)
- Topics: webhallen
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhallen.py
A Python wrapper for the Webhallen API
## Installation
```bash
pip install webhallen
```## Usage
```python
from webhallen import Webhallen# Initialize the client
webhallen = Webhallen()# Get a product by ID
try:
product = webhallen.get_product(1234)
print(product)
except ProductNotFoundError:
print("Product not found")# Search for products
products = webhallen.search("RTX 3080", limit=5)
for product in products:
print(product['name'])
```## Features
- Retrieve product details by ID
- Search for products
- Error handling for API interactions## Requirements
- Python 3.8+
- httpx