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.6.tar.gz
(13.4 kB
view details)
Built Distribution
servc-0.4.6-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file servc-0.4.6.tar.gz
.
File metadata
- Download URL: servc-0.4.6.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46b471b12a76e90390622b9dea7864b781568180772365d2a8a41a05085ab3cd |
|
MD5 | e5962db77536ed0357edcae828062964 |
|
BLAKE2b-256 | dcd969d9a5d5a4fd6a756da5d928d8669074e333cb57f3839d4716bae3bece52 |
File details
Details for the file servc-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: servc-0.4.6-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1465ca536ac20b129fda57fdd3d1c4ae5e72c63c28220c838b1ae655323b0afd |
|
MD5 | 2723dd27e9d2f8dcbbb093f88abaf3d2 |
|
BLAKE2b-256 | 4572ae9e08a183d8a64665ecea312760fbb0e6880fe86927d18a60c9a3431aaa |