Metadata-Version: 2.2
Name: restalchemy
Version: 1.2.1
Summary: REST HTTP Abstraction Library
Home-page: http://restalchemy.synapse.net.ru/
Author: Eugene Frolov
Author-email: eugene@frolov.net.ru
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
License-File: LICENSE
License-File: AUTHORS
Requires-Dist: pbr==5.1.1
Requires-Dist: webob==1.8.4
Requires-Dist: six==1.12.0
Requires-Dist: SQLAlchemy==1.0.13
Requires-Dist: requests==2.20.0
Requires-Dist: mysql-connector>2.1.3
Requires-Dist: oslo.config==6.7.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

REST Alchemy
============

.. image:: https://travis-ci.org/phantomii/restalchemy.svg?branch=master
    :target: https://travis-ci.org/phantomii/restalchemy

The Python REST HTTP Toolkit and Object Relational Mapper.



Migration commands
------------------

Create migrations:

::

  $ ra-new-migration --path examples/migrations/ --message "1st migration"
  $ ra-new-migration --path examples/migrations/ --message "2st migration" --depend 1st
  $ ra-new-migration --path examples/migrations/ --message "3st migration" --depend 2st
  $ ra-new-migration --path examples/migrations/ --message "4st migration"
  $ ra-new-migration --path examples/migrations/ --message "5st migration" --depend 3st --depend 4st


Apply migrations:

::

  $ ra-apply-migration --path examples/migrations/ --db-connection mysql://test:test@localhost/test -m 5st
  > upgrade 1st
  > upgrade 2st
  > upgrade 3st
  > upgrade 4st
  > upgrade 5st


Rolled back migrations:

::

  $ ra-rollback-migration --path examples/migrations/ --db-connection mysql://test:test@localhost/test -m 4st
  > downgrade 5st
  > downgrade 4st

::

  $ ra-rollback-migration --path examples/migrations/ --db-connection mysql://test:test@localhost/test -m 1st
  > downgrade 3st
  > downgrade 2st
  > downgrade 1st


Tests
-----

Run tests for python 2.7

::

  $ tox -e py27


Run functional tests (python 2.7)

::

  $ export DATABASE_URI="mysql://test:test@localhost/test"
  $ tox -e functional

