py36-astor-0.8.0.tgz


Advertisement

Description

py36-astor - Read/rewrite/write Python ASTs

Property Value
Distribution NetBSD 7.0
Repository NetBSD amd64
Package filename py36-astor-0.8.0.tgz
Package name py36-astor
Package version 0.8.0
Package release -
Package architecture amd64
Package type tgz
Category devel python
Homepage https://github.com/berkerpeksag/astor
License 2-clause-bsd
Maintainer -
Download size 41.43 KB
Installed size 201.18 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
py36-astor-0.8.0.tgz 0.8.0 i386 NetBSD
py36-astor - - -

Requires

Name Value
py36-setuptools >= 0.8
python36 >= 3.6.0

Download

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

Install Howto

Install py36-astor tgz package:

# pkg_add py36-astor

See Also

Package Description
py36-astroid-2.2.5.tgz Rebuild a new abstract syntax tree from Python's ast
py36-asttokens-1.1.13.tgz Annotate AST trees with source code positions
py36-async-timeout-3.0.1.tgz Timeout context manager for asyncio programs
py36-async_generator-1.10.tgz Async generators and context managers for Python 3.5+
py36-asyncpg-0.18.3.tgz Asyncio PosgtreSQL driver
py36-asyncssh-1.17.0.tgz Asynchronous SSHv2 client and server library
py36-at-spi2-2.24.0.tgz Python Assistive Technology Service Provider Interface
py36-atomicwrites-1.3.0.tgz Python module for atomic file writes on POSIX
py36-atpublic-1.0.tgz @public decorator for Python
py36-attic-0.16nb1.tgz Deduplicating backup program
py36-attrs-19.1.0.tgz Attributes without boilerplate
py36-audio-0.2.11.tgz Python bindings for PortAudio
py36-audioread-2.1.8.tgz Audio file decoder
py36-audiotools-3.1.1nb2.tgz Collection of command line audio handling programs
py36-authres-1.1.1.tgz Python implementation of RFC 5451/7001
Advertisement
Advertisement