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.6.5.tar.gz (18.1 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.6.5-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.6.5.tar.gz
Algorithm Hash digest
SHA256 365648c37a9d14d521117464592ff489d2bb091b2f4a9c15c3a3a2b8ac33506c
MD5 b792dc03e67a73627f88966b872031c5
BLAKE2b-256 1d61ea0e362f60c35417d343b98a30ca78948f79ace33fbf547e82bdadbae1c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.6.5-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

Hashes for servc-1.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 43db5669a7f7401ad4e76a4ea9392bf069252724b788330a0d34a8eb98863776
MD5 c3d8a95adc019941d9d331ab54b20476
BLAKE2b-256 c05d2611f30170fc84c1ff4deff468e523386880d3bee45838c4f9d554e8981a

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