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.8.tar.gz (18.2 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.8-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.6.8.tar.gz
Algorithm Hash digest
SHA256 67e309b279532216e91db19b5c7d322da2668c6c1f915b9129f7233de48e0ede
MD5 8eb4eb19a45460c35e39e9559a60dbe0
BLAKE2b-256 fec4f55430dc74daed1dd44dce68a16581f2326c7d54c4beac25b5c19e277d8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.6.8-py3-none-any.whl
  • Upload date:
  • Size: 25.1 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.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1e087f76117bd8cfa2ba55d40efddda007b2e81663f50663cb44e4c6649957dd
MD5 6f43a8a3e535040851e8eb09250378e0
BLAKE2b-256 6621687f9aaefda311e2d2284a3e6fad8dd3a8b3e0081a0e32f863dac9cae1e5

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