latest
Introduction:
Why LibCST?
Motivation
Tutorial:
Parsing and Visitors
Metadata
Scope Analysis
Matchers
Codemodding
Best Practices
Reference:
Parsing
Nodes
Visitors
Metadata
Matchers
Codemods
Helpers
Experimental APIs
LibCST
Index
Edit on GitHub
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
|
Y
|
Z
_
__contains__() (libcst.metadata.Accesses method)
(libcst.metadata.Assignments method)
(libcst.metadata.Scope method)
__getitem__() (libcst.metadata.Accesses method)
(libcst.metadata.Assignments method)
(libcst.metadata.Scope method)
__init__() (libcst.metadata.FullRepoManager method)
(libcst.metadata.MetadataWrapper method)
__iter__() (libcst.metadata.Accesses method)
(libcst.metadata.Assignments method)
__str__() (libcst.ParserSyntaxError method)
A
Access (class in libcst.metadata)
Accesses (class in libcst.metadata)
accesses (libcst.metadata.Scope property)
add_args() (libcst.codemod.CodemodCommand static method)
add_needed_import() (libcst.codemod.visitors.AddImportsVisitor static method)
addClassCleanup() (libcst.codemod.CodemodTest class method)
AddImportsVisitor (class in libcst.codemod.visitors)
AllOf (class in libcst.matchers)
AnnAssign (class in libcst)
Annotation (class in libcst)
annotation (libcst.AnnAssign attribute)
(libcst.Annotation attribute)
(libcst.Param attribute)
ApplyTypeAnnotationsVisitor (class in libcst.codemod.visitors)
Arg (class in libcst)
args (libcst.Call attribute)
AsName (class in libcst)
asname (libcst.ImportAlias attribute)
(libcst.WithItem attribute)
Assert (class in libcst)
assertCodeEqual() (libcst.codemod.CodemodTest method)
assertCodemod() (libcst.codemod.CodemodTest method)
assertNoLogs() (libcst.codemod.CodemodTest method)
Assign (class in libcst)
AssignEqual (class in libcst)
Assignment (class in libcst.metadata)
Assignments (class in libcst.metadata)
assignments (libcst.metadata.Scope property)
AssignTarget (class in libcst)
Asynchronous (class in libcst)
asynchronous (libcst.CompFor attribute)
(libcst.For attribute)
(libcst.FunctionDef attribute)
(libcst.With attribute)
AtLeastN (class in libcst.matchers)
AtMostN (class in libcst.matchers)
attr (libcst.Attribute attribute)
Attribute (class in libcst)
AugAssign (class in libcst)
Await (class in libcst)
B
BaseAssignment (class in libcst.metadata)
BaseAssignTargetExpression (class in libcst)
BaseComp (class in libcst)
BaseCompoundStatement (class in libcst)
BaseDelTargetExpression (class in libcst)
BaseDict (class in libcst)
BaseDictElement (class in libcst)
BaseElement (class in libcst)
BaseExpression (class in libcst)
BaseFormattedStringContent (class in libcst)
BaseList (class in libcst)
BaseMatcherNode (class in libcst.matchers)
BaseMetadataProvider (class in libcst)
BaseNumber (class in libcst)
BaseParenthesizableWhitespace (class in libcst)
bases (libcst.ClassDef attribute)
BaseSet (class in libcst)
BaseSimpleComp (class in libcst)
BaseSlice (class in libcst)
BaseSmallStatement (class in libcst)
BaseString (class in libcst)
BaseSuite (class in libcst)
BatchableCSTVisitor (class in libcst)
BatchableMetadataProvider (class in libcst.metadata)
BinaryOperation (class in libcst)
BLACKLISTED (libcst.codemod.SkipReason attribute)
body (libcst.BaseCompoundStatement attribute)
(libcst.BaseSuite attribute)
(libcst.ClassDef attribute)
(libcst.Else attribute)
(libcst.ExceptHandler attribute)
(libcst.Finally attribute)
(libcst.For attribute)
(libcst.FunctionDef attribute)
(libcst.If attribute)
(libcst.IfExp attribute)
(libcst.IndentedBlock attribute)
(libcst.Lambda attribute)
(libcst.Module attribute)
(libcst.SimpleStatementLine attribute)
(libcst.SimpleStatementSuite attribute)
(libcst.Try attribute)
(libcst.While attribute)
(libcst.With attribute)
BooleanOperation (class in libcst)
Break (class in libcst)
BUILTIN (libcst.metadata.QualifiedNameSource attribute)
BuiltinAssignment (class in libcst.metadata)
BuiltinScope (class in libcst.metadata)
bytes (libcst.Module property)
ByteSpanPositionProvider (class in libcst.metadata)
C
cache (libcst.metadata.FullRepoManager property)
Call (class in libcst)
call_if_inside() (in module libcst.matchers)
call_if_not_inside() (in module libcst.matchers)
cause (libcst.Raise attribute)
children (libcst.CSTNode property)
ClassDef (class in libcst)
ClassScope (class in libcst.metadata)
code (libcst.codemod.TransformSuccess attribute)
(libcst.Module property)
code_for_node() (libcst.Module method)
CodegenPartial (class in libcst.metadata)
Codemod (class in libcst.codemod)
CodemodCommand (class in libcst.codemod)
CodemodContext (class in libcst.codemod)
CodemodTest (class in libcst.codemod)
CodePosition (class in libcst.metadata)
CodeRange (class in libcst.metadata)
CodeSpan (class in libcst.metadata)
Colon (class in libcst)
colon (libcst.Lambda attribute)
column (libcst.metadata.CodePosition attribute)
Comma (class in libcst)
comma (libcst.Arg attribute)
(libcst.Assert attribute)
(libcst.DictElement attribute)
(libcst.Element attribute)
(libcst.ImportAlias attribute)
(libcst.NameItem attribute)
(libcst.Param attribute)
(libcst.ParamSlash attribute)
(libcst.ParamStar attribute)
(libcst.StarredDictElement attribute)
(libcst.StarredElement attribute)
(libcst.SubscriptElement attribute)
(libcst.WithItem attribute)
Comment (class in libcst)
comment (libcst.EmptyLine attribute)
(libcst.TrailingWhitespace attribute)
comments (libcst.codemod.visitors.GatherCommentsVisitor attribute)
comparator (libcst.ComparisonTarget attribute)
Comparison (class in libcst)
comparisons (libcst.Comparison attribute)
ComparisonTarget (class in libcst)
CompFor (class in libcst)
CompIf (class in libcst)
ComprehensionScope (class in libcst.metadata)
ConcatenatedString (class in libcst)
config_for_parsing (libcst.Module property)
context (libcst.ParserSyntaxError property)
ContextAwareTransformer (class in libcst.codemod)
ContextAwareVisitor (class in libcst.codemod)
Continue (class in libcst)
conversion (libcst.FormattedStringExpression attribute)
CSTNode (class in libcst)
CSTTransformer (class in libcst)
CSTVisitor (class in libcst)
D
Decorator (class in libcst)
decorator (libcst.Decorator attribute)
decorators (libcst.ClassDef attribute)
(libcst.FunctionDef attribute)
deep_clone() (libcst.CSTNode method)
deep_equals() (libcst.CSTNode method)
deep_remove() (libcst.CSTNode method)
deep_replace() (libcst.CSTNode method)
DEFAULT (libcst.MaybeSentinel attribute)
default (libcst.Param attribute)
default_indent (libcst.Module attribute)
(libcst.PartialParserConfig attribute)
default_newline (libcst.Module attribute)
(libcst.PartialParserConfig attribute)
Del (class in libcst)
DEL (libcst.metadata.ExpressionContext attribute)
DESCRIPTION (libcst.codemod.CodemodCommand attribute)
Dict (class in libcst)
DictComp (class in libcst)
DictElement (class in libcst)
diff_code() (in module libcst.codemod)
doClassCleanups() (libcst.codemod.CodemodTest class method)
DoesNotMatch() (in module libcst.matchers)
DoNotCare() (in module libcst.matchers)
Dot (class in libcst)
dot (libcst.Attribute attribute)
E
editor_column (libcst.ParserSyntaxError property)
editor_line (libcst.ParserSyntaxError property)
Element (class in libcst)
elements (libcst.Dict attribute)
(libcst.List attribute)
(libcst.Set attribute)
(libcst.Tuple attribute)
Ellipsis (class in libcst)
Else (class in libcst)
elt (libcst.BaseSimpleComp attribute)
(libcst.GeneratorExp attribute)
(libcst.ListComp attribute)
(libcst.SetComp attribute)
empty (libcst.BaseParenthesizableWhitespace property)
(libcst.ParenthesizedWhitespace property)
(libcst.SimpleWhitespace property)
empty_lines (libcst.ParenthesizedWhitespace attribute)
EmptyLine (class in libcst)
encoding (libcst.Module attribute)
(libcst.PartialParserConfig attribute)
end (libcst.FormattedString attribute)
(libcst.metadata.CodeRange attribute)
end_offset (libcst.metadata.CodegenPartial attribute)
ensure_type() (in module libcst.helpers)
enterClassContext() (libcst.codemod.CodemodTest class method)
enterContext() (libcst.codemod.CodemodTest method)
equal (libcst.AnnAssign attribute)
(libcst.Arg attribute)
(libcst.FormattedStringExpression attribute)
(libcst.Param attribute)
error (libcst.codemod.TransformFailure attribute)
evaluated_alias (libcst.ImportAlias property)
evaluated_name (libcst.ImportAlias property)
evaluated_value (libcst.ConcatenatedString property)
(libcst.Float property)
(libcst.Imaginary property)
(libcst.Integer property)
(libcst.SimpleString property)
exc (libcst.Raise attribute)
ExceptHandler (class in libcst)
exec_transform_with_prettyprint() (in module libcst.codemod)
ExperimentalReentrantCodegenProvider (class in libcst.metadata)
Expr (class in libcst)
expression (libcst.Await attribute)
(libcst.FormattedStringExpression attribute)
(libcst.UnaryOperation attribute)
ExpressionContext (class in libcst.metadata)
ExpressionContextProvider (class in libcst.metadata)
extract() (in module libcst.matchers)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
extractall() (in module libcst.matchers)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
F
failures (libcst.codemod.ParallelTransformResult attribute)
field() (libcst.CSTNode class method)
filename (libcst.codemod.CodemodContext attribute)
FilePathProvider (class in libcst.metadata)
filter_unused_imports() (libcst.codemod.visitors.GatherUnusedImportsVisitor method)
finalbody (libcst.Try attribute)
Finally (class in libcst)
findall() (in module libcst.matchers)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
first_colon (libcst.Slice attribute)
first_line (libcst.ParenthesizedWhitespace attribute)
FlattenSentinel (class in libcst)
Float (class in libcst)
footer (libcst.IndentedBlock attribute)
(libcst.Module attribute)
For (class in libcst)
for_in (libcst.BaseComp attribute)
(libcst.BaseSimpleComp attribute)
(libcst.DictComp attribute)
(libcst.GeneratorExp attribute)
(libcst.ListComp attribute)
(libcst.SetComp attribute)
format_spec (libcst.FormattedStringExpression attribute)
FormattedString (class in libcst)
FormattedStringExpression (class in libcst)
FormattedStringText (class in libcst)
From (class in libcst)
full_module_name (libcst.codemod.CodemodContext attribute)
full_package_name (libcst.codemod.CodemodContext attribute)
FullRepoManager (class in libcst.metadata)
FullyQualifiedNameProvider (class in libcst.metadata)
func (libcst.Call attribute)
(libcst.matchers.MatchIfTrue property)
(libcst.matchers.MatchMetadataIfTrue property)
FunctionDef (class in libcst)
FunctionScope (class in libcst.metadata)
future_imports (libcst.PartialParserConfig attribute)
G
gather_files() (in module libcst.codemod)
GatherCommentsVisitor (class in libcst.codemod.visitors)
GatherExportsVisitor (class in libcst.codemod.visitors)
GatherImportsVisitor (class in libcst.codemod.visitors)
GatherNamesFromStringAnnotationsVisitor (class in libcst.codemod.visitors)
GatherUnusedImportsVisitor (class in libcst.codemod.visitors)
gen_cache (libcst.BaseMetadataProvider attribute)
gen_cache() (libcst.metadata.FilePathProvider class method)
(libcst.metadata.FullyQualifiedNameProvider class method)
(libcst.metadata.TypeInferenceProvider static method)
GENERATED (libcst.codemod.SkipReason attribute)
GeneratorExp (class in libcst)
get_cache_for_path() (libcst.metadata.FullRepoManager method)
get_docstring() (libcst.ClassDef method)
(libcst.FunctionDef method)
(libcst.Module method)
get_full_name_for_node() (in module libcst.helpers)
get_full_name_for_node_or_raise() (in module libcst.helpers)
get_inherited_dependencies() (libcst.MetadataDependent class method)
get_metadata() (libcst.BaseMetadataProvider method)
(libcst.MetadataDependent method)
get_metadata_wrapper_for_path() (libcst.metadata.FullRepoManager method)
get_modified_module_bytes() (libcst.metadata.CodegenPartial method)
get_modified_module_code() (libcst.metadata.CodegenPartial method)
get_modified_statement_code() (libcst.metadata.CodegenPartial method)
get_original_module_bytes() (libcst.metadata.CodegenPartial method)
get_original_module_code() (libcst.metadata.CodegenPartial method)
get_original_statement_code() (libcst.metadata.CodegenPartial method)
get_qualified_names_for() (libcst.metadata.Assignment method)
(libcst.metadata.BuiltinAssignment method)
(libcst.metadata.Scope method)
get_transforms() (libcst.codemod.MagicArgsCodemodCommand method)
get_visitors() (libcst.BatchableCSTVisitor method)
Global (class in libcst)
globals (libcst.metadata.Scope attribute)
GlobalScope (class in libcst.metadata)
H
handlers (libcst.Try attribute)
has_name() (libcst.metadata.QualifiedNameProvider static method)
has_trailing_newline (libcst.metadata.CodegenPartial attribute)
(libcst.Module attribute)
header (libcst.IndentedBlock attribute)
(libcst.Module attribute)
I
If (class in libcst)
IfExp (class in libcst)
ifs (libcst.CompFor attribute)
Imaginary (class in libcst)
Import (class in libcst)
IMPORT (libcst.metadata.QualifiedNameSource attribute)
ImportAlias (class in libcst)
ImportFrom (class in libcst)
ImportStar (class in libcst)
indent (libcst.EmptyLine attribute)
(libcst.IndentedBlock attribute)
(libcst.ParenthesizedWhitespace attribute)
IndentedBlock (class in libcst)
Index (class in libcst)
initalized (libcst.matchers.TypeOf property)
inner_for_in (libcst.CompFor attribute)
insert_header_comments() (in module libcst.helpers)
Integer (class in libcst)
is_annotation (libcst.metadata.Access attribute)
is_in_use() (libcst.codemod.visitors.GatherUnusedImportsVisitor method)
is_type_hint (libcst.metadata.Access attribute)
item (libcst.From attribute)
(libcst.WithItem attribute)
items (libcst.With attribute)
iter (libcst.CompFor attribute)
(libcst.For attribute)
K
key (libcst.DictComp attribute)
(libcst.DictElement attribute)
(libcst.matchers.MatchMetadata property)
(libcst.matchers.MatchMetadataIfTrue property)
keyword (libcst.Arg attribute)
keywords (libcst.ClassDef attribute)
kwonly_params (libcst.Parameters attribute)
L
Lambda (class in libcst)
last_line (libcst.ParenthesizedWhitespace attribute)
lbrace (libcst.Dict attribute)
(libcst.DictComp attribute)
(libcst.Set attribute)
(libcst.SetComp attribute)
lbracket (libcst.BaseList attribute)
(libcst.List attribute)
(libcst.ListComp attribute)
(libcst.Subscript attribute)
leading_lines (libcst.BaseCompoundStatement attribute)
(libcst.ClassDef attribute)
(libcst.Decorator attribute)
(libcst.Else attribute)
(libcst.ExceptHandler attribute)
(libcst.Finally attribute)
(libcst.For attribute)
(libcst.FunctionDef attribute)
(libcst.If attribute)
(libcst.SimpleStatementLine attribute)
(libcst.Try attribute)
(libcst.While attribute)
(libcst.With attribute)
leading_whitespace (libcst.SimpleStatementSuite attribute)
leave() (in module libcst.matchers)
left (libcst.BinaryOperation attribute)
(libcst.BooleanOperation attribute)
(libcst.Comparison attribute)
(libcst.ConcatenatedString attribute)
LeftCurlyBrace (class in libcst)
LeftParen (class in libcst)
LeftSquareBracket (class in libcst)
length (libcst.metadata.CodeSpan attribute)
LessThanEqual (class in libcst)
libcst.Add (built-in class)
libcst.AddAssign (built-in class)
libcst.And (built-in class)
libcst.BaseAugOp (built-in class)
libcst.BaseBinaryOp (built-in class)
libcst.BaseBooleanOp (built-in class)
libcst.BaseCompOp (built-in class)
libcst.BaseUnaryOp (built-in class)
libcst.BitAnd (built-in class)
libcst.BitAndAssign (built-in class)
libcst.BitInvert (built-in class)
libcst.BitOr (built-in class)
libcst.BitOrAssign (built-in class)
libcst.BitXor (built-in class)
libcst.BitXorAssign (built-in class)
libcst.Divide (built-in class)
libcst.DivideAssign (built-in class)
libcst.Equal (built-in class)
libcst.FloorDivide (built-in class)
libcst.FloorDivideAssign (built-in class)
libcst.GreaterThan (built-in class)
libcst.GreaterThanEqual (built-in class)
libcst.In (built-in class)
libcst.Is (built-in class)
libcst.IsNot (built-in class)
libcst.LeftShift (built-in class)
libcst.LeftShiftAssign (built-in class)
libcst.LessThan (built-in class)
libcst.MatrixMultiply (built-in class)
libcst.MatrixMultiplyAssign (built-in class)
libcst.Minus (built-in class)
libcst.Modulo (built-in class)
libcst.ModuloAssign (built-in class)
libcst.Multiply (built-in class)
libcst.MultiplyAssign (built-in class)
libcst.Not (built-in class)
libcst.Power (built-in class)
libcst.PowerAssign (built-in class)
libcst.RightShift (built-in class)
libcst.RightShiftAssign (built-in class)
line (libcst.metadata.CodePosition attribute)
lines_after_decorators (libcst.ClassDef attribute)
(libcst.FunctionDef attribute)
List (class in libcst)
ListComp (class in libcst)
LOAD (libcst.metadata.ExpressionContext attribute)
LOCAL (libcst.metadata.QualifiedNameSource attribute)
lower (libcst.Slice attribute)
lpar (libcst.Attribute attribute)
(libcst.Await attribute)
(libcst.BaseList attribute)
(libcst.BinaryOperation attribute)
(libcst.BooleanOperation attribute)
(libcst.Call attribute)
(libcst.ClassDef attribute)
(libcst.Comparison attribute)
(libcst.ConcatenatedString attribute)
(libcst.Dict attribute)
(libcst.DictComp attribute)
(libcst.Ellipsis attribute)
(libcst.Float attribute)
(libcst.FormattedString attribute)
(libcst.GeneratorExp attribute)
(libcst.IfExp attribute)
(libcst.Imaginary attribute)
(libcst.ImportFrom attribute)
(libcst.Integer attribute)
(libcst.Lambda attribute)
(libcst.List attribute)
(libcst.ListComp attribute)
(libcst.Name attribute)
(libcst.Set attribute)
(libcst.SetComp attribute)
(libcst.SimpleString attribute)
(libcst.StarredElement attribute)
(libcst.Subscript attribute)
(libcst.Tuple attribute)
(libcst.UnaryOperation attribute)
(libcst.With attribute)
(libcst.Yield attribute)
M
MagicArgsCodemodCommand (class in libcst.codemod)
make_fixture_data() (libcst.codemod.CodemodTest static method)
matcher (libcst.matchers.AtLeastN property)
(libcst.matchers.AtMostN property)
MatcherDecoratableTransformer (class in libcst.matchers)
MatcherDecoratableVisitor (class in libcst.matchers)
matches() (in module libcst.matchers)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
MatchIfTrue (class in libcst.matchers)
MatchMetadata (class in libcst.matchers)
MatchMetadataIfTrue (class in libcst.matchers)
MatchRegex() (in module libcst.matchers)
MaybeSentinel (class in libcst)
message (libcst.ParserSyntaxError attribute)
metadata (libcst.MetadataDependent attribute)
METADATA_DEPENDENCIES (libcst.codemod.visitors.GatherCommentsVisitor attribute)
(libcst.codemod.visitors.GatherNamesFromStringAnnotationsVisitor attribute)
(libcst.codemod.visitors.GatherUnusedImportsVisitor attribute)
(libcst.codemod.visitors.RemoveImportsVisitor attribute)
(libcst.metadata.FullyQualifiedNameProvider attribute)
(libcst.metadata.QualifiedNameProvider attribute)
(libcst.metadata.ScopeProvider attribute)
(libcst.metadata.TypeInferenceProvider attribute)
(libcst.MetadataDependent attribute)
metadata_manager (libcst.codemod.CodemodContext attribute)
MetadataDependent (class in libcst)
MetadataWrapper (class in libcst.metadata)
Module (class in libcst)
module (libcst.codemod.Codemod property)
(libcst.codemod.CodemodContext property)
(libcst.codemod.ContextAwareVisitor property)
(libcst.ImportFrom attribute)
(libcst.metadata.MetadataWrapper property)
msg (libcst.Assert attribute)
N
n (libcst.matchers.AtLeastN property)
(libcst.matchers.AtMostN property)
Name (class in libcst)
name (libcst.AsName attribute)
(libcst.ClassDef attribute)
(libcst.ExceptHandler attribute)
(libcst.FunctionDef attribute)
(libcst.ImportAlias attribute)
(libcst.metadata.BaseAssignment attribute)
(libcst.metadata.QualifiedName attribute)
(libcst.NameItem attribute)
(libcst.Param attribute)
NameItem (class in libcst)
names (libcst.codemod.visitors.GatherNamesFromStringAnnotationsVisitor attribute)
(libcst.Global attribute)
(libcst.Import attribute)
(libcst.ImportFrom attribute)
(libcst.Nonlocal attribute)
Newline (class in libcst)
newline (libcst.EmptyLine attribute)
(libcst.TrailingWhitespace attribute)
node (libcst.metadata.Access attribute)
(libcst.metadata.Assignment attribute)
nodes (libcst.FlattenSentinel attribute)
Nonlocal (class in libcst)
NotEqual (class in libcst)
NotIn (class in libcst)
O
on_leave() (libcst.CSTTransformer method)
(libcst.CSTVisitor method)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
on_leave_attribute() (libcst.CSTTransformer method)
(libcst.CSTVisitor method)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
on_visit() (libcst.CSTTransformer method)
(libcst.CSTVisitor method)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
on_visit_attribute() (libcst.CSTTransformer method)
(libcst.CSTVisitor method)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
OneOf (class in libcst.matchers)
operator (libcst.AugAssign attribute)
(libcst.BinaryOperation attribute)
(libcst.BooleanOperation attribute)
(libcst.ComparisonTarget attribute)
(libcst.UnaryOperation attribute)
options (libcst.matchers.AllOf property)
(libcst.matchers.OneOf property)
(libcst.matchers.TypeOf property)
Or (class in libcst)
orelse (libcst.For attribute)
(libcst.If attribute)
(libcst.IfExp attribute)
(libcst.Try attribute)
(libcst.While attribute)
OTHER (libcst.codemod.SkipReason attribute)
P
parallel_exec_transform_with_prettyprint() (in module libcst.codemod)
ParallelTransformResult (class in libcst.codemod)
Param (class in libcst)
Parameters (class in libcst)
params (libcst.FunctionDef attribute)
(libcst.Lambda attribute)
(libcst.Parameters attribute)
ParamSlash (class in libcst)
ParamStar (class in libcst)
parent (libcst.metadata.Scope attribute)
ParenthesizedWhitespace (class in libcst)
ParentNodeProvider (class in libcst.metadata)
parse_expression() (in module libcst)
parse_module() (in module libcst)
parse_statement() (in module libcst)
parse_template_expression() (in module libcst.helpers)
parse_template_module() (in module libcst.helpers)
parse_template_statement() (in module libcst.helpers)
parsed_python_version (libcst.PartialParserConfig attribute)
ParserSyntaxError (class in libcst)
PartialParserConfig (class in libcst)
parts (libcst.FormattedString attribute)
Pass (class in libcst)
Plus (class in libcst)
PositionProvider (class in libcst.metadata)
posonly_ind (libcst.Parameters attribute)
posonly_params (libcst.Parameters attribute)
prefix (libcst.FormattedString property)
(libcst.SimpleString property)
python_version (libcst.PartialParserConfig attribute)
Q
QualifiedName (class in libcst.metadata)
QualifiedNameProvider (class in libcst.metadata)
QualifiedNameSource (class in libcst.metadata)
quote (libcst.FormattedString property)
(libcst.SimpleString property)
R
Raise (class in libcst)
raw_column (libcst.ParserSyntaxError attribute)
raw_line (libcst.ParserSyntaxError attribute)
raw_value (libcst.SimpleString property)
rbrace (libcst.Dict attribute)
(libcst.DictComp attribute)
(libcst.Set attribute)
(libcst.SetComp attribute)
rbracket (libcst.BaseList attribute)
(libcst.List attribute)
(libcst.ListComp attribute)
(libcst.Subscript attribute)
record_assignment() (libcst.metadata.Access method)
record_assignments() (libcst.metadata.Access method)
references (libcst.metadata.BaseAssignment property)
referents (libcst.metadata.Access property)
relative (libcst.ImportFrom attribute)
RemovalSentinel (class in libcst)
REMOVE (libcst.RemovalSentinel attribute)
remove_unused_import() (libcst.codemod.visitors.RemoveImportsVisitor static method)
remove_unused_import_by_node() (libcst.codemod.visitors.RemoveImportsVisitor static method)
RemoveFromParent() (in module libcst)
RemoveImportsVisitor (class in libcst.codemod.visitors)
replace() (in module libcst.matchers)
(libcst.matchers.MatcherDecoratableTransformer method)
(libcst.matchers.MatcherDecoratableVisitor method)
resolve() (libcst.metadata.MetadataWrapper method)
(libcst.MetadataDependent method)
resolve_cache() (libcst.metadata.FullRepoManager method)
resolve_many() (libcst.metadata.MetadataWrapper method)
Return (class in libcst)
returns (libcst.FunctionDef attribute)
right (libcst.BinaryOperation attribute)
(libcst.BooleanOperation attribute)
(libcst.ConcatenatedString attribute)
RightCurlyBrace (class in libcst)
RightParen (class in libcst)
RightSquareBracket (class in libcst)
rpar (libcst.Attribute attribute)
(libcst.Await attribute)
(libcst.BaseList attribute)
(libcst.BinaryOperation attribute)
(libcst.BooleanOperation attribute)
(libcst.Call attribute)
(libcst.ClassDef attribute)
(libcst.Comparison attribute)
(libcst.ConcatenatedString attribute)
(libcst.Dict attribute)
(libcst.DictComp attribute)
(libcst.Ellipsis attribute)
(libcst.Float attribute)
(libcst.FormattedString attribute)
(libcst.GeneratorExp attribute)
(libcst.IfExp attribute)
(libcst.Imaginary attribute)
(libcst.ImportFrom attribute)
(libcst.Integer attribute)
(libcst.Lambda attribute)
(libcst.List attribute)
(libcst.ListComp attribute)
(libcst.Name attribute)
(libcst.Set attribute)
(libcst.SetComp attribute)
(libcst.SimpleString attribute)
(libcst.StarredElement attribute)
(libcst.Subscript attribute)
(libcst.Tuple attribute)
(libcst.UnaryOperation attribute)
(libcst.With attribute)
(libcst.Yield attribute)
S
SaveMatchedNode() (in module libcst.matchers)
Scope (class in libcst.metadata)
scope (libcst.metadata.Access attribute)
(libcst.metadata.BaseAssignment attribute)
ScopeProvider (class in libcst.metadata)
scratch (libcst.codemod.CodemodContext attribute)
second_colon (libcst.Slice attribute)
Semicolon (class in libcst)
semicolon (libcst.AnnAssign attribute)
(libcst.Assert attribute)
(libcst.Assign attribute)
(libcst.AugAssign attribute)
(libcst.BaseSmallStatement attribute)
(libcst.Break attribute)
(libcst.Continue attribute)
(libcst.Del attribute)
(libcst.Expr attribute)
(libcst.Global attribute)
(libcst.Import attribute)
(libcst.ImportFrom attribute)
(libcst.Nonlocal attribute)
(libcst.Pass attribute)
(libcst.Raise attribute)
(libcst.Return attribute)
Set (class in libcst)
set_metadata() (libcst.BaseMetadataProvider method)
SetComp (class in libcst)
should_allow_multiple_passes() (libcst.codemod.Codemod method)
SimpleStatementLine (class in libcst)
SimpleStatementSuite (class in libcst)
SimpleString (class in libcst)
SimpleWhitespace (class in libcst)
skip_description (libcst.codemod.TransformSkip attribute)
skip_reason (libcst.codemod.TransformSkip attribute)
SkipFile (class in libcst.codemod)
SkipReason (class in libcst.codemod)
skips (libcst.codemod.ParallelTransformResult attribute)
Slice (class in libcst)
slice (libcst.Subscript attribute)
(libcst.SubscriptElement attribute)
source (libcst.metadata.QualifiedName attribute)
star (libcst.Arg attribute)
(libcst.Index attribute)
(libcst.Param attribute)
star_arg (libcst.Parameters attribute)
star_kwarg (libcst.Parameters attribute)
StarredDictElement (class in libcst)
StarredElement (class in libcst)
start (libcst.FormattedString attribute)
(libcst.metadata.CodeRange attribute)
(libcst.metadata.CodeSpan attribute)
start_offset (libcst.metadata.CodegenPartial attribute)
step (libcst.Slice attribute)
STORE (libcst.metadata.ExpressionContext attribute)
store_stub_in_context() (libcst.codemod.visitors.ApplyTypeAnnotationsVisitor static method)
Subscript (class in libcst)
SubscriptElement (class in libcst)
Subtract (class in libcst)
SubtractAssign (class in libcst)
successes (libcst.codemod.ParallelTransformResult attribute)
T
target (libcst.AnnAssign attribute)
(libcst.AssignTarget attribute)
(libcst.AugAssign attribute)
(libcst.CompFor attribute)
(libcst.Del attribute)
(libcst.For attribute)
targets (libcst.Assign attribute)
test (libcst.Assert attribute)
(libcst.CompIf attribute)
(libcst.If attribute)
(libcst.IfExp attribute)
(libcst.While attribute)
traceback_str (libcst.codemod.TransformFailure attribute)
trailing_whitespace (libcst.Decorator attribute)
(libcst.SimpleStatementLine attribute)
(libcst.SimpleStatementSuite attribute)
TrailingWhitespace (class in libcst)
TRANSFORM (libcst.codemod.CodemodTest attribute)
transform_module() (in module libcst.codemod)
(libcst.codemod.Codemod method)
transform_module_impl() (libcst.codemod.Codemod method)
(libcst.codemod.CodemodCommand method)
(libcst.codemod.visitors.ApplyTypeAnnotationsVisitor method)
TransformExit (class in libcst.codemod)
TransformFailure (class in libcst.codemod)
TransformResult (in module libcst.codemod)
TransformSkip (class in libcst.codemod)
TransformSuccess (class in libcst.codemod)
Try (class in libcst)
Tuple (class in libcst)
type (libcst.ExceptHandler attribute)
type_parameters (libcst.ClassDef attribute)
(libcst.FunctionDef attribute)
TypeInferenceProvider (class in libcst.metadata)
TypeOf (class in libcst.matchers)
U
UnaryOperation (class in libcst)
unused_imports (libcst.codemod.visitors.GatherUnusedImportsVisitor attribute)
upper (libcst.Slice attribute)
V
validate_types_deep() (libcst.CSTNode method)
validate_types_shallow() (libcst.CSTNode method)
value (libcst.AnnAssign attribute)
(libcst.Arg attribute)
(libcst.Assign attribute)
(libcst.Attribute attribute)
(libcst.AugAssign attribute)
(libcst.Comment attribute)
(libcst.DictComp attribute)
(libcst.DictElement attribute)
(libcst.Element attribute)
(libcst.Expr attribute)
(libcst.Float attribute)
(libcst.FormattedStringText attribute)
(libcst.Imaginary attribute)
(libcst.Index attribute)
(libcst.Integer attribute)
(libcst.matchers.MatchMetadata property)
(libcst.Name attribute)
(libcst.Newline attribute)
(libcst.NotEqual attribute)
(libcst.Return attribute)
(libcst.SimpleString attribute)
(libcst.SimpleWhitespace attribute)
(libcst.StarredDictElement attribute)
(libcst.StarredElement attribute)
(libcst.Subscript attribute)
(libcst.Yield attribute)
visit() (in module libcst.matchers)
(libcst.CSTNode method)
(libcst.metadata.MetadataWrapper method)
(libcst.Module method)
visit_batched() (in module libcst)
(libcst.metadata.MetadataWrapper method)
VisitorBasedCodemodCommand (class in libcst.codemod)
VisitorMetadataProvider (class in libcst.metadata)
W
warn() (libcst.codemod.Codemod method)
(libcst.codemod.ContextAwareVisitor method)
warning_messages (libcst.codemod.TransformExit attribute)
(libcst.codemod.TransformFailure attribute)
(libcst.codemod.TransformSkip attribute)
(libcst.codemod.TransformSuccess attribute)
warnings (libcst.codemod.CodemodContext attribute)
(libcst.codemod.ParallelTransformResult attribute)
While (class in libcst)
whitespace (libcst.EmptyLine attribute)
(libcst.TrailingWhitespace attribute)
whitespace_after (libcst.AssignEqual attribute)
(libcst.Asynchronous attribute)
(libcst.Colon attribute)
(libcst.Comma attribute)
(libcst.Dot attribute)
(libcst.LeftCurlyBrace attribute)
(libcst.LeftParen attribute)
(libcst.LeftSquareBracket attribute)
(libcst.LessThanEqual attribute)
(libcst.NotEqual attribute)
(libcst.NotIn attribute)
(libcst.Or attribute)
(libcst.ParamSlash attribute)
(libcst.Plus attribute)
(libcst.Semicolon attribute)
(libcst.Subtract attribute)
(libcst.SubtractAssign attribute)
whitespace_after_arg (libcst.Arg attribute)
whitespace_after_as (libcst.AsName attribute)
whitespace_after_assert (libcst.Assert attribute)
whitespace_after_at (libcst.Decorator attribute)
whitespace_after_await (libcst.Await attribute)
whitespace_after_class (libcst.ClassDef attribute)
whitespace_after_colon (libcst.DictComp attribute)
(libcst.DictElement attribute)
whitespace_after_def (libcst.FunctionDef attribute)
whitespace_after_del (libcst.Del attribute)
whitespace_after_else (libcst.IfExp attribute)
whitespace_after_equal (libcst.AssignTarget attribute)
whitespace_after_except (libcst.ExceptHandler attribute)
whitespace_after_expression (libcst.FormattedStringExpression attribute)
whitespace_after_for (libcst.CompFor attribute)
(libcst.For attribute)
whitespace_after_from (libcst.From attribute)
(libcst.ImportFrom attribute)
whitespace_after_func (libcst.Call attribute)
whitespace_after_global (libcst.Global attribute)
whitespace_after_if (libcst.IfExp attribute)
whitespace_after_import (libcst.Import attribute)
(libcst.ImportFrom attribute)
whitespace_after_in (libcst.CompFor attribute)
(libcst.For attribute)
whitespace_after_indicator (libcst.Annotation attribute)
whitespace_after_lambda (libcst.Lambda attribute)
whitespace_after_name (libcst.ClassDef attribute)
(libcst.FunctionDef attribute)
whitespace_after_nonlocal (libcst.Nonlocal attribute)
whitespace_after_param (libcst.Param attribute)
whitespace_after_raise (libcst.Raise attribute)
whitespace_after_return (libcst.Return attribute)
whitespace_after_star (libcst.Arg attribute)
(libcst.Index attribute)
(libcst.Param attribute)
whitespace_after_test (libcst.If attribute)
whitespace_after_type_parameters (libcst.ClassDef attribute)
(libcst.FunctionDef attribute)
whitespace_after_value (libcst.Subscript attribute)
whitespace_after_while (libcst.While attribute)
whitespace_after_with (libcst.With attribute)
whitespace_after_yield (libcst.Yield attribute)
whitespace_before (libcst.AssignEqual attribute)
(libcst.Colon attribute)
(libcst.Comma attribute)
(libcst.CompFor attribute)
(libcst.CompIf attribute)
(libcst.Dot attribute)
(libcst.LessThanEqual attribute)
(libcst.NotEqual attribute)
(libcst.NotIn attribute)
(libcst.Or attribute)
(libcst.RightCurlyBrace attribute)
(libcst.RightParen attribute)
(libcst.RightSquareBracket attribute)
(libcst.Semicolon attribute)
(libcst.Subtract attribute)
(libcst.SubtractAssign attribute)
whitespace_before_args (libcst.Call attribute)
whitespace_before_as (libcst.AsName attribute)
whitespace_before_colon (libcst.ClassDef attribute)
(libcst.DictComp attribute)
(libcst.DictElement attribute)
(libcst.Else attribute)
(libcst.ExceptHandler attribute)
(libcst.Finally attribute)
(libcst.For attribute)
(libcst.FunctionDef attribute)
(libcst.Try attribute)
(libcst.While attribute)
(libcst.With attribute)
whitespace_before_else (libcst.IfExp attribute)
whitespace_before_equal (libcst.AssignTarget attribute)
whitespace_before_expression (libcst.FormattedStringExpression attribute)
whitespace_before_from (libcst.From attribute)
whitespace_before_if (libcst.IfExp attribute)
whitespace_before_import (libcst.ImportFrom attribute)
whitespace_before_in (libcst.CompFor attribute)
(libcst.For attribute)
whitespace_before_indicator (libcst.Annotation attribute)
whitespace_before_params (libcst.FunctionDef attribute)
whitespace_before_test (libcst.CompIf attribute)
(libcst.If attribute)
whitespace_before_value (libcst.StarredDictElement attribute)
(libcst.StarredElement attribute)
whitespace_between (libcst.ConcatenatedString attribute)
(libcst.NotIn attribute)
WhitespaceInclusivePositionProvider (class in libcst.metadata)
With (class in libcst)
with_changes() (libcst.CSTNode method)
with_deep_changes() (libcst.CSTNode method)
WithItem (class in libcst)
wrapper (libcst.codemod.CodemodContext attribute)
Y
Yield (class in libcst)
Z
ZeroOrMore() (in module libcst.matchers)
ZeroOrOne() (in module libcst.matchers)
Read the Docs
v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds