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.6.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.6-py3-none-any.whl
(24.8 kB
view details)
File details
Details for the file servc-1.6.6.tar.gz.
File metadata
- Download URL: servc-1.6.6.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 |
6eabee7254d2c2b5e62800fc84a563a05cd72479fd01d29171214128b00f095e
|
|
| MD5 |
77696b57e453f2baf09c4f3e16d5eb44
|
|
| BLAKE2b-256 |
dfa08018b02ed6348fd8c6a16792fc53beaa82be2bbac9359cde5da1622f21df
|
File details
Details for the file servc-1.6.6-py3-none-any.whl.
File metadata
- Download URL: servc-1.6.6-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 |
05b776e8d9c7a0a57a6edf4e9b575948b2a550b065fb792a8367c5d383037588
|
|
| MD5 |
4cea3ce1fda43d2556541901ec924c2d
|
|
| BLAKE2b-256 |
08d98dafb872485c0dc49669eaee1df302cf45a4124d33780a37336b074b29d8
|