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

This version

1.7.1

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.7.1.tar.gz (18.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.7.1-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.7.1.tar.gz
Algorithm Hash digest
SHA256 6819180381878ecdb36dfd8888440f3642af79c0fc0b6a52169c69b16a518fb3
MD5 a2306ebc3850efe8e618b566b33a26a7
BLAKE2b-256 1577c4fb33a1f14764f836f33b5ae6e9b911e3a884f8ce10a9e73a60d330b925

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for servc-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a39004095807dcecc70f3e8b6f298c1db026f45a993e9b26990e3de477624260
MD5 925ff310f368bf6d5f316fb8122093bd
BLAKE2b-256 8f9d6c2b2a755f67dc0d87dd8a5fdd7dbd1b7dc9031b9d7e5f23f7ea39312fed

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