may even have more than one.
* ``env.py`` - This is a Python script that is run whenever the alembic migration tool is invoked.
At the very least, it contains instructions to configure and generate a SQLAlchemy engine,
- procure a connection from that engine along with a transaction, and to then invoke the migration
+ procure a connection from that engine along with a transaction, and then invoke the migration
engine, using the connection as a source of database connectivity.
The ``env.py`` script is part of the generated environment so that the way migrations run
is entirely customizable. The exact specifics of how to connect are here, as well as
- the specifics of how the migration enviroment are invoked. The script can be modified
+ the specifics of how the migration environment are invoked. The script can be modified
so that multiple engines can be operated upon, custom arguments can be passed into the
migration environment, application-specific libraries and models can be loaded in and
made available.
Alembic includes a set of initialization templates which feature different varieties
of ``env.py`` for different use cases.
-* ``README`` - included with the various enviromnent templates, should have something
+* ``README`` - included with the various environment templates, should have something
informative.
* ``script.py.mako`` - This is a `Mako <http://www.makotemplates.org>`_ template file which
is used to generate new migration scripts. Whatever is here is used to generate new