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.9.0.tar.gz (24.1 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.9.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.9.0.tar.gz
Algorithm Hash digest
SHA256 c6a522184475238ee4436b7fba16bed667f7fbc8f27082c4263ebac0eea942c0
MD5 34ce9550740fd473697da3ef86d5b72e
BLAKE2b-256 4a3ce097a755242e8b729788e4706fd6bc6998cecf7232d47876f042452f600e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for servc-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfbde3aff3d2340a239c9a9bfcb4d152b81cbf34516628cdbcf10b63a7b6df94
MD5 ae74b0b83fc2a685141f5e95393c1461
BLAKE2b-256 a98751de8be9fb10d693bfe6d5a1021d71565434e654579bf2b51a685c75589d

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