Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fabric (fabfile.py) helper library
Python
branch: master

README.rst

fablib

fablib is a helper library for Fabric to setup a sandboxed Python environment (virtualenv) for your project without the overhead of having to use Buildout.

Features

  • Create virtualenv and install packages (including dependencies)
  • Automatically include PyWin32 from global site-packages
  • Use PyPM (instead of pip) if available -- saves a lot of time. Requires ActivePython.
  • Supports Python 3.

Usage

  1. Setup:

    $ cd /to/my/project
    $ git submodule add git://github.com/srid/fablib.git fablib
    $ cat > fabfile.py
    import sys
    import os.path as P
    from fabric.api import *
    # Import github.com/srid/fablib
    sys.path.append(P.abspath(
        P.join(P.dirname(__file__), 'fablib')))
    import venv
    
    clean = venv.clean
    init = venv.init
    
  2. Install Fabric, virtualenv and use:

    $ fab -l
    $ fab clean
    $ fab init    # `fab init:pyver=3.1` for Py3k!
    
  3. No more buildout!

    $ bin/python
    

See the applib project for a real-world example.

Something went wrong with that request. Please try again.