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.11.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.11-py3-none-any.whl
(32.4 kB
view details)
File details
Details for the file servc-1.11.11.tar.gz.
File metadata
- Download URL: servc-1.11.11.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 |
5e67e67774c874455b36287b31a8f65d659bdea645996e4de02ce73976d4bd0f
|
|
| MD5 |
f0da361d420811755a141f16484cbc50
|
|
| BLAKE2b-256 |
545f04bf248bb54a2c7ddb2c252501f65554901305ac77ef4d51d7a2e9d0cd7e
|
File details
Details for the file servc-1.11.11-py3-none-any.whl.
File metadata
- Download URL: servc-1.11.11-py3-none-any.whl
- Upload date:
- Size: 32.4 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 |
0c7db3359520add0afecd5f83b6a2d3e66889348b4d830b24fe296caf95dbe4b
|
|
| MD5 |
550d577747f201b8015b02a0af36c2b5
|
|
| BLAKE2b-256 |
df1f5762e86ab8d0fc8b591952e7469d92f2fc495a11098fc1bd49ddb5139326
|