Skip to main content

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=. 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
  • Test it with pytest under tests/ directory
  • 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

lego-store-availability-0.1.0.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

lego_store_availability-0.1.0-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page