Debian Codegraph @

debian/control

raw symbols SCIP
1 Source: python-astor
2 Section: python
3 Priority: optional
4 Maintainer: Debian Python Team <[email protected]>
5 Uploaders: Paul Tagliamonte <[email protected]>,
6 Tianon Gravi <[email protected]>
7 Build-Depends: debhelper-compat (= 13),
8 dh-sequence-python3,
9 pybuild-plugin-pyproject,
10 python3-all,
11 python3-pytest <!nocheck>,
12 python3-setuptools,
13 Standards-Version: 4.6.2
14 Homepage: https://github.com/berkerpeksag/astor/
15 Vcs-Git: https://salsa.debian.org/python-team/packages/python-astor.git
16 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-astor
17 Testsuite: autopkgtest-pkg-pybuild
18
19 Package: python3-astor
20 Architecture: all
21 Depends: ${misc:Depends}, ${python3:Depends}
22 Description: Python 3 AST manipulator
23 astor is designed to allow easy manipulation of Python source via the AST.
24 .
25 There are some other similar libraries, but astor focuses on the following
26 areas:
27 .
28 - Round-trip back to Python via Armin Ronacher's codegen.py module:
29 - Modified AST doesn't need linenumbers, ctx, etc. or otherwise be directly
30 compileable
31 .
32 - Dump pretty-printing of AST
33 - Harder to read than round-tripped code, but more accurate to figure out
34 what is going on.
35 - Easier to read than dump from built-in AST module
36 .
37 - Non-recursive treewalk
38 - Sometimes you want a recursive treewalk (and astor supports that, starting
39 at any node on the tree), but sometimes you don't need to do that. astor
40 doesn't require you to explicitly visit sub-nodes unless you want to:
41 - You can add code that executes before a node's children are visited,
42 and/or
43 - You can add code that executes after a node's children are visited, and/or
44 - You can add code that executes and keeps the node's children from being
45 visited (and optionally visit them yourself via a recursive call)
46 - Write functions to access the tree based on object names and/or attribute
47 names
48 - Enjoy easy access to parent node(s) for tree rewriting
49 .
50 This package provides Python 3 module bindings only.