Skip to main content

Fabliip is a set of functions aimed at helping developers deploy their websites. It is meant to be used as part of Fabric scripts to ease for example the backup of a database, the upgrade of a remote git repository, etc.

Installation

Install it with pip:

pip install fabliip

Usage

Docs are hosted on readthedocs: http://fabliip.rtfd.org/

You should be able to to get an idea on the different helpers Fabliip provides by browsing the source code, but here’s a minimal example that will allow you to easily enable/disable the maintenance mode on a Drupal site:

from fabric.api import env, task
from fabliip import drupal


@task
def prod():
    env.project_root = '/var/www/mysite'
    env.drupal_root = os.path.join(env.project_root, 'src')
    env.hosts = ['yourhost.com']


@task
def enable_maintenance_mode():
    drupal.set_maintenance_mode(True)

You should now be able to call fab prod enable_maintenance_mode to enable the maintenance mode on your prod instance.

The env.project_root variable is important here because it’s needed by the drupal module. Please refer to the docs of any module you use to check if there’s any env variable that must be defined.

Release files for fabliip 0.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fabliip 0.3.9
File Size Uploaded
fabliip-0.3.9.tar.gz 8.8 kB Details

Release files / fabliip-0.3.9.tar.gz

Download URL fabliip-0.3.9.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
61abd3728a776241aea707ce674f1485d9731aed3589533ef51cef28a6eca9dd
BLAKE2b-256 checksum
How to use checksums
bdeec24b3a32179731ca1f19870f0287ec82943825a8f7c5d6798c6da1c0d41e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.9 This release

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page