Skip to main content

Dark Star

Dark Star is a web framework that provides filesystem routing for Starlette and first-class support for server-side rendering.

Dark Star routes are defined by their filesystem path and both the route's backend code and template are contained in the first page.

Motivation

Dark Star aims to provide an easy way to create web applications using the HATEOAS and HDA philosophies favoured by htmx. It also aims to reduce the boilerplate code normally needed when creating web apps. In particular, it looks to reduce the need of having a separate files for view functions and templates. It tries to embrace Locality of Behaviour by putting the view function code and template in the same file, and having the file's path be the route used by Starlette to access the code.

Installation

pip install darkstar

You can then run the included CLI with:

python -m darkstar create-app --help

To run your new app, you'll need an ASGI server installed, such a Hypercorn, Daphne, or Uvicorn.

To run with Uvicorn, first install it:

python -m pip install uvicorn[standard]

The run your app:

python -m uvicorn app:app

(This assumes your defined your app as the app variable in an app.py file.)

Release files for darkstar 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for darkstar 0.1.5
File Size Uploaded
darkstar-0.1.5.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for darkstar 0.1.5
File Interpreter ABI Platform
darkstar-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 22.0 kB

Release files / darkstar-0.1.5.tar.gz

Download URL darkstar-0.1.5.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
544d7078de0091d1b49d024c851ff14ad88601631f387c57a79accb8bdc82e94
BLAKE2b-256 checksum
How to use checksums
411e27693c10291d6d98853a00aabb14919b169647554bbc1b9de610c1d40e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release files / darkstar-0.1.5-py3-none-any.whl

Download URL darkstar-0.1.5-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b1e88f6c030c9829c0dcec88445db3d6d16ef7fa57fab97a8ae39f0edd2de04
BLAKE2b-256 checksum
How to use checksums
179c351388835ae81c329a99994321d84dcbbd92dc352c236d02244889baea71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release 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