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.6.0.tar.gz
(17.7 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.6.0-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file servc-1.6.0.tar.gz.
File metadata
- Download URL: servc-1.6.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
939996171a83f3bb31af02adff93b4a02be34b7b11adacf772e789a370d11890
|
|
| MD5 |
08b78e41c7829ce4de02009462d45aed
|
|
| BLAKE2b-256 |
fffeb9b1f94eae214fedc5c951c48c4dfe870964eb9cb48321e26486aad2c318
|
File details
Details for the file servc-1.6.0-py3-none-any.whl.
File metadata
- Download URL: servc-1.6.0-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78432aeaa9728a2cc6ae00fa8957bfdaac9193b072e62d5d44bd053fe745650d
|
|
| MD5 |
9af553d853568e93c0f58589f91ff3fc
|
|
| BLAKE2b-256 |
9ff82c04363b22e921e9ea6b314dd1b606d42da7e8a660b195afe4d6338c2caf
|