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.0.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.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lidlconnect_py-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 16f986f043dd0daa2f9385b9ba9ad810b4f7952e18262870fa7a26b531f7bd9e
MD5 51eea8d07721a111b5a613ca86fd9389
BLAKE2b-256 048bb0e20dfe83a7352a36e7742c73bb0f7e08c25ad5964aa8fecf7457ab8c26

See more details on using hashes here.

Provenance

The following attestation bundles were made for lidlconnect_py-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: lidlconnect_py-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50765c0826a7748239e38843335f402f5a18c18814fc767b6c938e03edca82b7
MD5 e38b24e15da4d3e266a9ead6e032cb45
BLAKE2b-256 19e58ea34aad00b60d19d585c3897b0bc25b8613c232f956ce6dae9e9eebd011

See more details on using hashes here.

Provenance

The following attestation bundles were made for lidlconnect_py-0.1.0-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