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.0.tar.gz
(18.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.7.0-py3-none-any.whl
(25.2 kB
view details)
File details
Details for the file servc-1.7.0.tar.gz.
File metadata
- Download URL: servc-1.7.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc5c18c6982965bdb8c8200eab9f32f479e4bc6738ae860580498185e0b342f
|
|
| MD5 |
71db9913a80b43e656b0c1d89ea10634
|
|
| BLAKE2b-256 |
a99e3b03199e5876fd2aabb799f25f00590967ec1dc28477a01ccdd6b6adbb94
|
File details
Details for the file servc-1.7.0-py3-none-any.whl.
File metadata
- Download URL: servc-1.7.0-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c154350a7aabef09fab00d659f24069f02ee345136823495b16d465e732bc60
|
|
| MD5 |
439b3f6efc9140b9a4905bc3eabe3d48
|
|
| BLAKE2b-256 |
7019ca7de9e6c573258c41c8215f3a4bb1b1f407c714cfda1e353d4b1d68583c
|