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.7.4.tar.gz (18.7 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.7.4-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.7.4.tar.gz
Algorithm Hash digest
SHA256 7f057587c4b407cb8ca9a285acf71a8a246de51a1deab04b26dec040e1a828b2
MD5 bd41a2ddb7edb7f301abff7a4f085383
BLAKE2b-256 6c258390190b2174e6e773005bc5232b4feec452d674067d8f617114ae661912

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for servc-1.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3047cccc2f7fff876a8da020c0f6dec36c122f6ea39e5a58e4d487f9974b09d5
MD5 4db81cc7e2f341dbbd7ff13f0cf1cc6b
BLAKE2b-256 a172c181d46ee123053848ccca1d2ec4ea6457388a7bcc641a924b935251cef0

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