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.1.tar.gz (17.9 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.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.6.1.tar.gz
  • Upload date:
  • Size: 17.9 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.1.tar.gz
Algorithm Hash digest
SHA256 92a210d56d2978e7c91210034ff49d6801714e4e5d68a2b7db91192366011c19
MD5 425ff3ee34440400a5cd75916e69a442
BLAKE2b-256 9685233c4ed982d214b7c0de10caa17168f0bdaceb4fe4bc64e59e6a8b7b804e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98b57bb7365b7693fcc147a72efeeafef257186075ff7cd049dee67e9d9f00fd
MD5 85db0d6af6e1db1606dbc6e270445882
BLAKE2b-256 7a5ca5ddc733fbcbf182a404acfe536646a0f397d5cfa8a58ff3e2f4d41b157e

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