westurner / pgs

Serve a directory or a git revision over HTTP with Bottle and WSGI; and try_files $1.html https://pypi.python.org/pypi/pgs

Home Page:https://pypi.python.org/pypi/pgs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pgs

A bottle webapp for serving static files from a git branch, or from the local filesystem.

Features

  • [x] Serve static files from a filesystem directory
  • [x] Serve static files from a git branch, with Last-Modified headers according to git timestamps
  • [x] Guess MIME-types from paths
  • [x] subprocess bindings to git cat-file and git show
  • [ ] dulwich
  • [ ] pygit2

Usage

Serve /var/www/html from http://localhost:8082/

Serve the gh-pages branch of this repo from http://localhost:8083

Further Usage:

Caveat Emptor

  • Upstream caching would be necessary for all but the most local use cases
  • True git bindings would likely do less buffering of subprocess.check_output

About

Serve a directory or a git revision over HTTP with Bottle and WSGI; and try_files $1.html https://pypi.python.org/pypi/pgs

https://pypi.python.org/pypi/pgs

License:MIT License


Languages

Language:Python 99.0%Language:Makefile 1.0%Language:HTML 0.0%