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.4.tar.gz
(18.0 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.4-py3-none-any.whl
(24.8 kB
view details)
File details
Details for the file servc-1.6.4.tar.gz.
File metadata
- Download URL: servc-1.6.4.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89128063e254c41c902e0e4e91b2f9c62f44dceb322d09fa3a7967d9b806ed95
|
|
| MD5 |
333eee567ba8202aeacd974903464c37
|
|
| BLAKE2b-256 |
81181811e61d9caf0f408a494c17d4f075df4fca132bc77ebbd6df25efd0f0de
|
File details
Details for the file servc-1.6.4-py3-none-any.whl.
File metadata
- Download URL: servc-1.6.4-py3-none-any.whl
- Upload date:
- Size: 24.8 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 |
5aaa5059487942770c6b6f13b884ac8457bd4cc1fef2ccb3a26d49a7a522740c
|
|
| MD5 |
622125ff450b7b59cd3072a0cc150b15
|
|
| BLAKE2b-256 |
d1a72444c197a44f495a0e29450534a3d40c183b4c46b7e17a3a3531eab4b5e3
|