Skip to main content

Deployment related Fabric utilities

Project description

https://travis-ci.org/tshlabs/tunic.png?branch=master https://img.shields.io/pypi/v/tunic.svg

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 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.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

tunic-1.2.2-py2-none-any.whl (15.0 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for tunic-1.2.2.tar.gz
Algorithm Hash digest
SHA256 a22fb43a82dbc6248a97124122bb3f3aba6b4f6c17303f44710807b48269c98f
MD5 2529b5acaef1250b25a423872ae409c7
BLAKE2b-256 f50439606c9f6c0febc8cc15aaed0c0804bb9e98510b769fbcfc7a6f5c78928a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tunic-1.2.2-py2-none-any.whl
Algorithm Hash digest
SHA256 ddc53db9d050a36556dd73553621df9d9e6c0971325cf3ecff9efeee45b6d0ea
MD5 ae83451fc86c90827258b4ba3d1f5b36
BLAKE2b-256 bd979b6950f87b998266d99e7372fd0e3093b0a48819c7ed03ab66e673662bb9

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