Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

simple file server in python on unix systems with sendfile support using pistil

tag: 0.1.0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 fserve
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Manifest.in
Octocat-spinner-32 NOTICE
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

fserve

Simple and efficient way to serve static file. used as a pistil demonstration. Handle sendifle api is available on your system.

Requirements

  • Python 2.5 or sup.
  • Gevent > 0.13
  • Pistil >= 0.1.0
  • http-parser >= 0.6.3

Installation

Do one of this command to install it from pypi

pip install fserve

or:

easy_install fserve

From source do:

$ git clone git://github.com/benoitc/fserve.git
$ cd fserve && python setup.py install

Usage

$ fserve [-h] [--bind BIND] [--workers WORKERS] [--debug] [path]

serve a static file folder

positional arguments:
  path               Folder to serve

optional arguments:
  -h, --help         show this help message and exit
  --bind BIND        The socket to bind. A string of the form: 'HOST',
                     'HOST:PORT', 'unix:PATH'. An IP is a valid HOST.
  --workers WORKERS  Number of workers
--debug            Debug mode

Example:

In your source folder:

$ cd examples/static
$ fserve

And go on http://127.0.0.1:5000 url .

Something went wrong with that request. Please try again.