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

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.11.6.tar.gz
  • Upload date:
  • Size: 27.3 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.6.tar.gz
Algorithm Hash digest
SHA256 1c0051675383e54dbfd51cbdd96259d0ec70effc2c9baf06b63089fde8cc4f74
MD5 05982d628991e2031f269dd0394223b2
BLAKE2b-256 b58867d20e1ea4c9caab620a20043a81f9a3321498cd21928fe2814975d36658

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.11.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6f7ae85eb8d354395ecfabb9204a0b9b8a03405644d8e874781b1b43be8c5316
MD5 c6d779da6597b7b313b24fa3cd7d891f
BLAKE2b-256 3ad705b9bdcd63ee9dab0465f4db7d92f295a1df4a6c687edb17987f3fc08b68

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