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 handle_hello(payloadBytes: bytearray, envelope: Envelope):
    payload = bytes(payloadBytes).decode('utf-8')
    Merrymake.reply_to_origin(f"Hello, {payload}!", MerryMimetypes.get_mime_type("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.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: merrymake-3.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1050610b851c68e429f3cb143d3f216802e62f142c58133908ca41fb288254f9
MD5 844c882dab4541bbd0e31571454b0aa7
BLAKE2b-256 8996df5c518f4e6284f9e99b11a63d77ee60cf0ef4dcb0fbb294cc51ed37394d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: merrymake-3.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 529fe97c94ca18f65eb86fe2c96f2aeb6a5ffaad9118c8cc0a1b44fdf988f71b
MD5 3b8b8a8aec1e66454148f5377937a4b2
BLAKE2b-256 c0c49d01c804453a4791fca4765c38f0d9529a4c6704010b11d690cb0649fedc

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