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.0.tar.gz
(27.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.11.0-py3-none-any.whl
(31.8 kB
view details)
File details
Details for the file servc-1.11.0.tar.gz.
File metadata
- Download URL: servc-1.11.0.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dee017cd0b41a9760c146ac564c05a681f13f31ff0c79b3ec0d43b026823ba1
|
|
| MD5 |
f5032b497a6dca5432c4113dcdc6f2cb
|
|
| BLAKE2b-256 |
5578dcdc0b5e42d4d346e20f992f80aab495bb39f3bf5569a370aee9a123898f
|
File details
Details for the file servc-1.11.0-py3-none-any.whl.
File metadata
- Download URL: servc-1.11.0-py3-none-any.whl
- Upload date:
- Size: 31.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
571bc760336c2faa5c8e259b7f954a1445496a75fb6a89203c87ece2cfdd7704
|
|
| MD5 |
45fbe510313c9c8e1fb10f24776ad8f7
|
|
| BLAKE2b-256 |
65074fb818ff60f9134b30e5aa80e890ab824f34fb957715b131054d6bb6db0a
|