Skip to content

Commit 3a4c82b

Browse files
authored
describe UNA handling (#79)
The UNA segment definition might not be obvious.
1 parent dbcd164 commit 3a4c82b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ interchange.add_segment(Segment("QTY", ["12", "3"]))
8686
print(interchange.serialize())
8787
```
8888

89-
You may also want to parse a « raw » segment bunch which is not an interchange :
89+
To include or override the Service String Advice segment (`UNA`), just specify it as a regular segment:
90+
91+
```python
92+
interchange.add_segment(Segment("UNA", ":+.? '"))
93+
```
94+
95+
You may also want to parse a « raw » segment bunch which is not an interchange:
9096

9197
```python
9298
from pydifact.segmentcollection import RawSegmentCollection
@@ -110,13 +116,13 @@ In python ecosystem:
110116
- [bots](https://github.com/bots-edi/bots) - huge, with webinterface (bots-monitor), webserver, bots-engine.
111117
- [edicat](https://github.com/notpeter/edicat) - simple, only for separating lines/segments for CLI-piping.
112118

113-
114119
## Development
115120

116121
### Setup
122+
117123
To develop pydifact, clone the repository and install the dev requirements:
118124

119-
```
125+
```bash
120126
make dev
121127
# or
122128
# pip install -e .[dev]

0 commit comments

Comments
 (0)