Stardust is micro web framework inspired by serverless and lambda deployments.
Project description
Stardust
Micro framework inspired by the simple lambda or serveless deployment.
Usage:
$ pip install stardust
Create a file with a coroutine function that returns a dict, for example app.py
:
async def serve(req):
return {
'hello': 'world'
}
Now just start the framework, nothing more to do...
$ stardust app.py
You're up and running! 🎉
More complex cases
For more complex cases or apps that are not just one function, Stardust is also able to use a module as starting point.
Create a Python module:
$ tree example_module
example_module
├── __init__.py
└── app.py
Let's assume app is a complex app with many functions, you can find an example into the examples
folder.
The module should export only the main function that Stardust will use as entrypoint:
from .app import serve
And specify the module folder instead of a file:
$ stardust ./example_module
Contributing
Clone the project, install all the dependencies with:
$ uv python install 3.13
$ uv sync
Testing and linting
$ uv run pytest
$ uv tool run ruff format .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stardust-0.0.7.tar.gz
.
File metadata
- Download URL: stardust-0.0.7.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63227f1891553a8a8f5234f35b3519d519e135fde9ab9dd7889906ae63cae79 |
|
MD5 | 36d0757d1cd4118c5562adbc7ab1bfcd |
|
BLAKE2b-256 | e9c77570b12bf6d3d336f5f15b29aff85edcdaf0c184a7932291fb7a5ddc3f53 |
File details
Details for the file stardust-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: stardust-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a194779c1e95455c2483b4bcb39a54ae56007485b32b82fda212401b88bef78a |
|
MD5 | 19d4d6581775e8769efaadc7bb6a3a6e |
|
BLAKE2b-256 | 837edd421563eeb16d2a3804b1d9508cdc1ac98757549abe40a5a208343de23e |