Skip to main content

Server implmentation of services for python

Reason this release was yanked:

bad release

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-1.0.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

servc-1.0.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: servc-1.0.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for servc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 615fe99ac108ccc31e5d7c9ff0cd6813b14d168def8722e46780b73e50fdd218
MD5 7c8b295ab905ecb10b272e56592558fd
BLAKE2b-256 6fcbd1bc58cd27077068197dc2b2a277efcc254e5506871030a97a9c78519b8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: servc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for servc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6888b98683ad5646c942aa5e244a562ede463a09a57d6044cce3130ec3585f3c
MD5 1d9fa7d55d8fff2bc916a97ee85ccaee
BLAKE2b-256 5ff1e3949b513612012b5bec650ad7821e3bd8c8ab2158c426787d30e727c345

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