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.7.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.7-py3-none-any.whl
(25.9 kB
view details)
File details
Details for the file servc-1.7.7.tar.gz.
File metadata
- Download URL: servc-1.7.7.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 |
302d7029193a514c3418ff738a976a87355d45c4b55836074e0c02bf29b3d268
|
|
| MD5 |
a598671400ac46e15a79fecc6f1dd1b3
|
|
| BLAKE2b-256 |
27bec901d55e1411f24557d55ed3ca7bb48094b517e470f4dfb91b6b2bce64b7
|
File details
Details for the file servc-1.7.7-py3-none-any.whl.
File metadata
- Download URL: servc-1.7.7-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 |
1141bec1bdbe437b64e099c60d713bb911dee0ee1363d4a3a20e256cbe9eaba9
|
|
| MD5 |
9a4e90a4c06bee6b8b42e53dea2dadf9
|
|
| BLAKE2b-256 |
fd5e82580221eb10549c6569a9a8fa97835990e0c6a810c8c112e6d851d5ae1f
|