A simple framework for Gemini servers inspired by Flask and Express.js.


Keywords
python, gemini, gemini-protocol, gemini-server
License
MIT
Install
pip install vela==0.0.13

Documentation

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)