Key | Value |
---|---|
FileName | ./usr/lib/python3/dist-packages/parso/python/parser.py |
FileSize | 10640 |
MD5 | 2D13472B3AD3750F9E199A2FC2739434 |
SHA-1 | 0EC1F96BA590F1798E9E7E549035913A380DD49D |
SHA-256 | 739496A44D20F73F71CF4AA0E0D10122286AF6982AFC6CA1557168550D8ABA8A |
SSDEEP | 192:2uUeR5xqd076547ShtBl/pxn2HGk0vdGxTZUJ88+sXWDyEGqA5/P:23exqd46vBk0vAxAp+sXIyExAd |
TLSH | T1AF228413F8114A4C8F975C0F8CDEB660275BA19BB45020B874BC91692F5592B8AFFFE1 |
hashlookup:parent-total | 2 |
hashlookup:trust | 60 |
The searched file hash is included in 2 parent files which include package known and seen by metalookup. A sample is included below:
Key | Value |
---|---|
FileSize | 60582 |
MD5 | 42D6548473400E36406237A5136FCBB6 |
PackageDescription | Python parser that supports error recovery Parso is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors in your Python file. . Parso has been battle-tested by jedi. It was pulled out of jedi to be useful for other projects as well. . Parso consists of a small API to parse Python and analyse the syntax tree. . A simple example: . >>> import parso >>> module = parso.parse('hello + 1', version="3.6") >>> expr = module.children[0] >>> expr PythonNode(arith_expr, [<Name: hello@1,0>, <Operator: +>, <Number: 1>]) >>> print(expr.get_code()) hello + 1 >>> name = expr.children[0] >>> name <Name: hello@1,0> >>> name.end_pos (1, 5) >>> expr.end_pos (1, 9) . To list multiple issues: . >>> grammar = parso.load_grammar() >>> module = grammar.parse('foo +\nbar\ncontinue') >>> error1, error2 = grammar.iter_errors(module) >>> error1.message 'SyntaxError: invalid syntax' >>> error2.message "SyntaxError: 'continue' not properly in loop" |
PackageMaintainer | Piotr Ożarowski <piotr@debian.org> |
PackageName | python-parso |
PackageSection | python |
PackageVersion | 0.2.1-1~bpo9+1 |
SHA-1 | 3657FFE4A1B7113941CA6CBBCA18C10ACAB093EB |
SHA-256 | 27C35F0228AA856836BE1E8AC04909941A2257FB4F5FB1276B6E136BE7C0F8B6 |
Key | Value |
---|---|
FileSize | 60656 |
MD5 | E34DE225735721EB8392EE13EEFA75CF |
PackageDescription | Python parser that supports error recovery - Python 3.X Parso is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors in your Python file. . Parso has been battle-tested by jedi. It was pulled out of jedi to be useful for other projects as well. . Parso consists of a small API to parse Python and analyse the syntax tree. . A simple example: . >>> import parso >>> module = parso.parse('hello + 1', version="3.6") >>> expr = module.children[0] >>> expr PythonNode(arith_expr, [<Name: hello@1,0>, <Operator: +>, <Number: 1>]) >>> print(expr.get_code()) hello + 1 >>> name = expr.children[0] >>> name <Name: hello@1,0> >>> name.end_pos (1, 5) >>> expr.end_pos (1, 9) . To list multiple issues: . >>> grammar = parso.load_grammar() >>> module = grammar.parse('foo +\nbar\ncontinue') >>> error1, error2 = grammar.iter_errors(module) >>> error1.message 'SyntaxError: invalid syntax' >>> error2.message "SyntaxError: 'continue' not properly in loop" |
PackageMaintainer | Piotr Ożarowski <piotr@debian.org> |
PackageName | python3-parso |
PackageSection | python |
PackageVersion | 0.2.1-1~bpo9+1 |
SHA-1 | 4B7136E0F3E9CC672715E379396C60347F1C8C76 |
SHA-256 | FD6330415DD6E8082050E3E1A82A15D763CF9C5CDA3BA975A5A92E4B6AFB372E |