Tunic
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
Metadata
Release files for tunic 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tunic-1.3.0.tar.gz | 12.9 kB | Without provenance | Details for tunic-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tunic-1.3.0-py2-none-any.whl | Python 2 | none | any | Details for tunic-1.3.0-py2-none-any.whl |
Total release size: 28.3 kB
Release files / tunic-1.3.0.tar.gz
| Download URL | tunic-1.3.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5937a28cc849694cc1d4ee91a998cdd95987f2765ba6633875eadf102719addc
|
|
BLAKE2b-256 checksum How to use checksums |
30227ca99e09f3d9edc494e872d40d34130fe1ea6aa8ccfe72817cd09a63563a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tunic-1.3.0-py2-none-any.whl
| Download URL | tunic-1.3.0-py2-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
9a822e97a8d935ef1ea68ca02e4ce799b0a86f9f02b0662406258ee393733b63
|
|
BLAKE2b-256 checksum How to use checksums |
3e0af622ac9c05be5d5f8d1cc3fa4de8d4cf199fd1e7dca7909cf59ebe3d37f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tunic 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.