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.1.tar.gz
(13.2 kB
view details)
Built Distribution
servc-0.4.1-py3-none-any.whl
(15.6 kB
view details)
File details
Details for the file servc-0.4.1.tar.gz
.
File metadata
- Download URL: servc-0.4.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5f2662036a7f3f6c29a803c23050d82f4bbd47928f7eba89ff091ca3e91fa4 |
|
MD5 | ac6dd2190643a5d52629383666866dc3 |
|
BLAKE2b-256 | 4f17d0f8d392be181456a88a5a5d76e8e35f01b713f17cfa1f5a206d84373c5b |
File details
Details for the file servc-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: servc-0.4.1-py3-none-any.whl
- Upload date:
- Size: 15.6 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 | 53cd9f6000ff0e933922c3588866f97b4b5a41216d19390842b879592b736d1c |
|
MD5 | b0ac85fc51e5110fdda38f2d5c4698f8 |
|
BLAKE2b-256 | f6bc4606a334760a42b1dce27e4925692f317a669a8d58f0f35e1053537e8187 |