updated readme and changelog for upcoming breaking API changes; skip pylama check for unused imports in clients module;

This commit is contained in:
Nigel Dokter 2017-01-11 17:40:25 +01:00
parent 9b488e74f8
commit f3d8311ac2
5 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,16 @@
Change Log
----------
**0.7** (2017-01-14)
- Internal refactoring related to the way clients feed their data into the parse module. Clients can now supply the telegram data in single characters, lines (which was common) or complete telegram strings.
**IMPORTANT: this release has the following backwards incompatible changes:**
- Client related imports from dsmr_parser.serial and dsmr_parser.protocol have been moved to dsmr_parser.clients (import these from the clients/__init__.py module)
- The .parse() method of TelegramParser, TelegramParserV2_2, TelegramParserV4 now accepts a string containing the entire telegram (including \r\n characters) and not a list
**0.6** (2017-01-04)
- Fixed bug in CRC checksum verification for the asyncio client (`pull request #15 <https://github.com/ndokter/dsmr_parser/pull/15>`_)

View File

@ -26,7 +26,7 @@ Using the serial reader to connect to your smart meter and parse it's telegrams:
from dsmr_parser import telegram_specifications
from dsmr_parser import obis_references
from dsmr_parser.serial import SerialReader, SERIAL_SETTINGS_V4
from dsmr_parser.clients import SerialReader, SERIAL_SETTINGS_V4
serial_reader = SerialReader(
device='/dev/ttyUSB0',

View File

@ -1,8 +1,8 @@
"""Asyncio protocol implementation for handling telegrams."""
from functools import partial
import asyncio
import logging
from functools import partial
from serial_asyncio import create_serial_connection

View File

@ -84,6 +84,3 @@ class AsyncSerialReader(SerialReader):
)
except ParseError as e:
logger.warning('Failed to parse telegram: %s', e)

View File

@ -14,6 +14,9 @@ commands=
py.test --cov=dsmr_parser test {posargs}
pylama dsmr_parser test
[pylama:dsmr_parser/clients/__init__.py]
ignore = W0611
[pylama:pylint]
max_line_length = 100