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.3.tar.gz
(18.7 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.3-py3-none-any.whl
(25.9 kB
view details)
File details
Details for the file servc-1.7.3.tar.gz.
File metadata
- Download URL: servc-1.7.3.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37a59e6d88919a82e81016ce2c884633f474043332e450bcf5f225abaf6f2535
|
|
| MD5 |
d8e3fee4fc49b10cc20358b17a586343
|
|
| BLAKE2b-256 |
a67471e4b2847148c0b930c0d7910db7f2854c0dc0d91de462960ed5009d1f92
|
File details
Details for the file servc-1.7.3-py3-none-any.whl.
File metadata
- Download URL: servc-1.7.3-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.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ee43f0648237f60bb8b0d0232c3431f207cfcf241b27b8299f42ab4b7287890
|
|
| MD5 |
ed0201bd8b7cf00d16a2b0dcffd58007
|
|
| BLAKE2b-256 |
3dbeacbcd2188895d34bd8e5ea59dffd82b72d998c4e06cebe12ce3a5d686262
|