https://github.com/flickpp/casket
Casket is a Python WSGI gateway
https://github.com/flickpp/casket
flask python wsgi-python wsgi-server
Last synced: 30 days ago
JSON representation
Casket is a Python WSGI gateway
- Host: GitHub
- URL: https://github.com/flickpp/casket
- Owner: flickpp
- License: gpl-2.0
- Created: 2022-09-28T10:15:48.000Z (over 3 years ago)
- Default Branch: release
- Last Pushed: 2022-10-08T16:53:41.000Z (over 3 years ago)
- Last Synced: 2025-03-08T19:36:06.725Z (about 1 year ago)
- Topics: flask, python, wsgi-python, wsgi-server
- Language: Rust
- Homepage: https://wsgicasket.com
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Casket
Casket is a Python WSGI gateway
## Building
Casket is written in Rust. You must obtain a copy of the Rust toolchain,
instructions for doing so are [here](https://www.rust-lang.org/tools/install).
Once obtained:
```
# clone the source code
$ git clone git@github.com:flickpp/casket.git
# cd
$ cd casket
# Build Casket
# cargo build --release
# the casket binary is now target/release/casket
$ cp target/release/tasket $INSTALL_DIR
```
## Running
To run a WSGI application, you must give casket the filename and the WSGI callable.
```python
# file service.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
```
To run the above flask app:
```
$ casket service:app
```
We note `service.py` is the filename and `app` is the name of the WSGI callable.
## Building Documentation
Documentation is done with sphinx.
To install sphinx with pip:
```
$ pip install sphinx
```
And to build the docs:
```
$ sphinx-build -b html doc build
```
Python has a HTTP server shipped in the standard library:
```
$ cd build
$ python -m http.server 9000
```
Docs can now be vied at http://localhost:9000