Skip to main content

NoOra a database deployment tool.

Project description

# ![noora logo](

# Welcome to Noora
Noora is a deployment tool that can be used to automate the database deployment cycle. It allows you to organize your database structure, do versioning on your data model, set up environments and generate self-contained Python packages that can deploy your structure to a server.

Noora was created with the DevOps paradigm in mind; especially when as a team you manage many database models it enables you to standardize your DDL and streamline development, testing, acceptance and deployment in production.

NOTE: This project is currently split across two branches, where Noora 1.1.0 provides MySQL and MSSQL support using Python 2 and 3 and Noora 1.0.2 supports Oracle and MySQL using Python 2 only. This documentation describes Noora >= 1.1.

Noora is released under the [GNU General Public License](LICENSE).

# Quick Start
To install Noora, you can either install a release from Github or install from source:

# Install a release from Github
$> pip install

# Clone and install from source
$> git clone
$> cd noora
$> pip install .

We'll set up a MySQL project, so first make sure to create a user and database for your project:

$> mysql -uroot
mysql> create database acme;
mysql> create user apps@'localhost' identified by 'apps';
mysql> grant all on acme.* to apps@'localhost';
mysql> -- This is currently required to be able to drop functions and procedures, to be fixed
mysql> grant select, delete on mysql.proc to apps@'localhost';
mysql> flush privileges;

Then, on the command line create your project:

$> mynoora generate -t=mysql
database : acme
host [localhost] :
username : apps
password : apps
version [1.0.0]:
version 1.0.0 created.

Add a table and some data to your newly created project:

$> echo "CREATE TABLE hello ( value VARCHAR(128) );" > acme-db/create/acme/ddl/tab/hello.sql
$> echo "INSERT INTO hello SET value='world';" > acme-db/create/acme/dat/hello.sql

Now, let's deploy the project and see what happens:

$> cd acme-db
$> mynoora create -h=localhost
creating database 'acme' on host 'localhost' using environment 'dev'
database 'acme' created.

You can verify that the table you added along with some default data was deployed, and that the current version of your database model is 1.0.0 in the 'dev' environment:

$> mysql -uapps -p acme
Enter password:
mysql> select * from hello;
| value |
| world; |
1 row in set (0.00 sec)

mysql> select get_property('application.version');
| get_property('application.version') |
| 1.0.0 |
1 row in set (0.00 sec)

That's it! To learn more about Noora projects, check out For now, you can clear out your database like this::

$> mynoora drop -h=localhost
dropping database 'acme' on host 'localhost' using environment 'dev'
database 'acme' dropped.

Note that this does not actually drop the database itself, rather it removes all objects, including views and procedures.

# Next Steps

Check out the documentation over at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noora-1.1.0.tar.gz (36.3 kB view hashes)

Uploaded source

Built Distribution

noora-1.1.0-py3-none-any.whl (62.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page