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.)
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| darkstar-0.1.5.tar.gz | 12.4 kB | Without provenance | Details for darkstar-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darkstar-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for darkstar-0.1.5-py3-none-any.whl |
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
|
Security for darkstar 0.1.5
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.