Skip to main content

Service library for the Merrymake platform

Project description

Python Service Library for Merrymake

This is the official Python service library for Merrymake. It defines all the basic functions needed to work with Merrymake.

Usage

Here is the most basic example of how to use this library:

import sys

from merrymake import Merrymake
from merrymake.merrymimetypes import MerryMimetypes
from merrymake.envelope import Envelope

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

def main():
    (Merrymake.service()
        .handle("handleHello", handleHello));

if __name__ == "__main__":
    main()

Tutorials and templates

For more information check out our tutorials at merrymake.dev.

All templates are available through our CLI and on our GitHub.

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

Uploaded Source

Built Distribution

merrymake-3.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: merrymake-3.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for merrymake-3.0.0.tar.gz
Algorithm Hash digest
SHA256 d165a399f757674ec2ab6dc4555e5ffd16abde8f3b3f0d0f009882d99f82e078
MD5 b92a271dbc7e1dd0572a1ed6e6d321c1
BLAKE2b-256 336a45aa734fda240145d4ee5ed5085e35127a6e9a9c7d216ce7e3ed924d6d86

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for merrymake-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16ebd2074ad2034650edf5b43cb6cd1a6bc085907744c4c05ac4b93e4f3ddf1b
MD5 e35d289b695f381f1c959935a0ec87ed
BLAKE2b-256 4d096eaa44b7e58b48cb1f918e15e797a1b8b582d7aaed1cc286545e094d4e18

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