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:

$ pipenv install

Linting:

$ pipenv run lint

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.5.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

stardust-0.0.5-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stardust-0.0.5.tar.gz
Algorithm Hash digest
SHA256 973eae6446a2c3a00a5010888bb779565234a224c2a421c8422bf43afb957ff5
MD5 05ff5bbbaac382ab441c3ce7894293f8
BLAKE2b-256 d8f1e0ee511a2763cbc7bdc5d53a8f9055575f538844435f65ae07b9c435e79c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stardust-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cbbe1f4b2b748c847787ecfa2ba2db3ff0376354e01e929a41ced4b603570606
MD5 83bc83c572a0a0969ca6a20c4ac76ccb
BLAKE2b-256 7d361ea98a79aee851cdd7f50f8c39794e71146254a3426c208cf10cb4e3b4db

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