Evlet
A small Python application framework for business applications. This repository implements Milestone 8: optional PostgreSQL persistence, large-data and concurrency measurements, tenant security regression tests, and deployment operations documentation. SQLite remains the default; PostgreSQL is optional.
Python model definitions remain authoritative. The core has zero third-party runtime dependencies. No database server, Redis, Docker, or worker is required.
Install the Python package
Requires Python 3.12 or newer:
python -m pip install evlet
evlet --help
Optional adapters are available with python -m pip install 'evlet[postgres]'
or python -m pip install 'evlet[s3]'. To serve an application, install an ASGI
server such as Uvicorn separately. The installed Python package contains the
framework and command-line tools. The Vue Playground requires the source
distribution or a repository checkout and the setup below.
License
Evlet is available under the MIT License.
Open the Playground on macOS
Install Git, Python 3.12+, and Node 24.15+ (24.x). If you use Homebrew:
brew install git python@3.12 node@24
Then, in Terminal:
git clone https://github.com/evlet-io/evlet.git
cd evlet
bash scripts/playground.sh --setup
This private repository requires your GitHub account to have access. You can also download the feature branch as a ZIP while signed in to GitHub, extract it, open Terminal in the extracted folder, and run the same launcher command.
The launcher installs the locked dependencies, starts both servers and an optional
job worker, checks the API, and opens the Playground in your default browser. Keep Terminal open while
using the app. Press Control-C to stop its processes; your SQLite data remains.
On later runs, use bash scripts/playground.sh from the same folder. The launcher
activates Homebrew's versioned Node and Python paths for its own process only.
Logs are in examples/playground/.data/logs/5173/ by default. If ports 8000 or 5173 are already
occupied, the launcher exits without stopping any existing service. Linux can
use the same launcher with Python and Node already installed. Set
EVLET_OPEN_BROWSER=0 for noninteractive validation.
For an existing Milestone 1, 2, or 3 database, stop the launcher and run
.venv/bin/python -m examples.playground.migrate before restarting it. SQLite upgrades create
a backup and preserve existing records. When EVLET_POSTGRES_DSN is set, the
command upgrades PostgreSQL instead; take an operator-managed PostgreSQL backup
first, as described in the PostgreSQL guide. See the model engine guide
for the API, migration operations, and current limits.
Install for development
Requires Python 3.12+ with venv, Node 24.15+ in the 24.x line, and npm.
The cloud environment was verified with Python 3.12.14 and Node 24.19.0.
Run from the repository root:
python3 -m venv .venv
.venv/bin/python -m pip install --require-hashes -r requirements-dev.lock
.venv/bin/python -m pip install --no-build-isolation --no-deps -e .
npm --prefix frontend ci
In a managed cloud checkout, use the existing checkout at /workspace/evlet and set writable
package caches if the default home directory is read-only:
export PIP_CACHE_DIR=/workspace/.cache/pip
export npm_config_cache=/workspace/.cache/npm
The lockfiles pin development dependencies and preserve package-integrity checks.
Do not regenerate them during routine setup. To intentionally update the Python
lock with uv installed, run uv pip compile pyproject.toml --extra dev --universal --generate-hashes --output-file requirements-dev.lock, then rerun validation.
uv is only a lock-maintenance tool; ordinary setup uses pip.
Run the Playground
From the root, start the backend in one terminal:
.venv/bin/python -m uvicorn examples.playground.app:create_app --factory --host 127.0.0.1 --port 8000
In another terminal, start Vite:
npm --prefix frontend run dev
The backend listens on port 8000; Vite listens on port 5173 and proxies /api and
/health to it. Both bind to loopback. Use your development environment's normal
browser access where supported. The onboarding UI itself does not provide a web
preview; local HTTP requests still verify the running application.
Create the first administrator account when prompted. Use Accounts to add Editor
or Viewer accounts. Then create a customer, an invoice referencing it, and a payment
referencing that invoice. Refresh or restart the backend to verify persistence.
The default database is examples/playground/.data/playground.sqlite3, ignored
by Git. EVLET_DATABASE can select another SQLite file. Each database has its own accounts.
Projects demonstrate child tasks, Start/Complete actions, private attachments, and
a queued Recalculate progress action. The launcher starts its worker; with
manual startup, run .venv/bin/python -m examples.playground.worker separately.
Check the live workflow from the root:
curl --fail http://127.0.0.1:8000/health
.venv/bin/python scripts/smoke.py --base-url http://127.0.0.1:5173
The smoke check prompts for an existing Admin or Editor account. It creates a
uniquely named customer, invoice, payment, and Project, checks
updates, queries, validation, protected deletes, then removes its own records. Use a disposable database via EVLET_DATABASE for validation runs when you
do not want sample records in your working database. It also checks validation,
foreign-key errors, and exact decimal serialization through real HTTP requests.
Use the Python API
from evlet import Application, Currency, Database, Link, Model, Registry, Text
class Customer(Model):
name = Text(required=True)
class Invoice(Model):
customer = Link(Customer, required=True)
reference = Text(required=True, unique=True)
total = Currency(required=True, minimum="0.01")
database = Database(".data/example.sqlite3", Registry(Customer, Invoice))
database.initialize()
with database.transaction() as transaction:
customer = transaction.create(Customer, name="Acme")
invoice = transaction.create(
Invoice, customer=customer.id, reference="INV-001", total="100.10"
)
assert database.get(Invoice, invoice.id).to_dict()["total"] == "100.10"
# Configure LocalAuth before serving protected records over HTTP.
app = Application(database)
Transactions commit on success and roll back together on failure. Use decimal
strings for currency. Integer is also available; Text supports length bounds,
required values, defaults, and uniqueness. Link uses actual SQLite foreign keys.
An application registers models explicitly, so unrelated classes are not exposed.
When shipping migrations, declare the complete history with
Database(path, registry, migrations=migrations) so fresh initialization records
its baseline. Apply later schema changes explicitly with database.migrate(migrations).
See the migration guide.
Test and build
.venv/bin/python -m pytest
npm --prefix frontend test
npm --prefix frontend run build
.venv/bin/python -m build --no-isolation
python3 -m venv /tmp/evlet-wheel-check
/tmp/evlet-wheel-check/bin/python -m pip install --no-deps dist/evlet-0.1.1-py3-none-any.whl
/tmp/evlet-wheel-check/bin/python -I scripts/check_package.py
The Python suite exercises real SQLite files, validation, rollback, constraints, concurrent short writes, and full ASGI requests. The frontend suite uses real PrimeVue components and substitutes only HTTP responses and missing DOM layout APIs. The live smoke check covers the actual server and Vite proxy. Package checks verify the installed wheel outside the source tree. GitHub Actions runs Python tests on 3.12 and 3.13, distribution checks, frontend tests/build, and a live API smoke check. Cloud validation does not establish that remote CI has run.
Build output is in dist/ and frontend/dist/. npm --prefix frontend run preview
serves the production frontend on port 4173 with the same local backend proxy.
This is a development preview, not a deployment recipe.
Current boundaries
- Create, read, update, delete, typed queries, and explicit additive/rename/index migrations are supported. Destructive migrations and arbitrary field-type conversions are not supported. Startup rejects schema drift.
- Local accounts and backend model/record/field permissions are implemented.
The Playground uses them; a bare
Application(database)stays unauthenticated for compatibility. Keep development servers on loopback. SSO and email recovery remain outside the implemented scope. - Currency has two decimal places and no currency-code conversion. The Playground is a persistence example, not a ledger or payment processor.
- Email is a bounded text field; browser email validation is convenience only.
- Lists, counts, search, filters, and relationship choices use bounded server queries. Text search uses SQLite ASCII case folding. Browser integer actions require safe integers.
- Forms, lists, and details are generated from renderer-neutral Python metadata. Full PrimeVue controls and the theme currently produce a JavaScript bundle above Vite's 500 kB advisory threshold. The build succeeds; bundle optimization is follow-up work. No performance or scalability guarantees are claimed.
Read architecture decisions, the full specification, and agent instructions. The model engine guide covers the model engine. See application generation for Milestone 3 metadata, defaults, generated screens, and upgrade instructions. See business capabilities for Milestone 4 APIs, account setup, permissions, actions, children, attachments, and limits.
Milestone 5: tenants and deployment
The tenant and deployment guide covers separate tenant SQLite files, hostname routing, DNS ownership verification, private file storage, and the Caddy/systemd reference deployment. The ordinary Playground retains its existing database and startup command. Tenant setup uses a separate catalog and prompts for its first administrator through the local management command.
Run python scripts/smoke_tenants.py with the virtual environment active to check
two disposable tenants over HTTP. Add --frontend to test Vite or --caddy to test
local HTTPS after building the frontend. No deployment runs automatically.
Milestone 6: jobs, live updates, and adapters
The jobs and live-update guide covers transactional jobs,
retries, schedules, permission-filtered SSE and polling, and the optional S3/R2
storage and Lambda HTTP adapters. No Redis or distributed queue is required.
Use EVLET_RUN_JOBS=0 to run the Playground without a worker.
The Lambda adapter supplies HTTP transport only. It does not make the SQLite Playground deployable on an ephemeral filesystem. No cloud resources are created, and live cloud operation has not been verified. WebSockets and broader production hardening remain deferred.
Milestone 7: discovery and connector interfaces
The connector guide covers compact discovery, model input
schemas, a local MCP stdio connector, private session files, and starter generation.
Run python -m evlet new ./my-app to create a small authenticated application.
The connector starts with read tools; --allow-writes explicitly enables permitted
writes through the existing HTTP API. Every request retains backend permission
checks. No external provider or additional runtime dependency is required.
Install requirements-mcp.lock with --require-hashes to include the optional
official-client interoperability test. CI includes it; ordinary Playground setup
does not need it. Remote MCP hosting and production hardening remain separate work.
Milestone 8: performance and hardening
- PostgreSQL setup, transaction behavior, and migration limits
- Reproducible workload and measured adapter comparison
- Deployment, backup, recovery, and monitoring
The existing tenant catalog remains SQLite-only. PostgreSQL supports authenticated single-application deployments and conservatively serializes writes per database. No production scale or parallel-write capacity is implied by this release.
Metadata
Release files for evlet 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| evlet-0.1.1.tar.gz | 258.2 kB | Without provenance | Details for evlet-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evlet-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for evlet-0.1.1-py3-none-any.whl |
Total release size: 332.5 kB
Release files / evlet-0.1.1.tar.gz
| Download URL | evlet-0.1.1.tar.gz |
|---|---|
| Size | 258.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b34114c115680d9f54b0d7806b6818c4e1b21363de4af9e94f0380e3c482a9f0
|
|
BLAKE2b-256 checksum How to use checksums |
a92cd40de131ac9d62e7cac90e361a84e6998e52dde48af205c1c6512dbcbbe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / evlet-0.1.1-py3-none-any.whl
| Download URL | evlet-0.1.1-py3-none-any.whl |
|---|---|
| Size | 74.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a127b7324a13528b53887a7ffebdf7398a563cd359251b4b53889ef4eb49588
|
|
BLAKE2b-256 checksum How to use checksums |
b75a4a09c77026af936a3d14e8095be78cb29ad6413d6b2b730351d9ddf7289a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for evlet 0.1.1
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.