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.2.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.2-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.6.2.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.2.tar.gz
Algorithm Hash digest
SHA256 60255db8976c3e9099e156a501616f1bd3435b87b6c06cd05d04bd384ebb2641
MD5 5fec1534d31c179fc7e0f931e007faa0
BLAKE2b-256 559cccbfe5bdc6b30ac47e39f2507be1ea6c5ad77f2ec18be3b72db9b4227e9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.6.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a1b743be9b05596afdbbbd8bb5ca098b4da85b64a5c82a40537e6fcabd13b2d
MD5 006e79cf1b731bb3f4e6a553951af25a
BLAKE2b-256 0ca692ec2999da2ab7e98d024cf1eef0f9c671c1cf238f052e9e6214dec60a81

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