Skip to main content

Service library for the Merrymake platform

Project description

Merrymake Service Library

Service library for the Merrymake platform

Installation

$ pip3 install merrymake
$ pip3 freeze > requirements.txt    # persist dependencies

Example

A basic example that just returns Hello, world!, if accessed on the platform using a payload world.

# app.py
import sys

from merrymake import Merrymake
from merrymake.merrymimetypes import MerryMimetypes

def handleHello(payloadBytes, envelope):
    payload = bytes(payloadBytes).decode('utf-8')
    Merrymake.reply_to_origin(f"Hello, {payload}!", MerryMimetypes.txt);

def main():
    args = sys.argv[1:]
    print(args)
    Merrymake.service(args).handle("handleHello", handleHello);

if __name__ == "__main__":
    main()

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

merrymake-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

merrymake-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: merrymake-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for merrymake-1.0.0.tar.gz
Algorithm Hash digest
SHA256 102ff65a884f5edd88ba91015e29323a85efa2a1a590d224e766a120a00acfd3
MD5 21a067a2df6ef99e52a634d227435934
BLAKE2b-256 583396300b55db05aa6e2d047772cf1653d78bea752d950c078e63b257204a6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: merrymake-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for merrymake-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5871d73750e7da71d0bf13dcceae8b02d7656908add09613d3c175c289c835d9
MD5 d9e2214a28c31639328c7673bdc626a1
BLAKE2b-256 2a75812fedbff522aebe796d255f5e2dae59e31ac2df45edf3154fe62b43dc60

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