edison-parser 0.2__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.2
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
@@ -109,16 +109,21 @@ REF+3'
109
109
  UNT+19+1'
110
110
  """
111
111
 
112
+ # Create the parser and parse this EDIFACT message.
113
+ # The `summary` attribute is populated by the callbacks.
112
114
  parser = PIZZAQParser()
113
115
  parser.parse(edi)
116
+ parser.summary # {"MARGARITA": 2, "PESTO": 1}
114
117
 
115
- assert parser.summary == {"MARGARITA": 2, "PESTO": 1}
116
- assert PIZZAQParser.validate(edi)
117
- print(PIZZAQParser.show(edi))
118
+ # Validate and pretty-print the message.
119
+ PIZZAQParser.validate(edi) # True/False
120
+ PIZZAQParser.show(edi) # to print
118
121
  ```
119
122
 
123
+ Here is the output of `PIZZAQParser.show(edi)`.
124
+
120
125
  <div align="center">
121
- <img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/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">
122
127
  <p><strong>Tree-based structure.</strong></p>
123
128
  </div>
124
129
 
@@ -84,16 +84,21 @@ REF+3'
84
84
  UNT+19+1'
85
85
  """
86
86
 
87
+ # Create the parser and parse this EDIFACT message.
88
+ # The `summary` attribute is populated by the callbacks.
87
89
  parser = PIZZAQParser()
88
90
  parser.parse(edi)
91
+ parser.summary # {"MARGARITA": 2, "PESTO": 1}
89
92
 
90
- assert parser.summary == {"MARGARITA": 2, "PESTO": 1}
91
- assert PIZZAQParser.validate(edi)
92
- print(PIZZAQParser.show(edi))
93
+ # Validate and pretty-print the message.
94
+ PIZZAQParser.validate(edi) # True/False
95
+ PIZZAQParser.show(edi) # to print
93
96
  ```
94
97
 
98
+ Here is the output of `PIZZAQParser.show(edi)`.
99
+
95
100
  <div align="center">
96
- <img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/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">
97
102
  <p><strong>Tree-based structure.</strong></p>
98
103
  </div>
99
104
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edison-parser
3
- Version: 0.2
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
@@ -109,16 +109,21 @@ REF+3'
109
109
  UNT+19+1'
110
110
  """
111
111
 
112
+ # Create the parser and parse this EDIFACT message.
113
+ # The `summary` attribute is populated by the callbacks.
112
114
  parser = PIZZAQParser()
113
115
  parser.parse(edi)
116
+ parser.summary # {"MARGARITA": 2, "PESTO": 1}
114
117
 
115
- assert parser.summary == {"MARGARITA": 2, "PESTO": 1}
116
- assert PIZZAQParser.validate(edi)
117
- print(PIZZAQParser.show(edi))
118
+ # Validate and pretty-print the message.
119
+ PIZZAQParser.validate(edi) # True/False
120
+ PIZZAQParser.show(edi) # to print
118
121
  ```
119
122
 
123
+ Here is the output of `PIZZAQParser.show(edi)`.
124
+
120
125
  <div align="center">
121
- <img src="https://raw.githubusercontent.com/AmadeusITGroup/Edison/main/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">
122
127
  <p><strong>Tree-based structure.</strong></p>
123
128
  </div>
124
129
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "tag": "0.2",
2
+ "tag": "0.3",
3
3
  "distance": 0,
4
- "node": "g82e7d515e1682ec92e09285fb19b461e5d92ceb8",
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