A simple framework for Gemini servers inspired by Flask and Express.js.
Project description
Vela (alpha)
A simple framework for Gemini servers inspired by Flask and Express.js.
from vela import Server
# SSL certificate and private key.
app = Server(cert='cert.pem', key='key.pem')
@app.route('/')
def hello(req, res):
res.send_file('hello.gmi')
PORT = 5000
print(f'Server is listening on port {PORT}...')
app.listen(PORT)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vela-0.0.13.tar.gz
(3.3 kB
view hashes)
Built Distribution
vela-0.0.13-py3-none-any.whl
(3.5 kB
view hashes)