Server implmentation of services for python
Project description
svc-lib-server-python
Server implmentation of services for Python.
Introduction
SERVC is an opionated implementation of microservices for scalable web architecture. It assumes :
- all messages can be sent over a bus within the client SLA
- responses can be tracked, stored, and retrieved from an intermediate storage layer
- the state can be measured and hashed into some form of a string
- the scope of worked can be cached using an id representative of the state
Documentation
Servc's documentation can be found https://docs.servc.ca
Example
Here is the most simple example of use, starting a server to handle requests at the route my-route
;
from servc.com.server.server import start_server
def inputProcessor(messageId, bus, cache, components, message, emit):
pass
# the method 'methodA' will be resolved by inputProcessor
start_server(
"my-route",
{
"methodA": inputProcessor
}
)
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
servc-0.5.2.tar.gz
(13.3 kB
view details)
Built Distribution
servc-0.5.2-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file servc-0.5.2.tar.gz
.
File metadata
- Download URL: servc-0.5.2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93782c6cc41036c1b8707330adc96a5a0da5d9991c9636c31b8791e984a2870a |
|
MD5 | 9c3de0a23050709d82d0d1f661f7e958 |
|
BLAKE2b-256 | cccc47aca4c779d3f85499b1b3558e6322ec1b4cf1afb2d030f583b9430d609f |
File details
Details for the file servc-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: servc-0.5.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7424344759175de0c28949312facc42bdd9c09babba7b7256e9bf8a4630af1f6 |
|
MD5 | 9494a9a3867fc566a4288c1a3ecac7a4 |
|
BLAKE2b-256 | b6fcf46bd517cf2d4c9c232ded8ee416cad09c423cf50dbd137b01d06cbbfb2f |