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.10.tar.gz
(27.4 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.10-py3-none-any.whl
(32.3 kB
view details)
File details
Details for the file servc-1.11.10.tar.gz.
File metadata
- Download URL: servc-1.11.10.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd958280768242905f8ee0aa951a6b0e5f6266e0d7705aa84ce5dd9ae7684c85
|
|
| MD5 |
3230582eaaaf9e6a266aadd1dc8aa662
|
|
| BLAKE2b-256 |
311e1586636878460e82f0634dc0c88ef1e2dc4b2c13df44254909f618af6eb7
|
File details
Details for the file servc-1.11.10-py3-none-any.whl.
File metadata
- Download URL: servc-1.11.10-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7a3b2c3c9606b7488d75b702a28c294c15a2ddd1adc02807e615fcfe61583a3
|
|
| MD5 |
6ebaed9c4dac889129f86258f965b63b
|
|
| BLAKE2b-256 |
85732d00d706a02fd4cc5e4f99f2d052ad96e27a9c04f5af99de843b553be73b
|