Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

describe UNA handling #79

Merged
merged 1 commit into from
Feb 27, 2025
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