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 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
  • 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.2.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lego_store_availability-0.2.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

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

Hashes for lego_store_availability-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b96f89863a5ebb329bffdd1e4d179ed1432c977ff6145461c64375cf8b0d0754
MD5 cd7c50e5c0e1091382e9481b2daaf6ff
BLAKE2b-256 b84694271bb2e48920be8806bc5bc05666353d6a7a838b4fa0f9543047910530

See more details on using hashes here.

File details

Details for the file lego_store_availability-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lego_store_availability-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 371c61c6606100b559a687e6d17a7bbe13e028ddfccfc8edf03764d7096667e2
MD5 8dcbf082aa2377dd589053e47b651183
BLAKE2b-256 e10d38ed38046235442df71c8d52c948288b941564f4b9adbc540ff86a32e46c

See more details on using hashes here.

Supported by

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