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.4.8.tar.gz
(13.3 kB
view details)
Built Distribution
servc-0.4.8-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file servc-0.4.8.tar.gz
.
File metadata
- Download URL: servc-0.4.8.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 | f727e761f2beb3c16385f6c3405b5dd0112866e88591345ae478d9c952f3b059 |
|
MD5 | 6c92bf4aea3d77d53860d08a208a05aa |
|
BLAKE2b-256 | d7154f008a109e15b299abc68a840d5c3738433cd8abadc5d83230c060cd14b0 |
File details
Details for the file servc-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: servc-0.4.8-py3-none-any.whl
- Upload date:
- Size: 15.8 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 | 43a689fe17ed5e9d7677aefabedea510ef64f6d7c8366fff0401cb22360b8378 |
|
MD5 | 3a3b2841f0f40efd84175a48c88a8d16 |
|
BLAKE2b-256 | 25ebcd739d414d437b3e568b26e5a7f5aa7f568a37e1896b7a7ca38c3167a355 |