Skip to main content

Deployment related Fabric utilities

Project description

Tunic is a library built on Fabric for performing common tasks related to deploying a code base on multiple remote servers.

It’s 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.org/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.org/en/latest/changes.html

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

tunic-1.2.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

tunic-1.2.0-py2-none-any.whl (14.8 kB view details)

Uploaded Python 2

File details

Details for the file tunic-1.2.0.tar.gz.

File metadata

  • Download URL: tunic-1.2.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tunic-1.2.0.tar.gz
Algorithm Hash digest
SHA256 7a8e4460cd25cdfa378c69387bd00f957a225e1b6c8c285dc47c97bcb8522017
MD5 70c5718ddee16b0b1c704bff3be67d75
BLAKE2b-256 82cfe13346e6496cec8f2321ae8a9bf49e230049398fe1f02ae95e065edf4b9b

See more details on using hashes here.

File details

Details for the file tunic-1.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for tunic-1.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 ca37f27711aef3c8ae88fe91463090787ecc0ad737d3a1307f55d5649f37edb5
MD5 cf31659e3680848e2b58ca8800b416f0
BLAKE2b-256 0d8e89e22aa35cced9b8e6469880b3f820d6a8455074bbeec29e52cdcdf9ef9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page