python-astor_0.5-1_all.deb


Advertisement

Description

python-astor - Python AST manipulator

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

    Download

    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

    • /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).

    Advertisement
    Advertisement