How to Install and Uninstall python3-parso Package on Kali Linux

Last updated: May 14,2024

1. Install "python3-parso" package

Here is a brief guide to show you how to install python3-parso on Kali Linux

$ sudo apt update $ sudo apt install python3-parso

2. Uninstall "python3-parso" package

This guide let you learn how to uninstall python3-parso on Kali Linux:

$ sudo apt remove python3-parso $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-parso package on Kali Linux

Package: python3-parso
Source: parso
Version: 0.8.3-1
Installed-Size: 361
Maintainer: Piotr Ożarowski
Architecture: all
Depends: python3:any
Size: 67416
SHA256: ec4d950fa9f78e45bdd3f64b7d6778d7b19c07a13a2c4db515f92b840152a3d4
SHA1: 90338ee5ff0bca71656803e42101f63fb8041a5a
MD5sum: 1a8122970305e27914224aa1921a0201
Description: 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, [, , ])
>>> print(expr.get_code())
hello + 1
>>> name = expr.children[0]
>>> name

>>> 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"
Description-md5:
Homepage: https://github.com/davidhalter/parso
Section: python
Priority: optional
Filename: pool/main/p/parso/python3-parso_0.8.3-1_all.deb