Check the availability of Lego™ product in stores
Project description
LEGO™ store availability
Check the availability of Lego™ product in stores.
Disclamer
This tools is not related in any way to LEGO™ and all of it's trademark.
This tools is not designed for malicious usage and any individual or group using it this way is responsible for is own actions.
Install
pip3 install lego-store-availability
Usage
First you need to create a LegoAPI object :
from lego_store_availability import LegoAPI
lego = LegoAPI()
Then request a Store :
from lego_store_availability import Store
store = lego.store(lang="fr-fr")
Finally retrieve a Product :
from lego_store_availability import Product
product = store.product(
product_id="10307",
)
print(product.name, product.availability)
Contribute
- Clone or fork the repository.
- Install dev dependencies with
pip3 install -r dev-requirements.txt - Develop your feature or fix
- Lint with pylint
- Test it with pytest under tests/ directory
- Mock HTTP requests with responses
- Push & create a Pull Request on
developbranch - Wait for the CI (Github Action) to exit in success state
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
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 lego_store_availability-0.2.1.tar.gz.
File metadata
- Download URL: lego_store_availability-0.2.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b96f89863a5ebb329bffdd1e4d179ed1432c977ff6145461c64375cf8b0d0754
|
|
| MD5 |
cd7c50e5c0e1091382e9481b2daaf6ff
|
|
| BLAKE2b-256 |
b84694271bb2e48920be8806bc5bc05666353d6a7a838b4fa0f9543047910530
|
File details
Details for the file lego_store_availability-0.2.1-py3-none-any.whl.
File metadata
- Download URL: lego_store_availability-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.2 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 |
371c61c6606100b559a687e6d17a7bbe13e028ddfccfc8edf03764d7096667e2
|
|
| MD5 |
8dcbf082aa2377dd589053e47b651183
|
|
| BLAKE2b-256 |
e10d38ed38046235442df71c8d52c948288b941564f4b9adbc540ff86a32e46c
|