py27-astor-0.8.0.tgz


Advertisement

Description

py27-astor - Read/rewrite/write Python ASTs

Property Value
Distribution NetBSD 8.1
Repository NetBSD i386
Package filename py27-astor-0.8.0.tgz
Package name py27-astor
Package version 0.8.0
Package release -
Package architecture i386
Package type tgz
Category devel python
Homepage https://github.com/berkerpeksag/astor
License 2-clause-bsd
Maintainer -
Download size 41.80 KB
Installed size 225.70 KB
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
** Easy to read generated code as, well, code
* 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

Alternatives

Package Version Architecture Repository
py27-astor-0.8.0.tgz 0.8.0 amd64 NetBSD
py27-astor - - -

Requires

Name Value
py27-setuptools >= 0.8
python27 >= 2.7.1nb2

Download

Type URL
Mirror ftp.netbsd.org
Binary Package py27-astor-0.8.0.tgz
Source Package py27-astor

Install Howto

Install py27-astor tgz package:

# pkg_add py27-astor

See Also

Package Description
py27-asttokens-1.1.13.tgz Annotate AST trees with source code positions
py27-at-spi-1.32.0.tgz Assistive Technology Service Provider Interface
py27-at-spi2-2.24.0.tgz Python Assistive Technology Service Provider Interface
py27-atomicwrites-1.3.0.tgz Python module for atomic file writes on POSIX
py27-attrs-19.1.0.tgz Attributes without boilerplate
py27-audio-0.2.11.tgz Python bindings for PortAudio
py27-audioread-2.1.8.tgz Audio file decoder
py27-audiotools-3.1.1nb2.tgz Collection of command line audio handling programs
py27-authres-1.1.1.tgz Python implementation of RFC 5451/7001
py27-autograd-1.1.13.tgz Efficiently computes derivatives of numpy code
py27-automat-0.7.0.tgz Self-service finite-state machines for the programmer on the go
py27-autopep8-1.4.4.tgz Automatic formatter of Python code to conform to PEP 8
py27-awscli-1.16.178.tgz Universal Command Line Interface for Amazon Web Services
py27-axolotl-0.1.42.tgz Python port of the ratcheting forward secrecy protocol
py27-axolotl-curve25519-0.4.1.2.tgz Python wrapper for curve25519 with ed25519 signatures
Advertisement
Advertisement