Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stardust-0.0.6.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

stardust-0.0.6-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file stardust-0.0.6.tar.gz.

File metadata

  • Download URL: stardust-0.0.6.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.29

File hashes

Hashes for stardust-0.0.6.tar.gz
Algorithm Hash digest
SHA256 08f1796096bf66d7d466ee715d97209776c86ea0665256e3bd4dbe52e4434304
MD5 7e6ef7a5ff538b4450756dbdb8c0339e
BLAKE2b-256 12fb3d77736c97140871562a75c0cbdcb1c059541bff5cf0e2516cdd21d27294

See more details on using hashes here.

File details

Details for the file stardust-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for stardust-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 424c5c628ebdaefb375782fd5cf3a07b35669a84dee54a57f16dfdd805e0e545
MD5 d20c77057ea671d55ac6992f42022b43
BLAKE2b-256 0553913937e7b68e62b0c097763369642f5630dd8394e2fc252fdd022c0cd012

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page