Name | stardust JSON |
Version |
0.0.7
JSON |
| download |
home_page | None |
Summary | Stardust is micro web framework inspired by serverless and lambda deployments. |
upload_time | 2024-11-03 18:42:19 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT |
keywords |
framework
lambda
serverless
web
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Stardust
Micro framework inspired by the simple lambda or serveless deployment.
### Usage:
```sh
$ pip install stardust
```
Create a file with a coroutine function that returns a dict, for example `app.py`:
```python
async def serve(req):
return {
'hello': 'world'
}
```
Now just start the framework, nothing more to do...
```sh
$ 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:
```sh
$ 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:
```python
from .app import serve
```
And specify the module folder instead of a file:
```sh
$ stardust ./example_module
```
### Contributing
Clone the project, install all the dependencies with:
```bash
$ uv python install 3.13
$ uv sync
```
Testing and linting
```bash
$ uv run pytest
$ uv tool run ruff format .
```
Raw data
{
"_id": null,
"home_page": null,
"name": "stardust",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "framework, lambda, serverless, web",
"author": null,
"author_email": "Luca Simone <info@lucasimone.info>",
"download_url": "https://files.pythonhosted.org/packages/e9/c7/7570b12bf6d3d336f5f15b29aff85edcdaf0c184a7932291fb7a5ddc3f53/stardust-0.0.7.tar.gz",
"platform": null,
"description": "# Stardust\n\nMicro framework inspired by the simple lambda or serveless deployment.\n\n### Usage:\n\n```sh\n$ pip install stardust\n```\n\nCreate a file with a coroutine function that returns a dict, for example `app.py`:\n```python\nasync def serve(req):\n return {\n 'hello': 'world'\n }\n```\n\nNow just start the framework, nothing more to do...\n```sh\n$ stardust app.py\n```\n\nYou're up and running! \ud83c\udf89\n\n### More complex cases\n\nFor more complex cases or apps that are not just one function, Stardust is also able to use a module as starting point.\n\nCreate a Python module:\n\n```sh\n$ tree example_module\nexample_module\n\u251c\u2500\u2500 __init__.py\n\u2514\u2500\u2500 app.py\n```\n\nLet's assume app is a complex app with many functions, you can find an example into the `examples` folder.\nThe module should export only the main function that Stardust will use as entrypoint:\n\n```python\nfrom .app import serve\n```\n\nAnd specify the module folder instead of a file:\n\n```sh\n$ stardust ./example_module\n```\n\n### Contributing\n\nClone the project, install all the dependencies with:\n\n```bash\n$ uv python install 3.13\n$ uv sync\n```\n\nTesting and linting\n\n```bash\n$ uv run pytest\n$ uv tool run ruff format .\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Stardust is micro web framework inspired by serverless and lambda deployments.",
"version": "0.0.7",
"project_urls": {
"Repository": "https://github.com/lukefx/stardust"
},
"split_keywords": [
"framework",
" lambda",
" serverless",
" web"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "837edd421563eeb16d2a3804b1d9508cdc1ac98757549abe40a5a208343de23e",
"md5": "19d4d6581775e8769efaadc7bb6a3a6e",
"sha256": "a194779c1e95455c2483b4bcb39a54ae56007485b32b82fda212401b88bef78a"
},
"downloads": -1,
"filename": "stardust-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "19d4d6581775e8769efaadc7bb6a3a6e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5609,
"upload_time": "2024-11-03T18:42:17",
"upload_time_iso_8601": "2024-11-03T18:42:17.581362Z",
"url": "https://files.pythonhosted.org/packages/83/7e/dd421563eeb16d2a3804b1d9508cdc1ac98757549abe40a5a208343de23e/stardust-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e9c77570b12bf6d3d336f5f15b29aff85edcdaf0c184a7932291fb7a5ddc3f53",
"md5": "36d0757d1cd4118c5562adbc7ab1bfcd",
"sha256": "d63227f1891553a8a8f5234f35b3519d519e135fde9ab9dd7889906ae63cae79"
},
"downloads": -1,
"filename": "stardust-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "36d0757d1cd4118c5562adbc7ab1bfcd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 11790,
"upload_time": "2024-11-03T18:42:19",
"upload_time_iso_8601": "2024-11-03T18:42:19.139147Z",
"url": "https://files.pythonhosted.org/packages/e9/c7/7570b12bf6d3d336f5f15b29aff85edcdaf0c184a7932291fb7a5ddc3f53/stardust-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-03 18:42:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lukefx",
"github_project": "stardust",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "stardust"
}