Server implmentation of services for python
Project description
servc-python
Serv-C implmentation for Python. Documentation can be found here
Example
Here is the most simple example of use, starting a server to handle requests at the route my-route;
from typing import Any
from servc.server import start_server
from servc.svc.com.worker.types import RESOLVER_CONTEXT, RESOLVER_RETURN_TYPE
def inputProcessor(
messageId: str,
payload: Any,
context: RESOLVER_CONTEXT,
) -> RESOLVER_RETURN_TYPE:
return True
# the method 'methodA' will be resolved by inputProcessor
start_server(
resolver={
"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-1.7.5.tar.gz
(22.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
servc-1.7.5-py3-none-any.whl
(25.9 kB
view details)
File details
Details for the file servc-1.7.5.tar.gz.
File metadata
- Download URL: servc-1.7.5.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b27b995cb4c9adc61c9671b342ab6efb2f7a3e4662b490e88d390885004c584
|
|
| MD5 |
c955139b86c7415a1361da8bd4414300
|
|
| BLAKE2b-256 |
5028cf08ce67ed267cb79371655eefa27e0dadc7d3760ece0406216d46371a1f
|
File details
Details for the file servc-1.7.5-py3-none-any.whl.
File metadata
- Download URL: servc-1.7.5-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aafc90f90b6882bb6ac7c81ffdc6d8eb15fed589be40d78cd5906139aa769977
|
|
| MD5 |
381f5d15f759ec9fd43a308071cc8f15
|
|
| BLAKE2b-256 |
a71b98213a814855fab50c3f9fff700d8a9c0ab0e7d54ee870760ef42f5f14a0
|