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.10.1.tar.gz (24.8 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.10.1-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.10.1.tar.gz
Algorithm Hash digest
SHA256 957647c01d1abcab79700bf5b50d8276e956d4fa4b72c0a95281eb0d40b93d55
MD5 ef4248021004b39d547c1f2404b5e0e9
BLAKE2b-256 057eeea7fe7a4355392de124a7ca700b47ca8e8590cbe021d4801005ff2123db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 29.9 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.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca8e36189f09267f42097b3139e0257e96c347aaa0366a1a8bec5489444514d
MD5 2dbf346a18424a2046e676d84a2f10c7
BLAKE2b-256 0c30c7fc24a678c5b3cea2f50a85908bc986c70700704e5e5d3dec555e6e3569

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