Skip to main content

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

Release files for lego-store-availability 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lego-store-availability 0.2.1
File Size Uploaded
lego_store_availability-0.2.1.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lego-store-availability 0.2.1
File Interpreter ABI Platform
lego_store_availability-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / lego_store_availability-0.2.1.tar.gz

Download URL lego_store_availability-0.2.1.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b96f89863a5ebb329bffdd1e4d179ed1432c977ff6145461c64375cf8b0d0754
BLAKE2b-256 checksum
How to use checksums
b84694271bb2e48920be8806bc5bc05666353d6a7a838b4fa0f9543047910530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / lego_store_availability-0.2.1-py3-none-any.whl

Download URL lego_store_availability-0.2.1-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
371c61c6606100b559a687e6d17a7bbe13e028ddfccfc8edf03764d7096667e2
BLAKE2b-256 checksum
How to use checksums
e10d38ed38046235442df71c8d52c948288b941564f4b9adbc540ff86a32e46c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page