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.4.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.4-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for servc-1.11.4.tar.gz
Algorithm Hash digest
SHA256 bc818d40e4db64c59a394746fb086c400d49a826e8fe4f111e68664dde14f0c8
MD5 cadbec3a2098fa8eecd5ef68f0df39ba
BLAKE2b-256 dfd53afe3c25b87b2fe0cde2199a645ea5ef7226b6a3ec98c56fe0458f4bc5d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.11.4-py3-none-any.whl
  • Upload date:
  • Size: 32.3 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.11.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ab7eb6e24c6387587fdb119ec7d4aed71f54766017cff8fc7fd3b706918528ac
MD5 1ae01b449b39cc8588ffb9b8a6c54c03
BLAKE2b-256 ba7b25788c1269631448fbf78004ba21e08279c46d7b29f0be3518c5fc973fc9

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