python-astor_0.5-1_all.deb


Advertisement

Description

python-astor - Python AST manipulator

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Universe amd64
Package name python-astor
Package version 0.5
Package release 1
Package architecture all
Package type deb
Installed size 77 B
Download size 11.09 KB
Official Mirror archive.ubuntu.com
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 2 module bindings only.

Alternatives

Package Version Architecture Repository
python-astor_0.5-1_all.deb 0.5 all Ubuntu Universe
python-astor - - -

Requires

Name Value
python:any >= 2.7.5-5~
python:any << 2.8

Download

Type URL
Binary Package python-astor_0.5-1_all.deb
Source Package python-astor

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-astor deb package:
    # sudo apt-get install python-astor

Files

Path
/usr/lib/python2.7/dist-packages/astor/__init__.py
/usr/lib/python2.7/dist-packages/astor/codegen.py
/usr/lib/python2.7/dist-packages/astor/misc.py
/usr/lib/python2.7/dist-packages/astor/treewalk.py
/usr/lib/python2.7/dist-packages/astor-0.5.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/astor-0.5.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/astor-0.5.egg-info/top_level.txt
/usr/share/doc/python-astor/changelog.Debian.gz
/usr/share/doc/python-astor/copyright

Changelog

2015-05-03 - Tianon Gravi <admwiggin@gmail.com>
python-astor (0.5-1) unstable; urgency=medium
* Update to 0.5 upstream release.
2014-08-16 - Tianon Gravi <admwiggin@gmail.com>
python-astor (0.4-2) unstable; urgency=medium
* Don't ship the tests module (or setuputils.py).
2014-07-10 - Tianon Gravi <admwiggin@gmail.com>
python-astor (0.4-1) unstable; urgency=medium
* Initial release (Closes: #748372).

See Also

Package Description
python-astroid_1.4.4-1_all.deb rebuild a new abstract syntax tree from Python's AST
python-astrometry_0.67+dfsg-1_amd64.deb Astrometry plate solver (Python package)
python-astroml-addons_0.2.2-1_amd64.deb Python Machine Learning library for astronomy (performance addons)
python-astroml_0.3-3_all.deb Python Machine Learning library for astronomy
python-astropy-affiliated_1.1_all.deb Collection of all astropy affiliated packages (Python 2)
python-astropy-doc_1.1.1-3_all.deb Core functionality for performing astrophysics with Python (doc)
python-astropy-helpers_1.1.1-1_all.deb Utilities to install Astropy affiliated packages (Python2)
python-astropy_1.1.1-3_amd64.deb Core functionality for performing astrophysics with Python
python-astroquery-doc_0.2.4+dfsg-1ubuntu1_all.deb Python online astronomical database querying (documentation)
python-astroquery_0.2.4+dfsg-1ubuntu1_all.deb Python online astronomical database querying (Python 2)
python-astroscrappy_1.0.3-6build1_amd64.deb Optimized Cosmic Ray Annihilation in Python 2
python-async_0.6.2-2_all.deb framework to process interdependent tasks in a pool of workers
python-asyncssh-doc_1.3.0-1_all.deb asyncio-based client and server implementation of SSHv2 protocol (doc)
python-aubio_0.4.1-2build4_amd64.deb python interface for aubio, a library for audio segmentation
python-audioread_1.0.3-1build1_all.deb Backend-agnostic audio decoding Python package
Advertisement
Advertisement