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

Last updated: May 04,2024

1. Install "python3-astor" package

This is a short guide on how to install python3-astor on Kali Linux

$ sudo apt update $ sudo apt install python3-astor

2. Uninstall "python3-astor" package

Please follow the guidance below to uninstall python3-astor on Kali Linux:

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

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

Package: python3-astor
Source: python-astor
Version: 0.8.1-4
Installed-Size: 100
Maintainer: Debian Python Team
Architecture: all
Depends: python3:any
Size: 23456
SHA256: b7f84e6240b34c37067c973196f678e0f69adc247e3cc1ae79e67c517defaac3
SHA1: edcfeca1d012b66bb5a80f9f9339feba6bc9e123
MD5sum: f59ecf637153b3bf162b4d95e6252d50
Description: Python 3 AST manipulator
astor is designed to allow easy manipulation of Python source via the AST.
.
There are some other similar libraries, but astor focuses on the following
areas:
.
- Round-trip back to Python via Armin Ronacher's codegen.py module:
- Modified AST doesn't need linenumbers, ctx, etc. or otherwise be directly
compileable
.
- Dump pretty-printing of AST
- Harder to read than round-tripped code, but more accurate to figure out
what is going on.
- Easier to read than dump from built-in AST module
.
- Non-recursive treewalk
- Sometimes you want a recursive treewalk (and astor supports that, starting
at any node on the tree), but sometimes you don't need to do that. astor
doesn't require you to explicitly visit sub-nodes unless you want to:
- You can add code that executes before a node's children are visited,
and/or
- You can add code that executes after a node's children are visited, and/or
- You can add code that executes and keeps the node's children from being
visited (and optionally visit them yourself via a recursive call)
- Write functions to access the tree based on object names and/or attribute
names
- Enjoy easy access to parent node(s) for tree rewriting
.
This package provides Python 3 module bindings only.
Description-md5:
Homepage: https://github.com/berkerpeksag/astor/
Section: python
Priority: optional
Filename: pool/main/p/python-astor/python3-astor_0.8.1-4_all.deb