~~~~~~~~~~~~~~~~~~~~~~
Inspired by Flask
It currently has a basic WSGI interface and WebSocket support.
A demo websocket app is available here http://vase-chat.herokuapp.com/
Sample echo app
~~~~~~~~~~~~~~~~~
.. code-block:: python
from vase import Vase
app = Vase(__name__)
@app.route(path="/")
def hello(request):
return "Hello Vase!"
@app.endpoint(path="/ws/echo")
class EchoEndpoint:
"""
WebSocket endpoint
Has the following attributes:
`bag` - a dictionary that is shared between all instances of this endpoint
`transport` - used to send messages into the websocket
"""
def on_connect(self):
self.transport.send("You are successfully connected")
def on_message(self, message):
self.transport.send(message)
def on_close(self, exc=None):
print("Connection closed")
if __name__ == '__main__':
app.run()
Metadata
Release files for Vase 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Vase-0.1.4.tar.gz | 8.7 kB | Without provenance | Details for Vase-0.1.4.tar.gz |
Release files / Vase-0.1.4.tar.gz
| Download URL | Vase-0.1.4.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
301dffa64e98fa2fd638b765d0e051b79eed0433551b329a44c2b75857cff0e7
|
|
BLAKE2b-256 checksum How to use checksums |
96bd02cef2d324aa01543165b5ce27cffb746452c6532749272eb62c60982595
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Vase 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.