py37-astor-0.8.0.tgz


Advertisement

Description

py37-astor - Read/rewrite/write Python ASTs

Property Value
Distribution NetBSD 8.1
Repository NetBSD i386
Package filename py37-astor-0.8.0.tgz
Package name py37-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 42.17 KB
Installed size 200.91 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
py37-astor-0.8.0.tgz 0.8.0 amd64 NetBSD
py37-astor - - -

Requires

Name Value
py37-setuptools >= 0.8
python37 >= 3.7.0

Download

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

Install Howto

Install py37-astor tgz package:

# pkg_add py37-astor

See Also

Package Description
py37-astroid-2.2.5.tgz Rebuild a new abstract syntax tree from Python's ast
py37-asttokens-1.1.13.tgz Annotate AST trees with source code positions
py37-async-timeout-3.0.1.tgz Timeout context manager for asyncio programs
py37-async_generator-1.10.tgz Async generators and context managers for Python 3.5+
py37-asyncpg-0.18.3.tgz Asyncio PosgtreSQL driver
py37-asyncssh-1.17.0.tgz Asynchronous SSHv2 client and server library
py37-atomicwrites-1.3.0.tgz Python module for atomic file writes on POSIX
py37-atpublic-1.0.tgz @public decorator for Python
py37-attrs-19.1.0.tgz Attributes without boilerplate
py37-audio-0.2.11.tgz Python bindings for PortAudio
py37-audioread-2.1.8.tgz Audio file decoder
py37-audiotools-3.1.1nb2.tgz Collection of command line audio handling programs
py37-authres-1.1.1.tgz Python implementation of RFC 5451/7001
py37-autobahn-19.6.2.tgz WebSocket client and server library, WAMP real-time framework
py37-autograd-1.1.13.tgz Efficiently computes derivatives of numpy code
Advertisement
Advertisement