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.2.tar.gz (10.1 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.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: douwe-0.1.2.tar.gz
  • Upload date:
  • Size: 10.1 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.2.tar.gz
Algorithm Hash digest
SHA256 79346da181de72c07459bab7c40221dc6625bded2e20432b9c94cd7fef8eae49
MD5 8461a7cd52b9e8b13537c02f2c1997b2
BLAKE2b-256 a66506764be49de0366f6ba7db5c0ec4fc69da5b09ed25daba7aa26bead581f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: douwe-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 247f38fb7052136c4d51fb1b28e998e389074f5145ba55cae1f84b769efd08b4
MD5 418a4eddd59bd2014bca61f8c91df0af
BLAKE2b-256 6aa1ec2a34fc249fddcf0ddedccd6a06db04700b030c542506eefb3f8542be1e

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