Atilla

Atilla (the API Utilities Library) contains a number of useful functions that are common between flask projects for HTTP API applications. This includes types, validators, functions for creating applications, etc. This library will make setting up new projects a lot faster.

http://img.shields.io/pypi/v/atilla.svg http://img.shields.io/coveralls/paylogic/atilla/master.svg https://travis-ci.org/paylogic/atilla.svg?branch=master Documentation Status

Installation

pip install atilla

Documentation

Detailed python API you can find in the documentation.

Contact

If you have questions, bug reports, suggestions, etc. please create an issue on the GitHub project page.

License

This software is licensed under the MIT license

See License file

© 2015 Paylogic International and others.

Internal API

Database transaction related functionality.

class atilla.transaction.DatabaseManager(session, *args, **kwargs)[source]

Database manager and thread-safe settings.

close()[source]

Close all database sessions.

commit()[source]

Commit and close the session.

Note:Rollback the session on error.
Raise:The exception is re-raised.
rollback()[source]

Rollback all database sessions.

atilla.transaction.create_db_manager(app, session)[source]

Create db manager and assign it on app.

Parameters:sessionSession object