Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias identifier FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIsNot Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return ListLoad decorator_list orelse If NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return ListLoad decorator_list If NameLoad body With Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list With Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse If NameLoad body Raise Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list With Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareNotIn Str NameLoad body Raise Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str orelse Assign NameStore NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr keyword BoolOpOr NameLoad Str keyword BoolOpOr NameLoad Str body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return ListLoad decorator_list With Call NameLoad NameLoad NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad keyword NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str BinOpMult Str Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad IfExp NameLoad AttributeLoad NameLoad attr NameLoad IfExp BoolOpAnd NameLoad AttributeLoad NameLoad attr Str Str orelse Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return ListLoad decorator_list With Call NameLoad NameLoad NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return ListLoad decorator_list With Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list
N/A N/A os script ScriptDirectory environment EnvironmentContext N/A util autogenerate autogen list_templates N/A N/A config N/A N/A N/A List available templates N/A N/A N/A config print_stdout Available templates:
 N/A tempname N/A N/A os listdir N/A N/A config get_template_directory N/A N/A N/A open N/A N/A N/A os path join N/A N/A config get_template_directory tempname README readme N/A N/A synopsis N/A next readme N/A N/A N/A config print_stdout %s - %s tempname synopsis N/A N/A N/A config print_stdout 
Templates are used via the 'init' command, e.g.: N/A N/A N/A config print_stdout 
  alembic init --template pylons ./scripts N/A init N/A N/A config directory template N/A generic N/A N/A Initialize a new scripts directory. N/A N/A N/A os access directory N/A os F_OK N/A N/A N/A N/A util CommandError N/A Directory %s already exists directory N/A template_dir N/A N/A N/A os path join N/A N/A config get_template_directory template N/A N/A N/A N/A os access template_dir N/A os F_OK N/A N/A N/A N/A util CommandError N/A No such template %r template N/A N/A N/A util status N/A Creating directory %s N/A N/A N/A os path abspath directory N/A os makedirs directory N/A versions N/A N/A N/A os path join directory versions N/A N/A N/A util status N/A Creating directory %s N/A N/A N/A os path abspath versions N/A os makedirs versions N/A script N/A ScriptDirectory directory N/A file_ N/A N/A os listdir template_dir N/A N/A file_path N/A N/A N/A os path join template_dir file_ N/A N/A file_ alembic.ini.mako N/A N/A config_file N/A N/A N/A os path abspath N/A config config_file_name N/A N/A N/A os access config_file N/A os F_OK N/A N/A N/A N/A util msg N/A File %s already exists, skipping config_file N/A N/A N/A N/A script _generate_template file_path config_file script_location directory N/A N/A N/A N/A N/A os path isfile file_path N/A N/A output_file N/A N/A N/A os path join directory file_ N/A N/A N/A script _copy_file file_path output_file N/A N/A N/A util msg N/A Please edit configuration/connection/logging settings in %r before proceeding. config_file N/A revision N/A N/A config message autogenerate sql N/A None False False N/A N/A Create a new revision file. N/A script N/A N/A ScriptDirectory from_config config N/A template_args N/A config config N/A imports N/A set N/A environment N/A N/A util asbool N/A N/A config get_main_option revision_environment N/A autogenerate N/A N/A environment True retrieve_migrations N/A N/A rev context N/A N/A N/A N/A N/A N/A script get_revision rev N/A N/A script get_revision head N/A N/A N/A N/A util CommandError Target database is not up to date. N/A N/A N/A autogen _produce_migration_diffs context template_args imports N/A N/A N/A N/A N/A environment N/A retrieve_migrations N/A N/A rev context N/A N/A N/A N/A N/A N/A environment N/A N/A N/A EnvironmentContext config script fn retrieve_migrations as_sql sql template_args template_args N/A N/A N/A N/A script run_env N/A N/A N/A script generate_revision N/A N/A util rev_id message template_args N/A upgrade N/A N/A config revision sql tag N/A False None N/A N/A Upgrade to a later version. N/A script N/A N/A ScriptDirectory from_config config N/A starting_rev None N/A N/A : revision N/A N/A N/A sql N/A N/A N/A N/A util CommandError Range revision not allowed N/A N/A starting_rev revision N/A N/A revision split : 2 upgrade N/A N/A rev context N/A N/A N/A N/A N/A script _upgrade_revs revision rev N/A N/A N/A EnvironmentContext config script fn upgrade as_sql sql starting_rev starting_rev destination_rev revision tag tag N/A N/A N/A N/A script run_env N/A downgrade N/A N/A config revision sql tag N/A False None N/A N/A Revert to a previous version. N/A script N/A N/A ScriptDirectory from_config config N/A starting_rev None N/A N/A : revision N/A N/A N/A sql N/A N/A N/A N/A util CommandError Range revision not allowed N/A N/A starting_rev revision N/A N/A revision split : 2 N/A N/A sql N/A N/A N/A N/A util CommandError downgrade with --sql requires <fromrev>:<torev> downgrade N/A N/A rev context N/A N/A N/A N/A N/A script _downgrade_revs revision rev N/A N/A N/A EnvironmentContext config script fn downgrade as_sql sql starting_rev starting_rev destination_rev revision tag tag N/A N/A N/A N/A script run_env N/A history N/A N/A config rev_range N/A None N/A N/A List changeset scripts in chronological order. N/A script N/A N/A ScriptDirectory from_config config N/A N/A rev_range None N/A N/A N/A : rev_range N/A N/A N/A N/A util CommandError History range requires [start]:[end], [start]:, or :[end] N/A N/A base head N/A N/A N/A N/A rev_range strip split : N/A N/A base head None _display_history N/A N/A config script base head N/A N/A N/A sc N/A N/A script walk_revisions base N/A base base head N/A head head N/A N/A N/A sc is_head N/A N/A N/A N/A config print_stdout N/A N/A N/A config print_stdout N/A sc log_entry N/A _display_history_w_current N/A N/A config script base head N/A None None N/A _display_current_history N/A N/A rev context N/A N/A N/A N/A head None N/A N/A N/A _display_history config script base rev N/A N/A N/A base None N/A N/A N/A _display_history config script rev head N/A N/A N/A N/A N/A EnvironmentContext config script fn _display_current_history N/A N/A N/A N/A script run_env N/A N/A N/A base current N/A N/A N/A _display_history_w_current config script head head N/A N/A N/A head current N/A N/A N/A _display_history_w_current config script base base N/A N/A N/A _display_history config script base head N/A branches N/A N/A config N/A N/A N/A Show current un-spliced branch points N/A script N/A N/A ScriptDirectory from_config config N/A sc N/A N/A script walk_revisions N/A N/A N/A sc is_branch_point N/A N/A N/A N/A config print_stdout sc N/A rev N/A sc nextrev N/A N/A N/A N/A config print_stdout %s -> %s N/A N/A len N/A str N/A sc down_revision N/A N/A script get_revision rev N/A current N/A N/A config head_only N/A False N/A N/A Display the current revision for each database. N/A script N/A N/A ScriptDirectory from_config config display_version N/A N/A rev context N/A N/A N/A rev N/A N/A script get_revision rev N/A head_only N/A N/A N/A N/A config print_stdout N/A %s%s N/A N/A rev N/A rev revision None N/A N/A rev N/A rev is_head  (head) N/A N/A N/A N/A config print_stdout Current revision for %s: %s N/A N/A util obfuscate_url_pw N/A N/A N/A context connection engine url rev N/A N/A N/A N/A N/A EnvironmentContext config script fn display_version N/A N/A N/A N/A script run_env N/A stamp N/A N/A config revision sql tag N/A False None N/A N/A 'stamp' the revision table with the given revision; don't
    run any migrations. N/A script N/A N/A ScriptDirectory from_config config do_stamp N/A N/A rev context N/A N/A N/A sql N/A N/A current False N/A N/A current N/A N/A context _current_rev N/A dest N/A N/A script get_revision revision N/A N/A dest None N/A N/A dest N/A dest revision N/A N/A N/A context _update_current_rev current dest N/A N/A N/A N/A N/A EnvironmentContext config script fn do_stamp as_sql sql destination_rev revision tag tag N/A N/A N/A N/A script run_env N/A splice N/A N/A config parent child N/A N/A N/A 'splice' two branches, creating a new revision file.

    this command isn't implemented right now.

     N/A N/A NotImplementedError N/A