PyPosAST 1.5.0__tar.gz → 1.7.0__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.
pyposast-1.7.0/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Universidade Federal Fluminense (UFF)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,306 @@
1
+ Metadata-Version: 2.4
2
+ Name: PyPosAST
3
+ Version: 1.7.0
4
+ Summary: Extends Python ast nodes with positional informations
5
+ Author-email: João Felipe Pimentel <joaofelipenp@gmail.com>
6
+ License: MIT License
7
+ Project-URL: Homepage, https://github.com/JoaoFelipe/PyPosAST
8
+ Project-URL: Repository, https://github.com/JoaoFelipe/PyPosAST.git
9
+ Project-URL: Issues, https://github.com/JoaoFelipe/PyPosAST/issues
10
+ Keywords: ast,python,position,offset
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Topic :: Software Development :: Compilers
14
+ Classifier: Topic :: Software Development :: Interpreters
15
+ Classifier: Topic :: Software Development :: Pre-processors
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 2.7
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.6
20
+ Classifier: Programming Language :: Python :: 3.7
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: 3.15
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE
31
+ Dynamic: license-file
32
+
33
+ PyPosAST
34
+ ==========
35
+
36
+ This project extends Python ast nodes with positional informations, such as where the ast node starts and finishes in the code.
37
+
38
+ I (João Felipe Pimentel) started this library to help me with ast analysis to help me with ast analises on [noWorkflow](https://github.com/gems-uff/noworkflow).
39
+
40
+ Installing and using PyPosAST is simple and easy. Please check our installation and basic usage guidelines below.
41
+
42
+ This package currently supports Python 2.7 and Python 3.6 through 3.15.
43
+
44
+
45
+ Differences between Python AST positions and PyPosAST positions.
46
+ ------------------
47
+
48
+
49
+ This project was originally created before Python 3.9 added `end_lineno` and `end_col_offset` with the goal of fully identifying the AST nodes in the code. Thus, it enrinches the existing AST nodes with different attributes:
50
+
51
+ <table>
52
+ <tr>
53
+ <th>Attribute</th>
54
+ <th>AST</th>
55
+ <th>PyPosAST</th>
56
+ </tr>
57
+ <tr>
58
+ <th>Start line</th>
59
+ <td>
60
+
61
+ `node.lineno`
62
+
63
+ </td>
64
+ <td>
65
+
66
+ `node.first_line`
67
+
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <th>Start column</th>
72
+ <td>
73
+
74
+ `node.col_offset`
75
+
76
+ </td>
77
+ <td>
78
+
79
+ `node.first_col`
80
+
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <th>End line</th>
85
+ <td>
86
+
87
+ `node.end_lineno`
88
+
89
+ </td>
90
+ <td>
91
+
92
+ `node.last_line`
93
+
94
+ </td>
95
+ </tr>
96
+ <tr>
97
+ <th>End column</th>
98
+ <td>
99
+
100
+ `node.end_lineno`
101
+
102
+ </td>
103
+ <td>
104
+
105
+ `node.last_col`
106
+
107
+ </td>
108
+ </tr>
109
+
110
+ </table>
111
+
112
+
113
+
114
+ There are also some key differences on the interpretation of what is the start and the end of a node.
115
+
116
+ - In function definitions and class definitions that have decorators, PyPosAST considers the start of the FunctionDef node as the start of the first decorator, while Python AST uses the start of `def`/`class`.
117
+ - In expressions surrounded by parentheses, PyPosAST includes the parentheses in the position of the node.
118
+ - In match_case nodes, PyPosAST includes the case keyword as part of the node to be consistent with other types of nodes.
119
+
120
+ Moreover, PyPosAST extracts some positions that the Python AST does not extract (e.g., positions of identifier nodes, which are str on the ast). Some of them are available on pseudo-nodes (`node.name_node`, `node.op_pos`, ...), while other positions are integrated on the nodes themselves.
121
+
122
+ The following table presents some of these differences.
123
+
124
+ <table>
125
+ <tr>
126
+ <th> Code </th>
127
+ <th> Node </th>
128
+ <th> Tool </th>
129
+ <th> Start line </th>
130
+ <th> Start column </th>
131
+ <th> End line </th>
132
+ <th> End column </th>
133
+ </tr>
134
+ <tr>
135
+ <td rowspan="3">
136
+
137
+ ```python
138
+ @dec
139
+ def f():
140
+ pass
141
+ ```
142
+
143
+ </td>
144
+ <td rowspan="2">FunctionDef</td>
145
+ <td>AST</td>
146
+ <td style="color: blue">2</td>
147
+ <td>0</td>
148
+ <td>3</td>
149
+ <td>7</td>
150
+ </tr>
151
+ <tr>
152
+ <td>PyPosAST</td>
153
+ <td style="color: blue">1</td>
154
+ <td>0</td>
155
+ <td>3</td>
156
+ <td>7</td>
157
+ </tr>
158
+ <tr>
159
+ <td style="color: blue">FunctionDef.name_node</td>
160
+ <td>PyPosAST</td>
161
+ <td>2</td>
162
+ <td>4</td>
163
+ <td>2</td>
164
+ <td>5</td>
165
+ </tr>
166
+
167
+ <tr>
168
+ <td rowspan="2">
169
+
170
+ ```python
171
+ (a.b)
172
+ ```
173
+
174
+ </td>
175
+ <td rowspan="2">Attribute</td>
176
+ <td>AST</td>
177
+ <td>1</td>
178
+ <td style="color: blue">1</td>
179
+ <td>1</td>
180
+ <td style="color: blue">4</td>
181
+ </tr>
182
+ <tr>
183
+ <td>PyPosAST</td>
184
+ <td>1</td>
185
+ <td style="color: blue">0</td>
186
+ <td>1</td>
187
+ <td style="color: blue">5</td>
188
+ </tr>
189
+
190
+ <tr>
191
+ <td rowspan="2">
192
+
193
+ ```python
194
+ match x:
195
+ case y:
196
+ pass
197
+ ```
198
+
199
+ </td>
200
+ <td rowspan="2">match_case</td>
201
+ <td>AST</td>
202
+ <td>2</td>
203
+ <td style="color: blue">9</td>
204
+ <td style="color: blue">-</td>
205
+ <td style="color: blue">-</td>
206
+ </tr>
207
+ <tr>
208
+ <td>PyPosAST</td>
209
+ <td>2</td>
210
+ <td style="color: blue">4</td>
211
+ <td style="color: blue">3</td>
212
+ <td style="color: blue">12</td>
213
+ </tr>
214
+
215
+
216
+ </table>
217
+
218
+
219
+ Limitation: PyPosAST currently only works with unicode code, since it parses the script again to obtain the position of all elements.
220
+
221
+
222
+
223
+ Quick Installation
224
+ ------------------
225
+
226
+ To install PyPosAST, you should follow these basic instructions:
227
+
228
+ If you have pip, just run:
229
+ ```bash
230
+ $ pip install pyposast
231
+ ```
232
+
233
+
234
+ If you do not have pip, but already have Git (to clone our repository) and Python:
235
+ ```bash
236
+ $ git clone git@github.com:JoaoFelipe/pyposast.git
237
+ $ cd pyposast
238
+ $ ./setup.py install
239
+ ```
240
+ This installs PyPosAST on your system.
241
+
242
+ Usage
243
+ -----------
244
+
245
+ Just use the 'parse' from pyposast it instead of ast.parse:
246
+ ```python
247
+ import pyposast
248
+ code = ("variable = 1234\n"
249
+ "if variable:\n"
250
+ " result = 2 + 2\n"
251
+ "else:\n"
252
+ " result = 1")
253
+ tree = pyposast.parse(code, filename='__main__', mode='exec')
254
+ ```
255
+
256
+ This will add the fields first_line, first_col, last_line, last_col, uid, op_pos to the nodes as following:
257
+ ```
258
+ Module -> first_line=1, first_col=0, last_line=5, last_col=14, uid=(5, 14)
259
+ body[0]=Assign: firts_line=1, first_col=0, last_line=1, last_col=15, uid=(1, 15)
260
+ targets[0]=Name: id='variable', first_line=1, firts_col=0, last_line=1, last_col=8, uid=(1, 8)
261
+ op_pos[0]=Node: first_line=1, first_col=9, last_line=1, last_col=10, uid=(1, 10)
262
+ value=Num: n=1234, first_line=1, first_col=11, last_line=1, last_col=15, uid=(1, 15)
263
+ body[1]=If: first_line=2, first_col=0, last_line=5, last_col=14, uid=(2, 2)
264
+ test=Name: id='variable', first_line=2, first_col=3, last_line=2, last_col=11, uid=(2, 11)
265
+ body[0]=Assign: first_line=3, first_col=4, last_line=3, last_col=20, uid=(3, 20)
266
+ targets[0]=Name: id='result', first_line=3, first_col=4, last_line=3, last_col=10, uid=(3, 10)
267
+ op_pos[0]=Node: first_line=3, first_col=11, last_line=3, last_col=12, uid=(3, 12)
268
+ value=BinOp: first_line=3, first_col=13, last_line=3, last_col=18, uid=(3, 18)
269
+ op=Add()
270
+ left=Num: n=2, first_line=3, first_col=13, last_line=3, last_col=14, uid=(3, 14)
271
+ right=Num: n=2, first_line=3, first_col=17, last_line=3, last_col=18, uid=(3, 18)
272
+ op_pos=Node: first_line=3, first_col=15, last_line=3, last_col=16, uid=(3, 16)
273
+ orelse[0]=Assign: first_line=5, first_col=4, last_line=5, last_col=14, uid=(5, 14)
274
+ targets[0]=Name: id='result', first_line=5, first_col=4, last_line=5, last_col=10, uid=(5, 10)
275
+ op_pos[0]=Node: first_line=5, first_col=11, last_line=5, last_col=12, uid=(5, 12)
276
+ value=Num: n=1, first_line=5, first_col=13, last_line=5, last_col=14, uid=(5, 14)
277
+ ```
278
+
279
+ The resulting tree can be used as usual with any AST visitor
280
+
281
+ Contact
282
+ ----
283
+
284
+ Do not hesitate to contact me:
285
+
286
+ * João Felipe Pimentel <joaofelipenp@gmail.com>
287
+
288
+ License Terms
289
+ -------------
290
+
291
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
292
+ this software and associated documentation files (the "Software"), to deal in
293
+ the Software without restriction, including without limitation the rights to
294
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
295
+ the Software, and to permit persons to whom the Software is furnished to do so,
296
+ subject to the following conditions:
297
+
298
+ The above copyright notice and this permission notice shall be included in all
299
+ copies or substantial portions of the Software.
300
+
301
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
302
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
303
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
304
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
305
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
306
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,306 @@
1
+ Metadata-Version: 2.4
2
+ Name: PyPosAST
3
+ Version: 1.7.0
4
+ Summary: Extends Python ast nodes with positional informations
5
+ Author-email: João Felipe Pimentel <joaofelipenp@gmail.com>
6
+ License: MIT License
7
+ Project-URL: Homepage, https://github.com/JoaoFelipe/PyPosAST
8
+ Project-URL: Repository, https://github.com/JoaoFelipe/PyPosAST.git
9
+ Project-URL: Issues, https://github.com/JoaoFelipe/PyPosAST/issues
10
+ Keywords: ast,python,position,offset
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Topic :: Software Development :: Compilers
14
+ Classifier: Topic :: Software Development :: Interpreters
15
+ Classifier: Topic :: Software Development :: Pre-processors
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 2.7
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.6
20
+ Classifier: Programming Language :: Python :: 3.7
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
27
+ Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: 3.15
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE
31
+ Dynamic: license-file
32
+
33
+ PyPosAST
34
+ ==========
35
+
36
+ This project extends Python ast nodes with positional informations, such as where the ast node starts and finishes in the code.
37
+
38
+ I (João Felipe Pimentel) started this library to help me with ast analysis to help me with ast analises on [noWorkflow](https://github.com/gems-uff/noworkflow).
39
+
40
+ Installing and using PyPosAST is simple and easy. Please check our installation and basic usage guidelines below.
41
+
42
+ This package currently supports Python 2.7 and Python 3.6 through 3.15.
43
+
44
+
45
+ Differences between Python AST positions and PyPosAST positions.
46
+ ------------------
47
+
48
+
49
+ This project was originally created before Python 3.9 added `end_lineno` and `end_col_offset` with the goal of fully identifying the AST nodes in the code. Thus, it enrinches the existing AST nodes with different attributes:
50
+
51
+ <table>
52
+ <tr>
53
+ <th>Attribute</th>
54
+ <th>AST</th>
55
+ <th>PyPosAST</th>
56
+ </tr>
57
+ <tr>
58
+ <th>Start line</th>
59
+ <td>
60
+
61
+ `node.lineno`
62
+
63
+ </td>
64
+ <td>
65
+
66
+ `node.first_line`
67
+
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <th>Start column</th>
72
+ <td>
73
+
74
+ `node.col_offset`
75
+
76
+ </td>
77
+ <td>
78
+
79
+ `node.first_col`
80
+
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <th>End line</th>
85
+ <td>
86
+
87
+ `node.end_lineno`
88
+
89
+ </td>
90
+ <td>
91
+
92
+ `node.last_line`
93
+
94
+ </td>
95
+ </tr>
96
+ <tr>
97
+ <th>End column</th>
98
+ <td>
99
+
100
+ `node.end_lineno`
101
+
102
+ </td>
103
+ <td>
104
+
105
+ `node.last_col`
106
+
107
+ </td>
108
+ </tr>
109
+
110
+ </table>
111
+
112
+
113
+
114
+ There are also some key differences on the interpretation of what is the start and the end of a node.
115
+
116
+ - In function definitions and class definitions that have decorators, PyPosAST considers the start of the FunctionDef node as the start of the first decorator, while Python AST uses the start of `def`/`class`.
117
+ - In expressions surrounded by parentheses, PyPosAST includes the parentheses in the position of the node.
118
+ - In match_case nodes, PyPosAST includes the case keyword as part of the node to be consistent with other types of nodes.
119
+
120
+ Moreover, PyPosAST extracts some positions that the Python AST does not extract (e.g., positions of identifier nodes, which are str on the ast). Some of them are available on pseudo-nodes (`node.name_node`, `node.op_pos`, ...), while other positions are integrated on the nodes themselves.
121
+
122
+ The following table presents some of these differences.
123
+
124
+ <table>
125
+ <tr>
126
+ <th> Code </th>
127
+ <th> Node </th>
128
+ <th> Tool </th>
129
+ <th> Start line </th>
130
+ <th> Start column </th>
131
+ <th> End line </th>
132
+ <th> End column </th>
133
+ </tr>
134
+ <tr>
135
+ <td rowspan="3">
136
+
137
+ ```python
138
+ @dec
139
+ def f():
140
+ pass
141
+ ```
142
+
143
+ </td>
144
+ <td rowspan="2">FunctionDef</td>
145
+ <td>AST</td>
146
+ <td style="color: blue">2</td>
147
+ <td>0</td>
148
+ <td>3</td>
149
+ <td>7</td>
150
+ </tr>
151
+ <tr>
152
+ <td>PyPosAST</td>
153
+ <td style="color: blue">1</td>
154
+ <td>0</td>
155
+ <td>3</td>
156
+ <td>7</td>
157
+ </tr>
158
+ <tr>
159
+ <td style="color: blue">FunctionDef.name_node</td>
160
+ <td>PyPosAST</td>
161
+ <td>2</td>
162
+ <td>4</td>
163
+ <td>2</td>
164
+ <td>5</td>
165
+ </tr>
166
+
167
+ <tr>
168
+ <td rowspan="2">
169
+
170
+ ```python
171
+ (a.b)
172
+ ```
173
+
174
+ </td>
175
+ <td rowspan="2">Attribute</td>
176
+ <td>AST</td>
177
+ <td>1</td>
178
+ <td style="color: blue">1</td>
179
+ <td>1</td>
180
+ <td style="color: blue">4</td>
181
+ </tr>
182
+ <tr>
183
+ <td>PyPosAST</td>
184
+ <td>1</td>
185
+ <td style="color: blue">0</td>
186
+ <td>1</td>
187
+ <td style="color: blue">5</td>
188
+ </tr>
189
+
190
+ <tr>
191
+ <td rowspan="2">
192
+
193
+ ```python
194
+ match x:
195
+ case y:
196
+ pass
197
+ ```
198
+
199
+ </td>
200
+ <td rowspan="2">match_case</td>
201
+ <td>AST</td>
202
+ <td>2</td>
203
+ <td style="color: blue">9</td>
204
+ <td style="color: blue">-</td>
205
+ <td style="color: blue">-</td>
206
+ </tr>
207
+ <tr>
208
+ <td>PyPosAST</td>
209
+ <td>2</td>
210
+ <td style="color: blue">4</td>
211
+ <td style="color: blue">3</td>
212
+ <td style="color: blue">12</td>
213
+ </tr>
214
+
215
+
216
+ </table>
217
+
218
+
219
+ Limitation: PyPosAST currently only works with unicode code, since it parses the script again to obtain the position of all elements.
220
+
221
+
222
+
223
+ Quick Installation
224
+ ------------------
225
+
226
+ To install PyPosAST, you should follow these basic instructions:
227
+
228
+ If you have pip, just run:
229
+ ```bash
230
+ $ pip install pyposast
231
+ ```
232
+
233
+
234
+ If you do not have pip, but already have Git (to clone our repository) and Python:
235
+ ```bash
236
+ $ git clone git@github.com:JoaoFelipe/pyposast.git
237
+ $ cd pyposast
238
+ $ ./setup.py install
239
+ ```
240
+ This installs PyPosAST on your system.
241
+
242
+ Usage
243
+ -----------
244
+
245
+ Just use the 'parse' from pyposast it instead of ast.parse:
246
+ ```python
247
+ import pyposast
248
+ code = ("variable = 1234\n"
249
+ "if variable:\n"
250
+ " result = 2 + 2\n"
251
+ "else:\n"
252
+ " result = 1")
253
+ tree = pyposast.parse(code, filename='__main__', mode='exec')
254
+ ```
255
+
256
+ This will add the fields first_line, first_col, last_line, last_col, uid, op_pos to the nodes as following:
257
+ ```
258
+ Module -> first_line=1, first_col=0, last_line=5, last_col=14, uid=(5, 14)
259
+ body[0]=Assign: firts_line=1, first_col=0, last_line=1, last_col=15, uid=(1, 15)
260
+ targets[0]=Name: id='variable', first_line=1, firts_col=0, last_line=1, last_col=8, uid=(1, 8)
261
+ op_pos[0]=Node: first_line=1, first_col=9, last_line=1, last_col=10, uid=(1, 10)
262
+ value=Num: n=1234, first_line=1, first_col=11, last_line=1, last_col=15, uid=(1, 15)
263
+ body[1]=If: first_line=2, first_col=0, last_line=5, last_col=14, uid=(2, 2)
264
+ test=Name: id='variable', first_line=2, first_col=3, last_line=2, last_col=11, uid=(2, 11)
265
+ body[0]=Assign: first_line=3, first_col=4, last_line=3, last_col=20, uid=(3, 20)
266
+ targets[0]=Name: id='result', first_line=3, first_col=4, last_line=3, last_col=10, uid=(3, 10)
267
+ op_pos[0]=Node: first_line=3, first_col=11, last_line=3, last_col=12, uid=(3, 12)
268
+ value=BinOp: first_line=3, first_col=13, last_line=3, last_col=18, uid=(3, 18)
269
+ op=Add()
270
+ left=Num: n=2, first_line=3, first_col=13, last_line=3, last_col=14, uid=(3, 14)
271
+ right=Num: n=2, first_line=3, first_col=17, last_line=3, last_col=18, uid=(3, 18)
272
+ op_pos=Node: first_line=3, first_col=15, last_line=3, last_col=16, uid=(3, 16)
273
+ orelse[0]=Assign: first_line=5, first_col=4, last_line=5, last_col=14, uid=(5, 14)
274
+ targets[0]=Name: id='result', first_line=5, first_col=4, last_line=5, last_col=10, uid=(5, 10)
275
+ op_pos[0]=Node: first_line=5, first_col=11, last_line=5, last_col=12, uid=(5, 12)
276
+ value=Num: n=1, first_line=5, first_col=13, last_line=5, last_col=14, uid=(5, 14)
277
+ ```
278
+
279
+ The resulting tree can be used as usual with any AST visitor
280
+
281
+ Contact
282
+ ----
283
+
284
+ Do not hesitate to contact me:
285
+
286
+ * João Felipe Pimentel <joaofelipenp@gmail.com>
287
+
288
+ License Terms
289
+ -------------
290
+
291
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
292
+ this software and associated documentation files (the "Software"), to deal in
293
+ the Software without restriction, including without limitation the rights to
294
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
295
+ the Software, and to permit persons to whom the Software is furnished to do so,
296
+ subject to the following conditions:
297
+
298
+ The above copyright notice and this permission notice shall be included in all
299
+ copies or substantial portions of the Software.
300
+
301
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
302
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
303
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
304
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
305
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
306
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +1,6 @@
1
+ LICENSE
1
2
  README.md
2
- setup.cfg
3
+ pyproject.toml
3
4
  setup.py
4
5
  PyPosAST.egg-info/PKG-INFO
5
6
  PyPosAST.egg-info/SOURCES.txt
@@ -11,4 +12,9 @@ pyposast/cross_version.py
11
12
  pyposast/node_helpers.py
12
13
  pyposast/parser.py
13
14
  pyposast/utils.py
14
- pyposast/visitor.py
15
+ pyposast/visitor.py
16
+ tests/test_expr.py
17
+ tests/test_extra.py
18
+ tests/test_misc.py
19
+ tests/test_mod.py
20
+ tests/test_stmt.py