Python ast Module
This page shows the popular functions and classes defined in the
ast module.
The items are ordered by their popularity in 40,000 open source Python projects.
If you can not find a good example below, you can try
the search function
to search modules.
-
Used in 1203 projects
-
2. parse()Used in 453 projects
-
3. Name()Used in 246 projects
-
4. Str()Used in 164 projects
-
5. Attribute()Used in 156 projects
-
6. Call()Used in 153 projects
-
Used in 144 projects
-
8. Assign()Used in 140 projects
-
9. Num()Used in 130 projects
-
10. Expr()Used in 121 projects
-
11. FunctionDef()Used in 119 projects
-
12. Load()Used in 106 projects
-
13. walk()Used in 103 projects
-
14. ASTUsed in 100 projects
-
15. Tuple()Used in 95 projects
-
16. Add()Used in 91 projects
-
17. BinOp()Used in 91 projects
-
18. Module()Used in 87 projects
-
19. List()Used in 87 projects
-
20. USub()Used in 85 projects
-
21. Sub()Used in 81 projects
-
22. ImportFrom()Used in 80 projects
-
23. And()Used in 77 projects
-
24. Compare()Used in 75 projects
-
25. Mult()Used in 74 projects
-
26. Import()Used in 73 projects
-
27. Or()Used in 73 projects
-
28. ClassDef()Used in 71 projects
-
29. Eq()Used in 67 projects
-
30. Div()Used in 66 projects
-
Used in 66 projects
-
32. Gt()Used in 66 projects
-
33. UnaryOp()Used in 65 projects
-
34. BoolOp()Used in 64 projects
-
35. Return()Used in 64 projects
-
36. If()Used in 64 projects
-
37. Dict()Used in 63 projects
-
38. NotEq()Used in 63 projects
-
39. Subscript()Used in 62 projects
-
40. NameConstant()Used in 59 projects
-
41. Lt()Used in 59 projects
-
42. GtE()Used in 58 projects
-
43. Pow()Used in 58 projects
-
Used in 58 projects
-
Used in 58 projects
-
46. Store()Used in 57 projects
-
47. LtE()Used in 57 projects
-
48. Mod()Used in 55 projects
-
49. In()Used in 54 projects
-
50. dump()Used in 53 projects
-
51. UAdd()Used in 52 projects
-
52. Not()Used in 52 projects
-
53. BitXor()Used in 51 projects
-
54. Index()Used in 50 projects
-
55. For()Used in 48 projects
-
56. NotIn()Used in 45 projects
-
57. copy_location()Used in 45 projects
-
58. BitOr()Used in 42 projects
-
59. Expression()Used in 41 projects
-
60. BitAnd()Used in 41 projects
-
61. get_docstring()Used in 41 projects
-
62. IsNot()Used in 40 projects
-
63. Is()Used in 40 projects
-
64. Invert()Used in 39 projects
-
65. expr()Used in 38 projects
-
66. arguments()Used in 38 projects
-
67. iter_fields()Used in 38 projects
-
68. RShift()Used in 37 projects
-
69. Lambda()Used in 36 projects
-
70. stmt()Used in 36 projects
-
71. FloorDiv()Used in 36 projects
-
72. arg()Used in 36 projects
-
73. IfExp()Used in 35 projects
-
74. alias()Used in 35 projects
-
75. LShift()Used in 35 projects
-
76. keyword()Used in 35 projects
-
77. While()Used in 34 projects
-
78. Starred()Used in 34 projects
-
79. PyCF_ONLY_AST()Used in 32 projects
-
80. Slice()Used in 31 projects
-
81. ListComp()Used in 31 projects
-
82. Pass()Used in 30 projects
-
83. comprehension()Used in 30 projects
-
84. AugAssign()Used in 30 projects
-
85. With()Used in 29 projects
-
86. Raise()Used in 28 projects
-
87. Try()Used in 26 projects
-
88. GeneratorExp()Used in 25 projects
-
89. Assert()Used in 23 projects
-
90. Yield()Used in 22 projects
-
91. DictComp()Used in 21 projects
-
92. Set()Used in 20 projects
-
93. Bytes()Used in 20 projects
-
94. excepthandler()Used in 19 projects
-
95. ExceptHandler()Used in 19 projects
-
96. ExtSlice()Used in 19 projects
-
97. Ellipsis()Used in 19 projects
-
Used in 19 projects
-
99. TryExcept()Used in 18 projects
-
100. Param()Used in 18 projects
-
101. SetComp()Used in 18 projects
-
102. expr_context()Used in 17 projects
-
103. Del()Used in 17 projects
-
104. Global()Used in 17 projects
-
105. Continue()Used in 17 projects
-
106. Break()Used in 17 projects
-
107. increment_lineno()Used in 17 projects
-
108. Delete()Used in 16 projects
-
109. cmpop()Used in 15 projects
-
110. Constant()Used in 15 projects
-
111. TryFinally()Used in 14 projects
-
112. unaryop()Used in 14 projects
-
113. operator()Used in 14 projects
-
114. boolop()Used in 14 projects
-
115. Interactive()Used in 12 projects
-
116. FormattedValue()Used in 12 projects
-
117. JoinedStr()Used in 12 projects
-
118. mod()Used in 11 projects
-
119. Print()Used in 11 projects
-
120. slice()Used in 11 projects
-
121. AnnAssign()Used in 10 projects
-
122. YieldFrom()Used in 9 projects
-
123. withitem()Used in 9 projects
-
124. MatMult()Used in 9 projects
-
125. AugStore()Used in 8 projects
-
126. Nonlocal()Used in 8 projects
-
127. AsyncFor()Used in 8 projects
-
128. AugLoad()Used in 7 projects
-
129. Exec()Used in 7 projects
-
130. Repr()Used in 7 projects
-
131. AsyncWith()Used in 7 projects
-
132. html()Used in 6 projects
-
133. Suite()Used in 5 projects