Skip to main content

Sillo Start

Creates a Sillo application from a starter repository.

uvx sillo-start create-app myapp
cd myapp
make setup
make dev

That is the whole tool. It fetches a real, working application, renames it to yours, gives it its own secrets, and gets out of the way.

Why a starter repository, not a generator

A generator renders templates. Templates are checked for rendering, which is not the same as working — a project can produce valid Python, import cleanly, render every page, and still fail on its first real request. Middleware registered in the wrong order, an auth backend reading the wrong claim, a missing static mount: all of them render perfectly.

sillohq/starter is a real application with its own CI. Every push boots it and exercises every route, on three Python versions. What you get has been run, not just written.

It also means the starter can be read, forked and improved on its own, and that sillo-start never has to be released to fix a bug in what it produces.

Install

# Run it without installing
uvx sillo-start create-app myapp

# Or install it
uv tool install sillo-start
pipx install sillo-start

Python 3.11 or newer. The only dependencies are typer and rich.

Usage

sillo-start create-app myapp                       # the default starter
sillo-start create-app sillohq/starter myapp       # named explicitly
sillo-start create-app sillohq/starter@v1.2 myapp  # pinned to a tag
sillo-start create-app acme/our-template myapp     # your own starter

Any public GitHub repository works. A full URL is accepted too, so pasting what is in your address bar does what you expect.

Option
--ref <branch|tag> Which revision to take. Defaults to main
-d, --directory <path> Where to create it. Defaults to ./<name>
--install Install dependencies straight away
--no-git Do not initialise a git repository
--force Allow a directory that is not empty
-v, --verbose Show tracebacks

Dependencies are not installed by default, so creating a project takes a second rather than a minute. make setup in the new project does it, along with everything else a first run needs.

What it does to the project

The starter arrives as a tarball rather than a clone. That needs no git on the machine, brings no history for you to delete before your first commit, and pins to a tag as easily as to a branch.

Then three things happen:

It takes your name. The package name, the application title, the SQLite path. Rewriting is targeted rather than a blanket find-and-replace, so prose that happens to say "starter" — a README sentence, a comment — is left as written.

It gets its own secrets. .env is created from .env.example with a fresh key for SECRET_KEY, JWT_SECRET and APP_KEY. A secret committed to a starter is a placeholder by definition; no two projects should ever share a signing key. An existing .env is never touched — it may hold real credentials.

It becomes a git repository, unless you pass --no-git.

What it deliberately does not do

Migrations, creating users, running the queue worker, starting the server — none of that is here.

Those belong to the project, in its own console.py:

python console.py db migrate
python console.py user admin ada@example.com ada
python console.py worker
python console.py serve --reload

The framework provides the operations as plain functions — sillo.record.commands, sillo.users.commands, sillo.work.commands — and the project decides how to expose them. Nothing in a created project depends on sillo-start, so it cannot rot when this tool changes, and you can delete this tool the moment your project exists.

Safety

An archive member whose path escapes the destination is refused rather than sanitised — that is how a malicious archive overwrites files elsewhere on your machine.

A directory that is not empty is refused unless you pass --force, and even then existing files are left in place.

A project name that is not a usable Python identifier is refused before anything is fetched, since it becomes both a package name and a directory.

Development

See docs/contributing.md.

Licence

BSD-3-Clause.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sillo_start-0.1.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sillo_start-0.1.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file sillo_start-0.1.0.tar.gz.

File metadata

  • Download URL: sillo_start-0.1.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sillo_start-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ac6ae209839d1ce1bed9b173323caf8508b7112bd9029cd2387c45d98f8e2a4
MD5 b807e6ac87be15a03268f3449ac55ca0
BLAKE2b-256 183f51dd7e95bdd874d3810846b40540f96c00da19152cafd7cc01888c2b8723

See more details on using hashes here.

File details

Details for the file sillo_start-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sillo_start-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sillo_start-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9841098e877ac020d0d7de8567eae959e992e10829a600b6181d4a48338ef7d
MD5 b4560327475438378980b320373b421c
BLAKE2b-256 a3b98362015e1b5947a056a328065c1542e18d5a0662a22647d6ba14729de263

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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