Skip to main content

Run douwe.com projects locally from their standalone repositories.

Project description

Douwe Runner

Run one douwe.com project locally:

uvx douwe cambrium

or:

pipx run douwe cambrium

A bare name like cambrium resolves to github.com/DOsinga/cambrium and caches the clone under ~/.cache/douwe/projects/.

From the main douwe.com checkout, you can also run the development copy directly:

python projects/douwe_runner/douwe.py cambrium

Project references can be local or GitHub-backed:

python projects/douwe_runner/douwe.py cambrium
python projects/douwe_runner/douwe.py ./projects/cambrium
python projects/douwe_runner/douwe.py DOsinga/cambrium
python projects/douwe_runner/douwe.py https://github.com/DOsinga/cambrium

Inside the douwe.com checkout, a bare name like cambrium prefers ./projects/cambrium. Outside that checkout, it resolves to github.com/DOsinga/<name>.

Useful options:

python projects/douwe_runner/douwe.py --list
python projects/douwe_runner/douwe.py list
python projects/douwe_runner/douwe.py cambrium --embed
python projects/douwe_runner/douwe.py cambrium --no-browser
python projects/douwe_runner/douwe.py cambrium --port 9000
python projects/douwe_runner/douwe.py cambrium --refresh

Installed-package equivalents work the same way:

douwe --list
douwe cambrium --port 9000
douwe cambrium --refresh

Douwe Runner is a small local server for standalone douwe.com projects. It accepts a project directory, a DOsinga/<repo> reference, or a GitHub URL; when needed it caches a shallow clone under ~/.cache/douwe/projects/.

Use douwe --list or douwe list to see projects published on douwe.com. The list comes from https://douwe.com/projects/index.json. Some older projects may still need the full site checkout until their standalone repo is ready.

Project templates are rendered with Jinja2 and served with Tornado. Existing douwe.com project templates can keep using {{ static }} and {% static "..." %} asset references, which the runner maps to local project and shared static directories.

GitHub-backed projects use the git command-line tool for cloning and refreshing. The GitHub CLI (gh) is not required, and the runner does not call the GitHub API. Local project paths do not require git.

Projects that require WebSockets still need the full Django/Channels site for now.

Project details


Download files

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

Source Distribution

douwe-0.1.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

douwe-0.1.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file douwe-0.1.3.tar.gz.

File metadata

  • Download URL: douwe-0.1.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for douwe-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a68efb792b31530290448cc8ee7e59df6687aa75575ecd8617a60c61f5a4b86c
MD5 f66d23a6422e8a4081dca673c77b67aa
BLAKE2b-256 ce83a8ef0863298775e2ab03d82c0fb1a9a9535e3f895052f13327a159794d47

See more details on using hashes here.

File details

Details for the file douwe-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: douwe-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for douwe-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 428ac9c573025e4eec01419f537250843de970eeec5a13c9890ffe11541ab762
MD5 d2cf896b19bee112953ecb7eca655d01
BLAKE2b-256 7c4dd87ff6e5c57c61a0e9bec95745eb9e573df6665c7390301f2e405e3feb80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page