edison-parser 0.1__tar.gz → 0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {edison_parser-0.1/src/edison_parser.egg-info → edison_parser-0.3}/PKG-INFO +17 -6
- {edison_parser-0.1 → edison_parser-0.3}/README.md +16 -5
- {edison_parser-0.1 → edison_parser-0.3/src/edison_parser.egg-info}/PKG-INFO +17 -6
- {edison_parser-0.1 → edison_parser-0.3}/src/edison_parser.egg-info/scm_version.json +2 -2
- {edison_parser-0.1 → edison_parser-0.3}/LICENSE +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/MANIFEST.in +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/pyproject.toml +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/setup.cfg +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison/__init__.py +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison/envelope.py +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison/parser.py +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison/py.typed +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison/tokenizer.py +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison_parser.egg-info/SOURCES.txt +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison_parser.egg-info/dependency_links.txt +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison_parser.egg-info/requires.txt +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison_parser.egg-info/scm_file_list.json +0 -0
- {edison_parser-0.1 → edison_parser-0.3}/src/edison_parser.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edison-parser
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3
|
|
4
4
|
Summary: An EDIFACT parser with a real syntax tree.
|
|
5
5
|
Author-email: Alex Prengère <alex.prengere@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -24,9 +24,15 @@ Requires-Dist: typing-extensions>=4.10
|
|
|
24
24
|
Dynamic: license-file
|
|
25
25
|
|
|
26
26
|
<div align="center">
|
|
27
|
-
<img src="docs/edison.png" width="360" height="360" alt="Edison">
|
|
27
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/docs/edison.png" width="360" height="360" alt="Edison">
|
|
28
28
|
<h1>Edison</h1>
|
|
29
29
|
<p><strong>An EDIFACT parser with a real syntax tree.</strong></p>
|
|
30
|
+
<p>
|
|
31
|
+
<a href="https://github.com/AmadeusITGroup/Edison/actions/workflows/ci.yml"><img src="https://github.com/AmadeusITGroup/Edison/actions/workflows/ci.yml/badge.svg" alt="Build"></a>
|
|
32
|
+
<a href="https://pypi.org/project/edison-parser/"><img src="https://img.shields.io/pypi/v/edison-parser.svg" alt="Version"></a>
|
|
33
|
+
<a href="https://pypi.org/project/edison-parser/"><img src="https://img.shields.io/pypi/pyversions/edison-parser.svg" alt="Python versions"></a>
|
|
34
|
+
<!-- <a href="https://pepy.tech/project/edison-parser"><img src="https://static.pepy.tech/badge/edison-parser" alt="Downloads"></a> -->
|
|
35
|
+
</p>
|
|
30
36
|
</div>
|
|
31
37
|
|
|
32
38
|
Edison is a Python library for parsing EDIFACT messages. Instead of treating a
|
|
@@ -103,16 +109,21 @@ REF+3'
|
|
|
103
109
|
UNT+19+1'
|
|
104
110
|
"""
|
|
105
111
|
|
|
112
|
+
# Create the parser and parse this EDIFACT message.
|
|
113
|
+
# The `summary` attribute is populated by the callbacks.
|
|
106
114
|
parser = PIZZAQParser()
|
|
107
115
|
parser.parse(edi)
|
|
116
|
+
parser.summary # {"MARGARITA": 2, "PESTO": 1}
|
|
108
117
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
118
|
+
# Validate and pretty-print the message.
|
|
119
|
+
PIZZAQParser.validate(edi) # True/False
|
|
120
|
+
PIZZAQParser.show(edi) # to print
|
|
112
121
|
```
|
|
113
122
|
|
|
123
|
+
Here is the output of `PIZZAQParser.show(edi)`.
|
|
124
|
+
|
|
114
125
|
<div align="center">
|
|
115
|
-
<img src="docs/Image.png" width="
|
|
126
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/docs/Image.png" width="364" alt="Edison">
|
|
116
127
|
<p><strong>Tree-based structure.</strong></p>
|
|
117
128
|
</div>
|
|
118
129
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="docs/edison.png" width="360" height="360" alt="Edison">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/docs/edison.png" width="360" height="360" alt="Edison">
|
|
3
3
|
<h1>Edison</h1>
|
|
4
4
|
<p><strong>An EDIFACT parser with a real syntax tree.</strong></p>
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://github.com/AmadeusITGroup/Edison/actions/workflows/ci.yml"><img src="https://github.com/AmadeusITGroup/Edison/actions/workflows/ci.yml/badge.svg" alt="Build"></a>
|
|
7
|
+
<a href="https://pypi.org/project/edison-parser/"><img src="https://img.shields.io/pypi/v/edison-parser.svg" alt="Version"></a>
|
|
8
|
+
<a href="https://pypi.org/project/edison-parser/"><img src="https://img.shields.io/pypi/pyversions/edison-parser.svg" alt="Python versions"></a>
|
|
9
|
+
<!-- <a href="https://pepy.tech/project/edison-parser"><img src="https://static.pepy.tech/badge/edison-parser" alt="Downloads"></a> -->
|
|
10
|
+
</p>
|
|
5
11
|
</div>
|
|
6
12
|
|
|
7
13
|
Edison is a Python library for parsing EDIFACT messages. Instead of treating a
|
|
@@ -78,16 +84,21 @@ REF+3'
|
|
|
78
84
|
UNT+19+1'
|
|
79
85
|
"""
|
|
80
86
|
|
|
87
|
+
# Create the parser and parse this EDIFACT message.
|
|
88
|
+
# The `summary` attribute is populated by the callbacks.
|
|
81
89
|
parser = PIZZAQParser()
|
|
82
90
|
parser.parse(edi)
|
|
91
|
+
parser.summary # {"MARGARITA": 2, "PESTO": 1}
|
|
83
92
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
# Validate and pretty-print the message.
|
|
94
|
+
PIZZAQParser.validate(edi) # True/False
|
|
95
|
+
PIZZAQParser.show(edi) # to print
|
|
87
96
|
```
|
|
88
97
|
|
|
98
|
+
Here is the output of `PIZZAQParser.show(edi)`.
|
|
99
|
+
|
|
89
100
|
<div align="center">
|
|
90
|
-
<img src="docs/Image.png" width="
|
|
101
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/docs/Image.png" width="364" alt="Edison">
|
|
91
102
|
<p><strong>Tree-based structure.</strong></p>
|
|
92
103
|
</div>
|
|
93
104
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edison-parser
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3
|
|
4
4
|
Summary: An EDIFACT parser with a real syntax tree.
|
|
5
5
|
Author-email: Alex Prengère <alex.prengere@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -24,9 +24,15 @@ Requires-Dist: typing-extensions>=4.10
|
|
|
24
24
|
Dynamic: license-file
|
|
25
25
|
|
|
26
26
|
<div align="center">
|
|
27
|
-
<img src="docs/edison.png" width="360" height="360" alt="Edison">
|
|
27
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/docs/edison.png" width="360" height="360" alt="Edison">
|
|
28
28
|
<h1>Edison</h1>
|
|
29
29
|
<p><strong>An EDIFACT parser with a real syntax tree.</strong></p>
|
|
30
|
+
<p>
|
|
31
|
+
<a href="https://github.com/AmadeusITGroup/Edison/actions/workflows/ci.yml"><img src="https://github.com/AmadeusITGroup/Edison/actions/workflows/ci.yml/badge.svg" alt="Build"></a>
|
|
32
|
+
<a href="https://pypi.org/project/edison-parser/"><img src="https://img.shields.io/pypi/v/edison-parser.svg" alt="Version"></a>
|
|
33
|
+
<a href="https://pypi.org/project/edison-parser/"><img src="https://img.shields.io/pypi/pyversions/edison-parser.svg" alt="Python versions"></a>
|
|
34
|
+
<!-- <a href="https://pepy.tech/project/edison-parser"><img src="https://static.pepy.tech/badge/edison-parser" alt="Downloads"></a> -->
|
|
35
|
+
</p>
|
|
30
36
|
</div>
|
|
31
37
|
|
|
32
38
|
Edison is a Python library for parsing EDIFACT messages. Instead of treating a
|
|
@@ -103,16 +109,21 @@ REF+3'
|
|
|
103
109
|
UNT+19+1'
|
|
104
110
|
"""
|
|
105
111
|
|
|
112
|
+
# Create the parser and parse this EDIFACT message.
|
|
113
|
+
# The `summary` attribute is populated by the callbacks.
|
|
106
114
|
parser = PIZZAQParser()
|
|
107
115
|
parser.parse(edi)
|
|
116
|
+
parser.summary # {"MARGARITA": 2, "PESTO": 1}
|
|
108
117
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
118
|
+
# Validate and pretty-print the message.
|
|
119
|
+
PIZZAQParser.validate(edi) # True/False
|
|
120
|
+
PIZZAQParser.show(edi) # to print
|
|
112
121
|
```
|
|
113
122
|
|
|
123
|
+
Here is the output of `PIZZAQParser.show(edi)`.
|
|
124
|
+
|
|
114
125
|
<div align="center">
|
|
115
|
-
<img src="docs/Image.png" width="
|
|
126
|
+
<img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/docs/Image.png" width="364" alt="Edison">
|
|
116
127
|
<p><strong>Tree-based structure.</strong></p>
|
|
117
128
|
</div>
|
|
118
129
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|