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.2.tar.gz (27.0 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.2-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.11.2.tar.gz
Algorithm Hash digest
SHA256 6348e5247c543b304037fdd0f019cfd0c26dbe2ae964f52ad671031ba2da7e9e
MD5 0ac5b4ff6fa3dec96dde284368aaf1e1
BLAKE2b-256 32ca733de9598966e6403743428124f89dc70da0ca792ef1c10d867be203a422

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for servc-1.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aedcbfe6cc2d3ea66df6ea1afb1931da098983d734fd8b8cc7909f2017ade87a
MD5 e572888ae4983ec29159432041d7a00e
BLAKE2b-256 fbbd94e7046f6954820e0b7623be9504a917e9893dc4fc5567861a31be39b54d

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