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:

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

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

def main():
    (Merrymake.service()
        .handle("handle_hello", handle_hello))

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

Uploaded Source

Built Distribution

merrymake-3.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: merrymake-3.1.0.tar.gz
  • Upload date:
  • Size: 4.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 8d75192fe1efd8b29703c77ea32429cbf7c43ba9fddb855c9a3daf4acc4ad276
MD5 12e7190f8bfbe0f2256d4cc90b576d94
BLAKE2b-256 808bf28580de877cf56c77403bdf6c76575edb8cb3bbf87d08cb1c7c6fb549f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: merrymake-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f8ec16b61bce8b6b86f0ee7b1f899a77c7b6ee67e972c3f83dc8e489a0ba502
MD5 f230956ccb6494c710ec0ba4aff4621a
BLAKE2b-256 b187d59935857d5c87fe3e5fdb55b3a1274a6de251e350beec9520c858e91ce3

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