Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malthe/prince-wsgi-server
Prince XML WSGI server
https://github.com/malthe/prince-wsgi-server
Last synced: 15 days ago
JSON representation
Prince XML WSGI server
- Host: GitHub
- URL: https://github.com/malthe/prince-wsgi-server
- Owner: malthe
- Created: 2013-02-22T13:11:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-22T13:12:02.000Z (almost 12 years ago)
- Last Synced: 2024-10-22T20:22:45.082Z (2 months ago)
- Language: Python
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Prince XML WSGI server
======================Configuration using Nginx and uWSGI
-----------------------------------Start a ``uwsgi`` daemon process in the program directory (here
running ``http`` user)::uwsgi -s /var/run/princexml.sock -w app --uid http
(See included nginx.conf.sample for server configuration).
Dynamic processing of included content
--------------------------------------For processing of included content via the element in a
Javascript-enabled web browser (i.e. to support dynamic HTML
documents), the server uses the Python Webkit GTK bindings to invoke a
"webkit" web browser and downloads each of the linked resources.This is an optional feature and depends on the `pywebkitgtk
`_ package.Testing
-------Using ``curl``::
$ curl --data-binary @package.tar http://host
The provided tarball must contain an ``index.html`` file along with
any required images and/or stylesheets.Succesful output (status code 200) will contain the URL for the
generated document. Note: It may not be available right away.