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 Store
object :
from lego_store_availability import Store
store = Store(lang="fr-fr")
Then request a Product
:
from lego_store_availability import Product
product = Product(id="ahsoka-tano-40539")
product.load(store)
print(product.name, product.availability)
Example
You can use the example in example folder :
PYTHONPATH=src/ python3 example/main.py example/config.yml
Result :
Le Taj Mahal 21056 ==> in stock
Ahsoka Tano™ 40539 ==> out of stock
Doctor Who 21304 ==> out of stock
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
develop
branch - 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
Close
Hashes for lego-store-availability-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e046e52dcc52a9a589e6012c32e35aaf3e11029941a22e5a2ca1153a565997b |
|
MD5 | 9d5f9908b3f72dd7fde998583a1e2e70 |
|
BLAKE2b-256 | ce9ab6a64851ef84bea618e7dfb16d2651a1940e17f93377d4824ced99d5ab5d |
Close
Hashes for lego_store_availability-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 032380c71e5101c91d4a7bd8fb601de9d38696c5c6135c754efec13a7b5eb570 |
|
MD5 | 61d678ec471d6753f204694a369da13f |
|
BLAKE2b-256 | 4bcec8b47ff51d9d721aa29f1305a84c269c6dd92a2bba35ec7013148e327e28 |