Evlet
Project and instance CLI
Install once, create apps, create isolated instances and run them. The Python package includes the browser UI, Playground and offline documentation.
evlet setup myproject
cd myproject
evlet app notes
evlet instance acme
evlet install notes --instance acme
evlet serve acme
Read the CLI guide for trusted installation, Git sources,
dependencies, migrations, recovery and deployment boundaries. evlet playground
and evlet docs work without a project. The existing APIs and contributor
commands below remain available.
A Python application framework with a native SolidJS interface. Define models and pages in Python, then use generated lists, forms and routes in the browser. The Playground opens with sign-in, Docs and Demo Pages, including the Projects example. SQLite remains the default; PostgreSQL is optional. The completed backend milestones remain available through the same APIs.
Python model definitions remain authoritative. The core uses the Python standard library; the CLI installs Packaging for dependency checks and Uvicorn for serving. No database server, Redis, Docker, or worker is required.
Install the Python package
Requires Python 3.12 or newer. Version 0.1.2 includes the project and instance CLI, SolidJS UI, Playground and offline documentation:
python -m pip install --upgrade evlet
evlet --help
Optional adapters are available with python -m pip install 'evlet[postgres]'
or python -m pip install 'evlet[s3]'. The package includes the CLI, Uvicorn,
the built SolidJS UI, Playground and offline documentation. Run evlet playground
to explore it or evlet docs to read the documentation. Node is needed only when
developing the frontend from a repository checkout.
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 repository 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. Open http://127.0.0.1:5173 for the native SolidJS UI. Sign-in opens Docs.
Demo Pages contains the approved Projects example and a Python-authored reactive
page. Models opens the real database-backed screens.
Create the first administrator account when prompted. Use Accounts to add Editor
or Viewer accounts. Docs opens first; choose Models in the sidebar to 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 dist/evlet-0.1.2-py3-none-any.whl
/tmp/evlet-wheel-check/bin/python -I scripts/check_package.py
/tmp/evlet-wheel-check/bin/python -I scripts/smoke_cli.py
The Python suite exercises real SQLite files, validation, rollback, constraints, concurrent short writes, and full ASGI requests. The frontend suite exercises the Solid UI and retains the original Vue screens as a test-only regression harness. Tests substitute 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/. The frontend build also installs
assets into evlet/ui/static/ for the Python wheel. After building, the backend
serves the same UI directly at http://127.0.0.1:8000; installed applications need
only Python for ordinary development. 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. The production bundle uses SolidJS and first-party components. Projects and account management load separately. The previous Vue screens remain only as a development test harness. No performance or scalability guarantees are claimed.
See Evlet UI for Python pages, layouts, component contracts, state, routes, generated records and custom Solid components.
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.2
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.2.tar.gz | 540.3 kB | Without provenance | Details for evlet-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evlet-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for evlet-0.1.2-py3-none-any.whl |
Total release size: 828.0 kB
Release files / evlet-0.1.2.tar.gz
| Download URL | evlet-0.1.2.tar.gz |
|---|---|
| Size | 540.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b4c7bbe4a2f0be9cbc2f0b1142cac00214bfb37bddf2f65bac9695a1233bdee
|
|
BLAKE2b-256 checksum How to use checksums |
9b1a848d3840003e89ebab7be11913621d77fbf1313b4cf281bc1ea4f2eccb26
|
| 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.2-py3-none-any.whl
| Download URL | evlet-0.1.2-py3-none-any.whl |
|---|---|
| Size | 287.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d32ea3726fbb109f79107f8d89ff7b1036adb0d5cf72dc1bf4f59c2912d91ab9
|
|
BLAKE2b-256 checksum How to use checksums |
2cb86a630faf0fc6b8a5c45ab223b9e944cd8d4ee69caf1be70cb63043fe03e2
|
| 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.2
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.