$npx skillfedfor your agent

pysml

Python library for EDL21 smart meters using Smart Message Language (SML)

With conditionsPyPI MonitoringReleased May 202677.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pysml-0.1.8-py3-none-any.whl
v0.1.8 · released 2026-05-31 · Python <4.0,>=3.11 · 3 runtime deps: aiohttp, bitstring, serialx

Yes, if you need to read EDL21 smart meters. The library is actively maintained, has low install friction, carries no known vulnerabilities, and is proven in Home Assistant. MIT license is unrestrictive. Main consideration: ensure your meter model and transport method are supported, and your Python environment is 3.11 or later.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later; meter must be accessible via serial, serial-over-TCP, or HTTP.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained with a recent release 75 days ago.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—suitable for most projects.

last release 2026-05-31 (75 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,848 downloads/mo, #14,488 on PyPI

Verify before relying

pip install pysml

import pysml
# Read SML data from serial port, serial-over-TCP, or HTTP endpoint
# See examples/sml-mqtt-bridge.py for MQTT publishing pattern
  • Whether aiohttp, bitstring, and serialx are stable and well-maintained for production use.
  • Performance characteristics when reading from high-frequency meter streams or concurrent connections.
  • Completeness of SML protocol support and compatibility with specific meter models.
  • Whether example code for MQTT publishing is production-ready or demonstration-only.
Same gist for agents: .md · .json

What it is and what it does

pysml is a Python library that reads and decodes Smart Message Language (SML) protocol data from EDL21 smart electricity meters. It abstracts away low-level SML parsing and provides access to OBIS meter values. The library supports multiple transport mechanisms—direct serial connections, serial-over-TCP bridges, and HTTP endpoints—making it flexible for different deployment scenarios.

The package is actively used by Home Assistant's EDL21 integration and includes example code for publishing meter readings to MQTT. It depends on aiohttp, bitstring, and serialx for async HTTP, binary protocol handling, and serial communication. With MIT licensing and support for Python 3.11 through 3.14, it suits home automation, energy monitoring, and utility data collection workflows.

Use it for

  • Read energy consumption data from EDL21 meters in Home Assistant or other home automation systems.
  • Build an MQTT bridge to publish smart meter OBIS values to a message broker for real-time monitoring.
  • Collect meter readings over serial-over-TCP links in remote or networked meter deployments.
  • Parse and log SML protocol data from HTTP-accessible meter endpoints for analytics or billing systems.
  • Integrate smart meter data into custom Python applications for demand-side energy management.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to read EDL21 smart meters.

The library is actively maintained, has low install friction, carries no known vulnerabilities, and is proven in Home Assistant. MIT license is unrestrictive. Main consideration: ensure your meter model and transport method are supported, and your Python environment is 3.11 or later.

Install

pysml on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release 75 days ago. Requires Python 3.11 or later.

Requires Python 3.11 or later; meter must be accessible via serial, serial-over-TCP, or HTTP.

License in practice

MIT license permits commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install pysml

import pysml
# Read SML data from serial port, serial-over-TCP, or HTTP endpoint
# See examples/sml-mqtt-bridge.py for MQTT publishing pattern

Verify before relying

  • Whether aiohttp, bitstring, and serialx are stable and well-maintained for production use.
  • Performance characteristics when reading from high-frequency meter streams or concurrent connections.
  • Completeness of SML protocol support and compatibility with specific meter models.
  • Whether example code for MQTT publishing is production-ready or demonstration-only.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
aiohttpbitstringserialx
MaintenanceActively maintained 75 days since the last release
First released
Downloads77,848 / month, #14,488 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: pysml-0.1.8-py3-none-any.whl

Tags

Capabilities
EDL21 smart meter readingSML parser Pythonsmart meter data collectionOBIS value extractionserial meter communicationsmart message languageenergy meter integration
Topics
smart-meterenergy-monitoringiot-integration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “EDL21 smart meter reading”

  • pysmlReads and parses Smart Message Language (SML) data from EDL21 smart…
  • pydiscovergyAsynchronous Python client for querying Discovergy (now Inexogy)…
  • dlms-cosemA Python library for implementing DLMS/COSEM protocol clients to read…

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also dlms-cosem · dsmr-parser · pysma · pydiscovergy · p1monitor · pysmappee · python-homewizard-energy · ovoenergy · HATasmota · pymysensors