serve static file.
Project description
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 .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fserve-0.1.1.tar.gz
(5.4 kB
view details)
File details
Details for the file fserve-0.1.1.tar.gz
.
File metadata
- Download URL: fserve-0.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f75f912924d984e30c58dbfb1f981801c06466ed76dfc69166d456bd1e059095 |
|
MD5 | f4154a3273577a2fcbac9b1febdbace2 |
|
BLAKE2b-256 | 1ee056b2a3105165b9b186f996d76f74342053d9a498c310ebf22fe5e9c8cbce |