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.7.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.7-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.11.7.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.7.tar.gz
Algorithm Hash digest
SHA256 2b6e337c83d158fb6b269cbc88aed8bc5dd6933a0db17a31b5cad4d6dc6ceb9d
MD5 b81251650b501770257e12dde2478b7e
BLAKE2b-256 10b832d6878ebd8c09b3d45cf62b11da55dafb57f84dcbfeecb0cb65574ba6d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.11.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 356f545e0961517ff39b2211ee567420e1a0799d5ba7ed20f61f18e0c9077369
MD5 eb5509fca90c38d38e8c5e228f6cc262
BLAKE2b-256 5033fe8575e62fe12ece9516bc6b195f2b2b72faad83c0bd25a4bfa4888c1c8e

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