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

Uploaded Source

Built Distribution

merrymake-1.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: merrymake-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 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.1.tar.gz
Algorithm Hash digest
SHA256 5889ea7fb32bcf3d85eb79fd8a07ff84c2f48d905eb6ada0cc8607346a84bdfb
MD5 9c1a92d26141f167d5f72059c18ebc29
BLAKE2b-256 fb3fd70057c2998779a23fcb2bc30b3e5ccec598905aa0ac626aa161d4d5f113

See more details on using hashes here.

File details

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

File metadata

  • Download URL: merrymake-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0a88b224fc8adedbf0cd63610d77088829cb5de3096103800c80c3240fb7332
MD5 d9e89df04c82e056e60d801d73dd795c
BLAKE2b-256 915350c95004210773d558226a20ff3708cbe7e3daa64463fc43a62192cd0a4b

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