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.1.tar.gz
(17.9 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.1-py3-none-any.whl
(24.7 kB
view details)
File details
Details for the file servc-1.6.1.tar.gz.
File metadata
- Download URL: servc-1.6.1.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92a210d56d2978e7c91210034ff49d6801714e4e5d68a2b7db91192366011c19
|
|
| MD5 |
425ff3ee34440400a5cd75916e69a442
|
|
| BLAKE2b-256 |
9685233c4ed982d214b7c0de10caa17168f0bdaceb4fe4bc64e59e6a8b7b804e
|
File details
Details for the file servc-1.6.1-py3-none-any.whl.
File metadata
- Download URL: servc-1.6.1-py3-none-any.whl
- Upload date:
- Size: 24.7 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 |
98b57bb7365b7693fcc147a72efeeafef257186075ff7cd049dee67e9d9f00fd
|
|
| MD5 |
85db0d6af6e1db1606dbc6e270445882
|
|
| BLAKE2b-256 |
7a5ca5ddc733fbcbf182a404acfe536646a0f397d5cfa8a58ff3e2f4d41b157e
|