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

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.8.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ff7a6046dc6970034bf3921705783571c75773388960057eaec9cfb10558505f
MD5 f609e10d56eab513412dc0e258507288
BLAKE2b-256 79d90201815b11b3ee206b5b61547cc4e0a4809e8d4596a48b8c92fadf24a7c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.8.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed4693784a42a33d3a8f9172e2471121c167ba44a89dd891e374e41ffd9ec65
MD5 42d8f847b97bc5717bf86a4cdadabc9d
BLAKE2b-256 9ef539e27ba91ce6d9c5a0a6f62a40c32e34a240d5a0bb70eb21d3f27a352e00

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