Metadata-Version: 2.1
Name: lego-store-availability
Version: 0.0.8
Summary: Check the availability of Lego™ product in stores
Home-page: https://github.com/Lunik/lego-store-availability
Author: Lunik
Author-email: lunik@tiwabbit.fr
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/Lunik/lego-store-availability/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.md

# 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

```shell
pip3 install lego-store-availability
```

## Usage

First you need to create a `Store` object :

```python
from lego_store_availability import Store

store = Store(lang="fr-fr")
```

Then request a `Product` :

```python
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](./example) :
```shell
PYTHONPATH=. python3 example/main.py example/config.yml
```
Result :
```shell
Le Taj Mahal 21056 ==> in stock
Ahsoka Tano™ 40539 ==> out of stock
Doctor Who 21304   ==> out of stock
```

