Skip to main content

Python API client for Lidl Connect

Project description

LidlConnect.py

PyPI version License: MIT

A Python library for accessing your Lidl Connect account through the Self-Care API.

Features

  • 📱 View your current data, minutes, and SMS usage
  • 💰 Check your account balance and payment history
  • 📅 View tariff details and package validity dates
  • 🧾 Access invoice and voucher history
  • 🔄 Automatic session management with proper login/logout

Installation

Install directly from PyPI:

pip install LidlConnect.py

Quick Start

from LidlConnect import LidlConnect

# Initialize with PUK (preferred method)
client = LidlConnect(identifier="069012345678", puk="12345678")

# Or initialize with password
# client = LidlConnect(identifier="069012345678", password="yourPassword")

# Login and initialize connection
if not client.initialize():
    print("Failed to initialize client")
    exit(1)

# Get remaining data
data_info = client.get_remaining_data()
print(f"Data: {data_info['remaining']}/{data_info['total']} GiB")

# Check minutes
minutes_info = client.get_remaining_minutes()
print(f"Minutes: {minutes_info['remaining']}/{minutes_info['total']} minutes")

# Get EU roaming data
eu_data_info = client.get_remaining_eu_data()
print(f"EU Data: {eu_data_info['remaining']}/{eu_data_info['total']} GiB")

# Access account information
print(f"User: {client.user_name}")
print(f"Balance: €{client.balance if client.balance is not None else 'N/A'}")
print(f"Package valid until: {client.tariff_package_valid_to}")

# View payment history
client.print_invoices()

# Logout when done (automatic on program exit, but explicit is better)
client.logout()

Documentation

For complete documentation of all features and methods, please refer to the API documentation.

Requirements

  • Python 3.6+
  • requests library
  • beautifulsoup4 library

Supported Services

This library currently supports the Austrian Lidl Connect service (https://selfcare.lidl-connect.at). It's designed to work with accounts that have at least one active tariff package.

License

MIT License

Disclaimer

This is an unofficial library and is not affiliated with, maintained, authorized, endorsed, or sponsored by Lidl or any of its affiliates (like Drei).

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

lidlconnect_py-0.1.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

lidlconnect_py-0.1.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file lidlconnect_py-0.1.1.tar.gz.

File metadata

  • Download URL: lidlconnect_py-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lidlconnect_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 701255b5249ee40c94362bd69ab255abf20b5990cfe70aa06aa00bc548de2592
MD5 b8a85a7ba756118e2e182b9d2d8e7828
BLAKE2b-256 0885f68febba4d9be129d5c1155caa370521bb32b15cd57b5dd9848414a6e0b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for lidlconnect_py-0.1.1.tar.gz:

Publisher: python-publish.yml on MarcUs7i/LidlConnect.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lidlconnect_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lidlconnect_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lidlconnect_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10fb20516ea3a1739e73ea37f9c18497752f4a46dc0825889535cb9a0068e1a8
MD5 f0d97958ab2fa1dde1f5668f634eba7a
BLAKE2b-256 c55d1bdb293ef2033093ccedba86368c070b2a2dcc5fbe6d22ea24cb9462f923

See more details on using hashes here.

Provenance

The following attestation bundles were made for lidlconnect_py-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on MarcUs7i/LidlConnect.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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