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.1.tar.gz
(13.3 kB
view details)
Built Distribution
servc-0.5.1-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file servc-0.5.1.tar.gz
.
File metadata
- Download URL: servc-0.5.1.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 | 975e364ee6b58931b0955108bba41bb3fd521314e12735917481492c425ac03c |
|
MD5 | 569d0e511e270b78c253324f0a218019 |
|
BLAKE2b-256 | edb58c1d691b07edead9c292f88dde52e07591e70bf1a5b7d6c1e177d20d42a2 |
File details
Details for the file servc-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: servc-0.5.1-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 | 7bd7804bb52d929a81ca08500dd1735454376e3c0f236d3b1b5b025c09144d29 |
|
MD5 | e279c5794a47e74d9245d052d60849f5 |
|
BLAKE2b-256 | dee08a643ad538fb11cff397a47c1fa3e3514451f7d3b33bbcdb8f372d639fc7 |