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:
$ pipenv install
Linting:
$ pipenv run lint
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.5rc3.tar.gz
.
File metadata
- Download URL: stardust-0.0.5rc3.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4170b8b8357cea5c6446a4c913bbe7058c99e15b2abc6985c8af5387e2bd44a2 |
|
MD5 | b2d8afeb1b0a992e9925cc5cff9563ca |
|
BLAKE2b-256 | f8c0f8f3b3bfc101d5ebe94d5e1871c2542fa193d45c71c959bb80078fa727a9 |
File details
Details for the file stardust-0.0.5rc3-py3-none-any.whl
.
File metadata
- Download URL: stardust-0.0.5rc3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.29
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5734edc371079f43196682be84e6b7745ba04429ce286f982e681b0b78699eb2 |
|
MD5 | 93d940c8e42c55d24bb390197dfe42d9 |
|
BLAKE2b-256 | 78ae8f567b6e6d66dc5e5c0b0a7ca769ca380a88e2c493e8d460120366f97be1 |