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

This version

1.9.2

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.2.tar.gz (24.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.9.2-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.9.2.tar.gz
  • Upload date:
  • Size: 24.2 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.2.tar.gz
Algorithm Hash digest
SHA256 b5a9c47281c66bc74095e5c9d38e12187f2f3393789385f383051a42f992d506
MD5 40896cf16bc9b4468336b1310be3d735
BLAKE2b-256 261cda5c28e8d1158b087392b6b5beaeeff4a191bce2af4dbd625c950008966d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.9.2-py3-none-any.whl
  • Upload date:
  • Size: 28.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26a85e9b1a20df7b061dd9d8078f37fa26c31feb92cbc37544949147f978e31a
MD5 ba26e92ca96bfc7963be712d57bd1ab2
BLAKE2b-256 6ef01708ec4096b7ae49c43831335951adb2429c0dc0d459fd4593e5bab77571

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