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.9.tar.gz (27.3 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.9-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.11.9.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for servc-1.11.9.tar.gz
Algorithm Hash digest
SHA256 a3a75c3e6b03b4d68638465f5b3c857bdb05c5e48c8326e4d726119882969ffb
MD5 a3b592a43b1c9a29f85206419a010b11
BLAKE2b-256 3b50879a922bd02c8d5be8298cfac616bb30d5355c5038c28f9c48f4a4014374

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.11.9-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for servc-1.11.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c85945ab13f7b33fd24cf386c23dc15e24ba0313ca4fc2f853fa0d1106b07c8f
MD5 a5060f9bc1f03605227b716980a16200
BLAKE2b-256 a6720001e61fa09f1328c3f45d6dfddc44c88cad5001692022965f9429c03e37

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