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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edison-parser
3
- Version: 0.1
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
- assert parser.summary == {"MARGARITA": 2, "PESTO": 1}
110
- assert PIZZAQParser.validate(edi)
111
- print(PIZZAQParser.show(edi))
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="360" height="360" alt="Edison">
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
- assert parser.summary == {"MARGARITA": 2, "PESTO": 1}
85
- assert PIZZAQParser.validate(edi)
86
- print(PIZZAQParser.show(edi))
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="360" height="360" alt="Edison">
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.1
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
- assert parser.summary == {"MARGARITA": 2, "PESTO": 1}
110
- assert PIZZAQParser.validate(edi)
111
- print(PIZZAQParser.show(edi))
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="360" height="360" alt="Edison">
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,7 @@
1
1
  {
2
- "tag": "0.1",
2
+ "tag": "0.3",
3
3
  "distance": 0,
4
- "node": "g638644186185f862af1adb2384223ccef9141823",
4
+ "node": "g903d48fb0f27f07def1b2ff3044dee024c863b68",
5
5
  "dirty": false,
6
6
  "branch": "HEAD",
7
7
  "node_date": "2026-10-21"
File without changes
File without changes
File without changes
File without changes