A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://pypi.python.org/pypi/fabtools below:

fabtools · PyPI

About

fabtools includes useful functions to help you write your Fabric files.

fabtools makes it easier to manage system users, packages, databases, etc.

fabtools includes a number of low-level actions, as well as a higher level interface called fabtools.require.

Using fabtools.require allows you to use a more declarative style, similar to Chef or Puppet.

Installing

To install the latest release from PyPI

$ pip install fabtools

To install the latest development version from GitHub

$ pip install git+git://github.com/ronnix/fabtools.git
Example

Here is an example fabfile.py using fabtools

from fabric.api import *
from fabtools import require
import fabtools

@task
def setup():

    # Require some Debian/Ubuntu packages
    require.deb.packages([
        'imagemagick',
        'libxml2-dev',
    ])

    # Require a Python package
    with fabtools.python.virtualenv('/home/myuser/env'):
        require.python.package('pyramid')

    # Require an email server
    require.postfix.server('example.com')

    # Require a PostgreSQL server
    require.postgres.server()
    require.postgres.user('myuser', 's3cr3tp4ssw0rd')
    require.postgres.database('myappsdb', 'myuser')

    # Require a supervisor process for our app
    require.supervisor.process('myapp',
        command='/home/myuser/env/bin/gunicorn_paster /home/myuser/env/myapp/production.ini',
        directory='/home/myuser/env/myapp',
        user='myuser'
        )

    # Require an nginx server proxying to our app
    require.nginx.proxied_site('example.com',
        docroot='/home/myuser/env/myapp/myapp/public',
        proxy_url='http://127.0.0.1:8888'
        )

    # Setup a daily cron task
    fabtools.cron.add_daily('maintenance', 'myuser', 'my_script.py')
Supported targets

fabtools currently supports the following target operating systems:

Contributions to help improve existing support and extend it to other Unix/Linux distributions are welcome!

Changelog 0.20.0 (2016-10-12) Version 0.19.0 (2014-07-05) Version 0.18.0 (2014-05-02)

This release requires Fabric >= 1.7.0 and drops support for Python 2.5.

Version 0.17.0 (2013-12-06) Version 0.16.0 (2013-10-26) Version 0.15.0 (2013-07-25) Version 0.14.0 (2013-05-22)

Note: Fabtools now requires Fabric >= 1.6.0

Version 0.13.0 (2013-03-15) Version 0.12.0 (2013-03-04) Version 0.11.0 (2013-02-15) Version 0.10.0 (2013-02-12) Version 0.9.4 (2013-01-10) Version 0.9.3 (2013-01-08) Version 0.9.2 (2013-01-05) Version 0.9.1 (2013-01-04) Version 0.9.0 (2013-01-04) Version 0.8.1 (2012-10-26) Version 0.8.0 (2012-10-26) Version 0.7.0 (2012-10-13) Version 0.6.0 (2012-10-13) Version 0.5.1 (2012-09-21) Version 0.5 (2012-09-21) Version 0.4 (2012-05-30) Version 0.3.2 (2012-03-19) Version 0.3.1 (2012-03-19) Version 0.3 (2012-03-19) Version 0.2.1 (2012-03-09) Version 0.2 (2012-03-09) Version 0.1.1 (2012-02-19) Version 0.1 (2012-02-19)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4