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.3.tar.gz
(13.4 kB
view details)
Built Distribution
servc-0.5.3-py3-none-any.whl
(16.0 kB
view details)
File details
Details for the file servc-0.5.3.tar.gz
.
File metadata
- Download URL: servc-0.5.3.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b808349edd35199a4794a47080985fc98b8c848df2fcf5319d40b8e7f17fc62 |
|
MD5 | b16c509a7a137326400b47a201c7d18f |
|
BLAKE2b-256 | 0ca4ba99e4c2a59e142135d040d87dbe130656f6096731c9a8559ba9c7a589a9 |
File details
Details for the file servc-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: servc-0.5.3-py3-none-any.whl
- Upload date:
- Size: 16.0 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 | a8de39b5bf153f1969e3996630023978530c3422e7e9a7d4e6b5e3d305deea8e |
|
MD5 | 1f59e64eaf1c698e1a4a02e48d5a2e98 |
|
BLAKE2b-256 | 700f3f2ee50fd57643f9b3bc1241621ba24b0f082e5bd3ae4d967d0512f02c82 |