How to Install and Uninstall python3-astor Package on Ubuntu 16.04 LTS (Xenial Xerus)
Last updated: December 23,2024
1. Install "python3-astor" package
Please follow the step by step instructions below to install python3-astor on Ubuntu 16.04 LTS (Xenial Xerus)
$
sudo apt update
Copied
$
sudo apt install
python3-astor
Copied
2. Uninstall "python3-astor" package
Please follow the guidance below to uninstall python3-astor on Ubuntu 16.04 LTS (Xenial Xerus):
$
sudo apt remove
python3-astor
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the python3-astor package on Ubuntu 16.04 LTS (Xenial Xerus)
Package: python3-astor
Priority: optional
Section: universe/python
Installed-Size: 78
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: python-astor
Version: 0.5-1
Depends: python3:any (>= 3.3.2-2~)
Filename: pool/universe/p/python-astor/python3-astor_0.5-1_all.deb
Size: 11432
MD5sum: 6204c5e624517fc3f4390c3565048703
SHA1: 133f4f8ec35b73f956ccdc9bdf40d10bb36feb4f
SHA256: 20148260b1472830def070423503c1d3926f8d2b3fafdd71771ce47408de6b12
Description-en: 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: 8fd168e0e528757681d7a38cdc7c66c0
Homepage: https://github.com/berkerpeksag/astor/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Priority: optional
Section: universe/python
Installed-Size: 78
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: python-astor
Version: 0.5-1
Depends: python3:any (>= 3.3.2-2~)
Filename: pool/universe/p/python-astor/python3-astor_0.5-1_all.deb
Size: 11432
MD5sum: 6204c5e624517fc3f4390c3565048703
SHA1: 133f4f8ec35b73f956ccdc9bdf40d10bb36feb4f
SHA256: 20148260b1472830def070423503c1d3926f8d2b3fafdd71771ce47408de6b12
Description-en: 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: 8fd168e0e528757681d7a38cdc7c66c0
Homepage: https://github.com/berkerpeksag/astor/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu