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.8.1.tar.gz (22.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.8.1-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.8.1.tar.gz
Algorithm Hash digest
SHA256 85a5c818b2ce10e1e4435082d9d9e382b44307c6803b6abea60f5bb3da62815d
MD5 c02b3b60660868db90bd926e1aea12dd
BLAKE2b-256 65d648903e8043842f78762a9320f767d19cfa6cded4d8d30041e11044f6e6c2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for servc-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c31ae617172a35ec376edd42e34d7322a84484c558a6893105665efee706246c
MD5 f6330b8524a8792f909469d1eb3fafd6
BLAKE2b-256 62e54710019d4aa1d22ec24c52b710623529847e3a1794febf5f2792d8667b37

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