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.11.5.tar.gz
(27.3 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.11.5-py3-none-any.whl
(32.3 kB
view details)
File details
Details for the file servc-1.11.5.tar.gz.
File metadata
- Download URL: servc-1.11.5.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b80038625afa86d8f2ef2b73ecdbaaa7ac12959ef3807362be52e744442c972a
|
|
| MD5 |
bd991a59fae74111ad2f29a83f74f93d
|
|
| BLAKE2b-256 |
ed7439172b6493a1d30bad69cd47efe40d8991811d0d64e2bb7025cd4fa5c822
|
File details
Details for the file servc-1.11.5-py3-none-any.whl.
File metadata
- Download URL: servc-1.11.5-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74c2f56321f7570193dc5f9841744f99b950754d4fa7484d9f973f768cc1e0f4
|
|
| MD5 |
9c0b97fa009108a7fc5c5d462977b016
|
|
| BLAKE2b-256 |
6d6a4ad5be8ba00dceea9a317488eb1a52f5878c8723098056538438dac7309a
|