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.9.1.tar.gz
(24.2 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.9.1-py3-none-any.whl
(28.4 kB
view details)
File details
Details for the file servc-1.9.1.tar.gz.
File metadata
- Download URL: servc-1.9.1.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de2ddca27017179daad60e4dc253cce86d7a7a81db83051b60357b871adb271e
|
|
| MD5 |
2beb367838e26498dcfd236d5f9ad4c3
|
|
| BLAKE2b-256 |
737c659cae56c3366250a31c2718b74401d508ee287acd673e99ce17aa2ce199
|
File details
Details for the file servc-1.9.1-py3-none-any.whl.
File metadata
- Download URL: servc-1.9.1-py3-none-any.whl
- Upload date:
- Size: 28.4 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 |
f819305bd21a05b5f38519e22926685de9fe8bc68cdc9d1a5b474c8d0c9e0139
|
|
| MD5 |
cffd2c00959a532a405c0adb91530d65
|
|
| BLAKE2b-256 |
8dec14617709345593b7dd5f7241f3df00ae11aa15f1a6b69d88b9975ec49a04
|