__ _ _ _ / _| (_) | | | | |_ __ _ _| |_ ___ _ _| |_ | _/ _` | | __/ _ \| | | | __| | || (_| | | || (_) | |_| | |_ |_| \__,_|_|\__\___/ \__,_|\__| faitout is a Free and Open-Source alternative to http://www.postgression.com/ It goal is to provide access to temporary postgresql databases which can be used for unit-test thus reducing the differences between testing and production environment How to use faitout? =================== Create a new connection ----------------------- The usage is simple: curl http://faitout.fedorainfracloud.org/new postgres://user:password@host/db Retrieve the same information as json: curl -H 'Accept: application/json' http://faitout.fedorainfracloud.org/new { "dbname": "dbname", "username": "username", "password": "password", "port": 123, "host": "host.com" } Accepts also the 'Content-Type' header. Clean a connection ------------------ Clean one of your connection by dropping and re-creating the database curl http://faitout.fedorainfracloud.org/clean/db_name Database db_name has been cleaned Drop a connection ------------------ Drop one of your connection by dropping the database curl http://faitout.fedorainfracloud.org/drop/db_name Database db_name has been dropped Get some stats about the current faitout ---------------------------------------- Check out: http://faitout.fedorainfracloud.org/stats Faitout and other tools ======================= faitout and python ------------------ Install the requests module from : http://www.python-requests.org/ You may then set the SQLAlchemy URL in one line as follow: DATABASE_URL = get('http://faitout.fedorainfracloud.org/new').text faitout and Travis CI --------------------- Travis CI is a continuous integration service: https://travis-ci.org/ Simply add the following to your .travis.yml env: - DATABASE_URL=$(curl http://faitout.fedorainfracloud.org/new) _ _ _ __ | | | | (_) / _| | |_ _ _ ___ | |_ _ __ _| |_ | __| | | |/ _ \| __| |/ _` | _| | |_| |_| | (_) | |_| | (_| | | \__|\__,_|\___/ \__|_|\__,_|_| © 2013 - RedHat Inc - GPLv3+ - Sources: https://github.com/fedora-infra/faitout