-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e1cbc7
commit b7bb667
Showing
6 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,42 @@ | ||
hxl-proxy | ||
========= | ||
|
||
Python-/flask-based web proxy for transforming a HXL dataset dynamically. | ||
Python-/flask-based web proxy for transforming a HXL dataset | ||
dynamically. Currently runs only in Python 2.7+, but Python 3 support | ||
is close. | ||
|
||
http://hxlstandard.org | ||
# Installation | ||
|
||
Installation from PyPi: | ||
|
||
``` | ||
pip install hxl-proxy | ||
``` | ||
|
||
Installation from source: | ||
|
||
``` | ||
python setup.py install | ||
``` | ||
|
||
Running unit tests: | ||
|
||
``` | ||
python setup.py test | ||
``` | ||
|
||
# Usage | ||
|
||
Install libhxl-python and flask. | ||
Launching a local server (usually on http://127.0.0.1:5000): | ||
|
||
``` | ||
python run-server.py | ||
``` | ||
|
||
Typically, the proxy will be running on port 5000 for local use. For | ||
web deployment, see the hxl-standard.wsgi.TEMPLATE file and the flask | ||
documentation. | ||
For web deployment, see the hxl-standard.wsgi.TEMPLATE file and the | ||
flask documentation. | ||
|
||
For more on HXL, see http://hxlstandard.org | ||
|
||
For more documentation about the underlying HXL engine and filters, | ||
see https://github.com/HXLStandard/libhxl-python/wiki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
######################################################################## | ||
# Configuration template for hxl-proxy | ||
# | ||
# Copy this to config.py (or similar), then change the values to suit. | ||
# Before launching the application, set the environment variable | ||
# HXL_PROXY_CONFIG to the full path to your config file, so that | ||
# the hxl-proxy app can find it. | ||
######################################################################## | ||
|
||
# | ||
# If True, will show detailed debugging information on errors | ||
# Should be False for a production system | ||
# | ||
DEBUG=True | ||
|
||
# | ||
# Name of a file for storing saved profile information | ||
# | ||
PROFILE_FILE='/tmp/hxl-proxy-profiles' | ||
|
||
# | ||
# Change this to a key known only to your server | ||
# (Used to secure cookies) | ||
# | ||
SECRET_KEY='In charity, there can be no excess.' | ||
|
||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.