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

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.8.3.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.3.tar.gz
Algorithm Hash digest
SHA256 73f58f992b4d4bcaafd352863ac0e9e4028a2b604b33058687cabf8e7558dba6
MD5 fd842e78aadf9df95dab57b60649ed34
BLAKE2b-256 619c313dc4021c9e9e5a76ba2c350c7d21cff2ef5550b643d7d0791d6296f722

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.8.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4989c465b1a9e3b614b842076ba2f3f88248a46126619ac152948ae66c8052bc
MD5 faacf6c25d3f7e86c403a0017a783e24
BLAKE2b-256 c925e916a26bb3b0c5600424838fe96fc6eb217c05e7acd2a31ecbb95fdc93a3

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