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: bytes, envelope: Envelope):
    payload = 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-4.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

merrymake-4.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: merrymake-4.0.0.tar.gz
  • Upload date:
  • Size: 5.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-4.0.0.tar.gz
Algorithm Hash digest
SHA256 0e5e72208d1a879ff543eefce08403546fe08e441b8b2907e7323e2ffc244718
MD5 8d78c26abef8e181728bdb5bd76e0346
BLAKE2b-256 451d212e38d487525c320a66549a8e0d06bc38996aaebcac592a4f4ee75239f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: merrymake-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5da8c802ce17e3b938569509e569efc41d6078998c1aec703013c9a3c5dfba
MD5 6f19ef2f33483300a351f346ad4137c2
BLAKE2b-256 9b263e285904ef8fe7878ecad3943ca1512857c2befa1256c696eb85e1380970

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