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.0.tar.gz
(13.1 kB
view details)
Built Distribution
servc-0.4.0-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file servc-0.4.0.tar.gz
.
File metadata
- Download URL: servc-0.4.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad846c789178deb5cdce4a9ed51b17e7c1f8dd1d08c30d76fde73470e538402 |
|
MD5 | a2538a691e426b3e792606eb6fcbf633 |
|
BLAKE2b-256 | 504cc3e4a82f01f6e356337c3820f8e34d6fa8fdd822cceca3cc3c1cb57a95a9 |
File details
Details for the file servc-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: servc-0.4.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c93f00cf881bd4b96d3d90c5253934f38e00f9146e482ccd689d1e6e38505b9 |
|
MD5 | 67f85b2091ff1ea1fde00887a4dd9562 |
|
BLAKE2b-256 | a5a25ed6e454b7d38cbb74608fb1aff0be8d94e27b9ff303a6375c3516f1b9f8 |