Skip to main content

EnBW mobility+ Client

⚠️ IMPORTANT DISCLAIMER: This is an unofficial, reverse-engineered client library for the EnBW mobility+ API. EnBW does not provide a public API, so this library was created by analyzing the official mobile app's network traffic. Use at your own risk and responsibility.

Python client library for the EnBW mobility+ API, allowing you to programmatically access your charging history and account information.

Features

  • 🔐 OAuth2 PKCE authentication flow
  • 📊 Fetch charging history with detailed session information
  • 👤 Access user profile and account information
  • 🐍 Modern Python 3.11+ with full type hints
  • 🔄 Automatic token refresh handling
  • 🍪 Session management with proper cookie handling

Installation

pip install enbw-mobilityplus-client

Quick Start

from enbw_mobilityplus_client import EnBWMobilityPlusClient

# Initialize the client
client = EnBWMobilityPlusClient()

# Login with your EnBW mobility+ credentials
client.login("your-email@example.com", "your-password")

# Get your charging history
history = client.get_charging_history(limit=10)

for session in history:
    print(f"{session.started_at}: {session.energy_in_kwh} kWh at {session.address}")

# Get user profiles
profiles = client.get_profiles()
print(f"Account ID: {profiles[0].charging_account_id}")

# Close the client when done
client.close()

Or use it as a context manager:

with EnBWMobilityPlusClient() as client:
    client.login("your-email@example.com", "your-password")
    history = client.get_charging_history()

API Coverage

Currently implemented endpoints:

  • ✅ OAuth2 PKCE Authentication Flow
  • ✅ Token Refresh
  • ✅ User Profiles (/api/v1/profiles)
  • ✅ Charging History (/emobility-complete/api/v2/charginghistory)
  • ⏳ Charging Stations / Map Search (planned)
  • ⏳ Real-time charging session status (planned)
  • ⏳ Tariff information (planned)

Development

Setup

# Clone the repository
git clone https://github.com/mawiak/enbw-mobilityplus-client.git
cd enbw-mobilityplus-client

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install development dependencies
pip install -r requirements-dev.txt

Code Quality

This project uses:

  • Black for code formatting
  • isort for import sorting
  • Flake8 for linting
  • pytest for testing

Run checks:

black src/
isort src/
flake8 src/
pytest

Commit Convention

This project follows Conventional Commits:

  • feat: - New features
  • fix: - Bug fixes
  • docs: - Documentation changes
  • chore: - Maintenance tasks
  • test: - Test changes

Example: feat: add charging session retrieval method

Release Process

Releases are automated using semantic-release:

  1. Push commits to main following conventional commit format
  2. GitHub Actions automatically:
    • Determines version bump (major/minor/patch)
    • Updates CHANGELOG.md
    • Creates GitHub release
    • Publishes to PyPI

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes using conventional commits
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

READ CAREFULLY BEFORE USING THIS LIBRARY

Reverse Engineering Notice

This library was created by reverse-engineering the EnBW mobility+ mobile application's network traffic, as EnBW does not provide an official public API. The implementation is based on analyzing HTTP requests and responses between the official app and EnBW's backend services.

No Affiliation

This project is NOT:

  • Affiliated with, endorsed by, or supported by EnBW Energie Baden-Württemberg AG
  • An official EnBW product or service
  • Guaranteed to work or be maintained

No Warranty & Liability

This software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to:

  • Warranties of merchantability
  • Fitness for a particular purpose
  • Non-infringement

The authors and contributors:

  • Accept NO liability for any damages, data loss, or issues arising from use of this library
  • Are NOT responsible for any violations of EnBW's Terms of Service
  • Provide NO guarantee that this library will continue to work (EnBW may change their API at any time)

Responsible Use

By using this library, you agree to:

✅ DO:

  • Use it only with your own EnBW mobility+ account
  • Respect EnBW's infrastructure and rate limits
  • Use it for personal, non-commercial purposes
  • Keep your credentials secure
  • Comply with all applicable laws and regulations

❌ DON'T:

  • Use it for unauthorized access to other accounts
  • Abuse or overload EnBW's API infrastructure
  • Use it for commercial purposes without authorization
  • Scrape or collect data at scale
  • Violate EnBW's Terms of Service
  • Use it for any malicious or illegal activities

Terms of Service

Using this library to access EnBW's services means you are subject to EnBW mobility+ Terms of Service. You are solely responsible for ensuring your use complies with these terms.

API Changes

EnBW may change, break, or restrict their API at any time without notice. This library may stop working without warning, and the maintainers are under no obligation to update it.

Your Responsibility

YOU are responsible for:

  • Any consequences of using this library
  • Ensuring compliance with EnBW's Terms of Service
  • Protecting your account credentials
  • Any damages or issues that arise from your use

Summary

Use this library at your own risk and responsibility. The authors provide this tool for educational and personal use only, with no guarantees or support.

Support

If you encounter any issues or have questions:

Acknowledgments

Inspired by the elli-client project.

Metadata

Release files for enbw-mobilityplus-client 1.0.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 enbw-mobilityplus-client 1.0.1
File Size Uploaded Provenance Actions
enbw_mobilityplus_client-1.0.1.tar.gz 15.8 kB With provenance Details for enbw_mobilityplus_client-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for enbw-mobilityplus-client 1.0.1
File Interpreter ABI Platform Actions
enbw_mobilityplus_client-1.0.1-py3-none-any.whl Python 3 none any Details for enbw_mobilityplus_client-1.0.1-py3-none-any.whl

Total release size: 29.6 kB

Release files / enbw_mobilityplus_client-1.0.1.tar.gz

Download URL enbw_mobilityplus_client-1.0.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4f1b62476ea955aba861d9511bde45e38030131d063381d2eb25a2f1d00c0a8a
BLAKE2b-256 checksum
How to use checksums
2c35d238cdb466048c0b30db3448bb7e3e818592b6eb623fac8b0d35509b9b0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / enbw_mobilityplus_client-1.0.1-py3-none-any.whl

Download URL enbw_mobilityplus_client-1.0.1-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d265f9f6dc2e4169ce65d1836b7d62a0edf4a91c646cbb8b5b2c9b2f354275a
BLAKE2b-256 checksum
How to use checksums
277f672f48827d06fad2033a7f0352964a35e350813fcc42452f018b73a5c82c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for enbw-mobilityplus-client 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for enbw_mobilityplus_client-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

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