Deployment related Fabric utilities
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.
The latest documentation is available at http://tunic.readthedocs.io/en/latest/
The source is available at https://github.com/tshlabs/tunic
Python packages are available at https://pypi.python.org/pypi/tunic
The change log is available at http://tunic.readthedocs.io/en/latest/changes.html
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size tunic-1.3.0-py2-none-any.whl (15.4 kB)||File type Wheel||Python version py2||Upload date||Hashes View hashes|
|Filename, size tunic-1.3.0.tar.gz (12.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|