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.12.tar.gz (27.6 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.12-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.11.12.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for servc-1.11.12.tar.gz
Algorithm Hash digest
SHA256 d1ee8f021642caa01f3e93ad29b6b5809a3083c84d8a425f2720457c172dc092
MD5 e050e2325465200ab1a44becdb659cf3
BLAKE2b-256 339ce17ee5278d4072f5390c29e614efca6aafb157ea65eeb785839f5f8621ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.11.12-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for servc-1.11.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b325980e90e28464338a483c9e4dc2d10ff8aff60dc384fb0b5f76e021de9e70
MD5 bcebf9319763447889f85c05def02ae0
BLAKE2b-256 28bc124135e46ee3fa45262527761a71342481488f554b70ccad8bbf9002a715

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