Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ interchange.add_segment(Segment("QTY", ["12", "3"]))
print(interchange.serialize())
```

You may also want to parse a « raw » segment bunch which is not an interchange :
To include or override the Service String Advice segment (`UNA`), just specify it as a regular segment:

```python
interchange.add_segment(Segment("UNA", ":+.? '"))
```

You may also want to parse a « raw » segment bunch which is not an interchange:

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


## Development

### Setup

To develop pydifact, clone the repository and install the dev requirements:

```
```bash
make dev
# or
# pip install -e .[dev]
Expand Down