Skip to main content

Server implmentation of services for python

Project description

svc-lib-server-python

Server implmentation of services for Python.

Introduction

SERVC is an opionated implementation of microservices for scalable web architecture. It assumes :

  1. all messages can be sent over a bus within the client SLA
  2. responses can be tracked, stored, and retrieved from an intermediate storage layer
  3. the state can be measured and hashed into some form of a string
  4. the scope of worked can be cached using an id representative of the state

Documentation

Servc's documentation can be found https://docs.servc.ca

Example

Here is the most simple example of use, starting a server to handle requests at the route my-route;

from servc.com.server.server import start_server

def inputProcessor(messageId, bus, cache, components, message, emit):
  pass

# the method 'methodA' will be resolved by inputProcessor
start_server(
  "my-route",
  {
    "methodA": inputProcessor
  }
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

servc-0.4.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

servc-0.4.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-0.4.2.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for servc-0.4.2.tar.gz
Algorithm Hash digest
SHA256 1fe3e370b4bd81c413cc5890ad7acc7bb4d9d92193a09a9aa5b3489fe93ad85c
MD5 ffacb206d1bb2fc7830b6c244faced5e
BLAKE2b-256 fd49289e1b17e5a53308f75884c2895df834c3d4aa87923189e74cbd73b0e2c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for servc-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f921a380ca172fb084c471544b1d8516136b713aa731d081fde9852630e38fb3
MD5 88f62dc08a353b2678e4e89f1da56eae
BLAKE2b-256 c322a9286fcdc3c425cc3612ea91e4c54f2422e9d9f124abbcd5f97946755fca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page