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
Note: To set the process name, install the library setproctitle:
$ ps ax|grep test_cors 78064 s002 S+ 0:00.35 arbiter [test_cors running 3 workers] 78065 s002 S+ 0:00.10 worker test_cors [78065] 78066 s002 S+ 0:00.11 worker test_cors [78066] 78067 s002 S+ 0:00.09 worker test_cors [78067]
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.
--name NAME name of the server
--workers WORKERS Number of workers
--debug Debug mode
Example:
In your source folder:
$ cd examples/static $ fserve --workers 3
And go on http://127.0.0.1:5000 url .
Metadata
Release files for fserve 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fserve-0.2.0.tar.gz | 5.7 kB | Without provenance | Details |
Release files / fserve-0.2.0.tar.gz
| Download URL | fserve-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfb4e0d896aa5c8dd842bac2cbf3816bf9838d28fe9f524e149c96f7e85a6b83
|
|
BLAKE2b-256 checksum How to use checksums |
243a087480c6b0e15227f5942b7fa3f70209bedc84d544c32821e5292157bc28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fserve 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.