tshlabs/tunic


A Python library for deploying code on remote servers

https://tunic.readthedocs.io/

Host: GitHub

License: MIT

Language: Python


Tunic

https://travis-ci.org/tshlabs/tunic.png?branch=master

A Python library for deploying code on remote servers.

Tunic is designed so that you can make use of as much or as little of its functionality as you'd like, the choice is yours.

It only requires the Fabric library as a dependency and can be installed from the Python Package Index (PyPI) using the pip tool like so.

$ pip install tunic

You could then make use of it in your deploy process like so.

from fabric.api import task
from tunic.api import get_release_id, ReleaseManager, VirtualEnvInstallation

APP_BASE = '/srv/www/myapp'

@task
def deploy():
    stop_my_app()
    release = get_release_id()

    installer = VirtualEnvInstaller(APP_BASE, ['myapp'])
    release_manager = ReleaseManager(APP_BASE)

    installer.install(release)
    release_manager.set_current_release(release)

    start_my_app()

The above snippet is just the start, take a look around the code base for more methods that can save you work in your deploy process.

Documentation

The latest documentation is available at http://tunic.readthedocs.io/en/latest/

Source

The source is available at https://github.com/tshlabs/tunic

Download

Python packages are available at https://pypi.python.org/pypi/tunic

Changes

The change log is available at http://tunic.readthedocs.io/en/latest/changes.html

Project Statistics

Sourcerank 5
Repository Size 101 KB
Stars 2
Forks 0
Watchers 1
Open issues 0
Dependencies 10
Contributors 1
Tags 12
Created
Last updated
Last pushed

Top Contributors See all

Nick

Packages Referencing this Repo

tunic
Deployment related Fabric utilities
Latest release 1.3.0 - Updated - 2 stars

Recent Tags See all

tunic-1.2.3 June 21, 2017
tunic-1.2.2 May 06, 2016
tunic-1.2.1 February 25, 2016
tunic-1.2.0 February 25, 2016
tunic-1.1.0 June 03, 2015
tunic-1.0.1 April 04, 2015
tunic-1.0.0 April 04, 2015
tunic-0.5.0 October 11, 2014
tunic-0.4.0 October 03, 2014
tunic-0.3.0 September 28, 2014
tunic-0.2.0 September 26, 2014
tunic-0.1.0 September 22, 2014

Something wrong with this page? Make a suggestion

Last synced: 2017-08-31 17:17:43 UTC

Login to resync this repository