python3-astor-0.7.1-1.2.noarch.rpm


Advertisement

Description

python3-astor - Read/rewrite/write Python ASTs

Property Value
Distribution openSUSE Tumbleweed
Repository openSUSE Oss all
Package filename python3-astor-0.7.1-1.2.noarch.rpm
Package name python3-astor
Package version 0.7.1
Package release 1.2
Package architecture noarch
Package type rpm
Category Development/Languages/Python
Homepage https://github.com/berkerpeksag/astor
License BSD-3-Clause
Maintainer -
Download size 53.54 KB
Installed size 197.99 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 an AST back to Python:
- Modified AST doesn't need linenumbers, ctx, etc. or otherwise
be directly compileable for the round-trip to work.
- Easy to read generated code as, well, code
- Can round-trip two different source trees to compare for functional
differences, using the astor.rtrip tool (for example, after PEP8 edits).
- 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
python3-astor - - -

Requires

Name Value
/usr/bin/python -
python(abi) = 3.7

Provides

Name Value
python3-astor = 0.7.1-1.2

Download

Type URL
Mirror widehat.opensuse.org
Binary Package python3-astor-0.7.1-1.2.noarch.rpm
Source Package python-astor-0.7.1-1.2.src.rpm

Install Howto

Install python3-astor rpm package:

# zypper install python3-astor

Files

Path
/usr/lib/python3.7/site-packages/astor/__init__.py
/usr/lib/python3.7/site-packages/astor/code_gen.py
/usr/lib/python3.7/site-packages/astor/codegen.py
/usr/lib/python3.7/site-packages/astor/file_util.py
/usr/lib/python3.7/site-packages/astor/node_util.py
/usr/lib/python3.7/site-packages/astor/op_util.py
/usr/lib/python3.7/site-packages/astor/rtrip.py
/usr/lib/python3.7/site-packages/astor/source_repr.py
/usr/lib/python3.7/site-packages/astor/string_repr.py
/usr/lib/python3.7/site-packages/astor/tree_walk.py
/usr/lib/python3.7/site-packages/astor-0.7.1-py3.7.egg-info/PKG-INFO
/usr/lib/python3.7/site-packages/astor-0.7.1-py3.7.egg-info/SOURCES.txt
/usr/lib/python3.7/site-packages/astor-0.7.1-py3.7.egg-info/dependency_links.txt
/usr/lib/python3.7/site-packages/astor-0.7.1-py3.7.egg-info/top_level.txt
/usr/lib/python3.7/site-packages/astor-0.7.1-py3.7.egg-info/zip-safe
/usr/lib/python3.7/site-packages/astor/__pycache__/__init__.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/__init__.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/code_gen.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/code_gen.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/codegen.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/codegen.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/file_util.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/file_util.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/node_util.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/node_util.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/op_util.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/op_util.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/rtrip.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/rtrip.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/source_repr.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/source_repr.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/string_repr.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/string_repr.cpython-37.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/tree_walk.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/astor/__pycache__/tree_walk.cpython-37.pyc
/usr/share/doc/packages/python3-astor/AUTHORS
/usr/share/doc/packages/python3-astor/README.rst
/usr/share/licenses/python3-astor/LICENSE

Changelog

2018-11-09 - Petr Cervinka <petr@cervinka.net>
- Removed copied link reference from spec file
2018-11-09 - cgoll@suse.com
- fixed rpmlint warnings
2018-11-08 - cgoll@suse.com
- removed not needed module devel
* removed check section
* using license macro
2018-07-25 - cgoll@suse.com
- initial commit of astor 0.7.1 for python2 and python3
* skipped check section, as this was faling

See Also

Package Description
python3-astral-1.10.1-1.1.noarch.rpm Calculations for the position of the sun and moon
python3-astroid-2.2.5-1.1.noarch.rpm Representation of Python source as an AST for pylint
python3-astropy-3.1.2-1.1.i586.rpm Community-developed python astronomy tools
python3-astropy-3.1.2-1.1.x86_64.rpm Community-developed python astronomy tools
python3-astropy-helpers-3.1.1-1.1.noarch.rpm Utilities for building and installing Astropy
python3-astunparse-1.6.2-1.1.noarch.rpm An AST unparser for Python
python3-async_generator-1.10-1.1.noarch.rpm Async generators and context managers for Python 3.5+
python3-async_timeout-3.0.1-1.1.noarch.rpm Timeout context manager for asyncio programs
python3-asyncssh-1.16.1-2.1.noarch.rpm Asynchronous SSHv2 client and server library
python3-asynctest-0.12.2-1.2.noarch.rpm Enhancement for the unittest with features from asyncio libraries
python3-atom-0.4.3-1.1.i586.rpm Memory efficient Python objects
python3-atom-0.4.3-1.1.x86_64.rpm Memory efficient Python objects
python3-atomicwrites-1.3.0-1.1.noarch.rpm Atomic file writes for Python
python3-atspi-2.32.1-1.1.noarch.rpm Python bindings for the Assistive Technology Service Provider Interface
python3-attr-0.3.1-3.2.noarch.rpm Python module for setting attributes of target functions or classes
Advertisement
Advertisement