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.0.tar.gz (17.7 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.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.6.0.tar.gz
Algorithm Hash digest
SHA256 939996171a83f3bb31af02adff93b4a02be34b7b11adacf772e789a370d11890
MD5 08b78e41c7829ce4de02009462d45aed
BLAKE2b-256 fffeb9b1f94eae214fedc5c951c48c4dfe870964eb9cb48321e26486aad2c318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for servc-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78432aeaa9728a2cc6ae00fa8957bfdaac9193b072e62d5d44bd053fe745650d
MD5 9af553d853568e93c0f58589f91ff3fc
BLAKE2b-256 9ff82c04363b22e921e9ea6b314dd1b606d42da7e8a660b195afe4d6338c2caf

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