{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"},{"label":"Communications","url":"https://skillfed.io/packages/category/communications"}],"enrichment":{"capability":"A Python library for implementing DLMS/COSEM protocol clients to read and write data on energy meters over serial or TCP connections, handling protocol state management, APDU encoding/decoding, and encryption.","skillfed_tags":["smart-metering","protocol-implementation","energy-data"],"use_cases":["Read energy consumption data from smart meters in production networks using IDIS or DSMR standards.","Implement automated meter reading (AMR) systems that poll multiple meters over TCP or serial connections.","Develop meter integration layers for distribution service operators (DSOs) with manufacturer-specific meter configurations.","Test and debug DLMS/COSEM protocol communication with meters or test servers in development environments.","Build non-commercial research or educational tools for studying smart meter protocols and data models."],"what_it_does":"dlms-cosem is a Python client library for the DLMS/COSEM protocol, which is the international standard for smart meter communication. It provides low-level protocol handling\u2014APDU encoding and decoding, encryption/decryption, and session state management\u2014so you can read and write data on energy meters. The library implements a sans-io design, meaning the protocol logic is separate from I/O, but ships with a blocking client for serial (HDLC) and TCP transports. It supports authentication methods including HLS-GMAC, LLS, and HLS-Common, as well as global ciphering for encrypted communication.\n\nYou use it by composing a transport (TCP or serial), an authentication method, and a DlmsClient, then call methods like get(), set(), and action() to interact with meter attributes. The library is designed for reading invocation counters, energy consumption data, and other meter-specific attributes defined by OBIS codes. It has been tested on several real meters (Iskraemeco AM550, Itron SL7000, Hexing HXF300, and others) and is actively maintained, though it does not yet support building a full meter emulator.","worth_installing":"Yes, if you need to communicate with DLMS/COSEM meters and accept the Business Source License restrictions. The library is actively maintained, has low install friction, no known vulnerabilities, and provides a well-structured sans-io implementation. However, verify that the license permits your use case (commercial meter reading is restricted unless you contact the maintainer) and that your target meters are supported or compatible with the library's abstraction layer."},"id":"dlms-cosem","links":{"html":"https://skillfed.io/packages/dlms-cosem","md":"https://skillfed.io/packages/dlms-cosem.md","pypi":"https://pypi.org/project/dlms-cosem/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-03-26","license_spdx":null,"license_treatment":"permissive","name":"dlms-cosem","python_support":"supports_current","summary":"A Python library for DLMS/COSEM"},"popularity":{"monthly_downloads":84187,"position":14021,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"25.1.0"}
