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"Phone Number: {client.phone_number}")
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.2.tar.gz (10.9 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.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lidlconnect_py-0.1.2.tar.gz
  • Upload date:
  • Size: 10.9 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.2.tar.gz
Algorithm Hash digest
SHA256 a5410a7982bbe31d25496db5e172f869f25e3cb3442da200c68f1c43edfd603a
MD5 9fc1fa51ec337efddef73ca90783579e
BLAKE2b-256 29a00c1098114d66b88f3bc3c7cf55d82da407d687b3aa6c185fbe8a59c7d890

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on Kizuren/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.2-py3-none-any.whl.

File metadata

  • Download URL: lidlconnect_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c144d845ebe2cc58ddca28836eb13730447fcddc1e20e3ccbd3efaf08868cd05
MD5 9356a2161e17ef8aa560832ddb75b800
BLAKE2b-256 947a6fb3909d5aa81ea1d44db85da8c26c070949f44b7ec2a064c55d07e7e760

See more details on using hashes here.

Provenance

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

Publisher: python-publish.yml on Kizuren/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