Skip to main content

Server implmentation of services for python

Project description

servc-python

Serv-C implmentation for Python. Documentation can be found here

PyPI version Serv-C Serv-C Compliancy PyPI - Downloads Docker Pulls

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.8.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

servc-1.11.8-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file servc-1.11.8.tar.gz.

File metadata

  • Download URL: servc-1.11.8.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for servc-1.11.8.tar.gz
Algorithm Hash digest
SHA256 2f0d8522378c46d9ab0ab36d1198c8728a35062c00af239382d15eb2aa9c2369
MD5 871b8a62f2da5dd8bcaa21ccba67b488
BLAKE2b-256 6c61db409b1d2fc05ae98e13967e43800a8c0c202514914e5e5aa9d4a898cf50

See more details on using hashes here.

File details

Details for the file servc-1.11.8-py3-none-any.whl.

File metadata

  • Download URL: servc-1.11.8-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for servc-1.11.8-py3-none-any.whl
Algorithm Hash digest
SHA256 67f4572e1fd9237224ad846485b32257f2c5760b60cf0640cff19a1c3be3883c
MD5 6c22c9ff8b80ec3e3f8074244debb826
BLAKE2b-256 bc68221538d09ccb2b367370ba92dd88c1c59cae516d75ae6f98dcacea27efbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page