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.8.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.8-py3-none-any.whl
(25.9 kB
view details)
File details
Details for the file servc-1.7.8.tar.gz.
File metadata
- Download URL: servc-1.7.8.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 |
a9d13e6751fce0b7bce3e5c18de1ec88642ccdc67c78ef4f1fbeb598bf8f1481
|
|
| MD5 |
475f2a3ce740f64a586bec5ec4fbbcdc
|
|
| BLAKE2b-256 |
566706742d8109ee1c4aa090639c6c9bca33e065e81afae28bfc974a74922d3e
|
File details
Details for the file servc-1.7.8-py3-none-any.whl.
File metadata
- Download URL: servc-1.7.8-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 |
0630d3e360b07140bfe70860d43ae71b6b1095b7792c9c34629e20e932cf83f6
|
|
| MD5 |
ae35131e64f98988220fc14adb8049b2
|
|
| BLAKE2b-256 |
6b043f46cd44121d295c62baf5b5449fec1b2453efde0524d2dff0a5e4f7b5af
|