Skip to content

Commit 1ef8dd2

Browse files
authored
Update README.md
1 parent 82c09d1 commit 1ef8dd2

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,22 @@ print("built_msg: ", built_msg)
270270
assert EXPECTED_MSG == built_msg
271271
```
272272

273+
## How to install library
274+
```bash
275+
$ pip install git+https://github.com/bieli/IoText-data-protocol@main#egg=IoText-data-protocol
276+
277+
## test in REPL
278+
$ python3
279+
Python 3.8.10 (default, Nov 22 2023, 10:22:35)
280+
...
281+
>>> from src.builders.iot_ext_item_data_builder import IoTextItemDataBuilder
282+
>>> b = IoTextItemDataBuilder(123, 'D1')
283+
>>> b
284+
<src.builders.iot_ext_item_data_builder.IoTextItemDataBuilder object at 0x7f9ebbc1d550>
285+
>>> str(b)
286+
't|123,d|D1'
287+
```
288+
273289
## Code coverage graph
274290

275291
[![codecov-graph](https://codecov.io/gh/bieli/IoText-data-protocol/branch/main/graphs/tree.svg?token=L8FFQNPQXI)](https://codecov.io/gh/bieli/IoText-data-protocol)

0 commit comments

Comments
 (0)