Skip to main content

Vesta 🍒

V1 — Harpie · A batteries-included Python web framework.

Vesta is a strongly opinionated, minimalist framework for building full-stack web applications. Routing, a PostgreSQL ORM, authentication, mailing, WebSockets, and a companion JavaScript front-end library all ship in a single package — so you can go from vesta init to a running app without wiring together a dozen dependencies.

Python PostgreSQL


✨ Features

  • HTTP server — fast WSGI-based routing with a simple @expose decorator
  • WebSocket server — real-time messaging and notifications
  • PostgreSQL ORM — lightweight, parameterized query helpers
  • uniauth — built-in authentication: JWT sessions, email verification, password reset
  • Mailing — SMTP delivery with DKIM signing and HTML templates
  • Front-end library — reactive HTML templating, navigation, i18n, and a Markdown renderer
  • Tooling — project scaffolding, DB management, and nginx/systemd setup via one CLI

📋 Requirements

  • Python 3.8+
  • PostgreSQL (used by the ORM and uniauth)

⏬ Installation

pip install vesta-web

Or install the latest from source control:

pip install git+https://gitlab.com/Louciole/vesta.git/

Minimal example

from vesta import Server

from os.path import abspath, dirname
PATH = dirname(abspath(__file__))

class App(Server):
    features = {"errors": {404: "/static/404.html"}}

    @Server.expose
    def index(self):
        return self.file(PATH + "/static/home/home.html")

    @Server.expose
    def hello(self, name="world"):
        return f"Hello, {name}!"

App(path=PATH, configFile="/server.ini")

A method decorated with @Server.expose becomes a route: index is served at /, and hello at /hello (query/JSON/form parameters are passed as arguments).

🛠️ CLI

Command Description
vesta init Scaffold a new project (choose server type & features)
vesta install Install front-end dependencies declared in the project
vesta update Update the bundled front-end libraries
vesta test Run the project's test suite
vesta db create Create and initialize the database (+ uniauth)
vesta db init Initialize the schema on an existing database
vesta db reset Drop and re-initialize the database
vesta nginx setup Install an nginx site config
vesta service setup Install and enable a systemd service

⚙️ Configuration

Settings live in server.ini (parsed with ConfigParser). A typical file:

[server]
IP = 0.0.0.0
PORT = 9876
DEBUG = true
DEFAULT_ENDPOINT = /
SERVICE_NAME = MyApp

[security]
SECRET_KEY = change-me        # signs JWT sessions — use a long random value

[DB]
DB_USER = myapp
DB_PASSWORD = ...
DB_NAME = myapp
DB_HOST = localhost
DB_PORT = 5432

Keep secrets out of version control. server.ini holds credentials and the JWT signing key — don't commit a real one. To stop tracking changes to a local copy: git update-index --assume-unchanged server.ini.

📚 Documentation

Full guides and the API reference: https://louciole.gitlab.io/vesta-docs/

📁 Build from source

python3 -m pip install --upgrade build
python3 -m build
pip install dist/vesta_web-*.whl

Metadata

Release files for vesta-web 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vesta-web 1.3.0
File Size Uploaded Provenance Actions
vesta_web-1.3.0.tar.gz 14.8 MB Without provenance Details for vesta_web-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vesta-web 1.3.0
File Interpreter ABI Platform Actions
vesta_web-1.3.0-py3-none-any.whl Python 3 none any Details for vesta_web-1.3.0-py3-none-any.whl

Total release size: 14.8 MB

Release files / vesta_web-1.3.0.tar.gz

Download URL vesta_web-1.3.0.tar.gz
Size 14.8 MB
Tags Source
SHA-256 checksum
How to use checksums
4ba84c96c8800762e6c94add9df5261bf297d81e965427814b963498c7d7c768
BLAKE2b-256 checksum
How to use checksums
4fac8bb9dc608a762fe14521cca14efaac9d05bf96596eae25b5d5997a9bfe70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / vesta_web-1.3.0-py3-none-any.whl

Download URL vesta_web-1.3.0-py3-none-any.whl
Size 71.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05ab1d0ab87481bacab82e0bf42906639bf867dd47cba4449c40bd01396a7ca4
BLAKE2b-256 checksum
How to use checksums
d5e702ac93cc75b9f6be9a5ae674e5f8fba9a4ba127ef6241d7e8c4255936c5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for vesta-web 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page