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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
merrymake-2.0.0.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file merrymake-2.0.0.tar.gz
.
File metadata
- Download URL: merrymake-2.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57e5a076740954b47b86ba5bb3e67ea257629550fa161e4e0f9b225a90533bc3 |
|
MD5 | c81eded96658c9e58cd5202cb1325cf1 |
|
BLAKE2b-256 | b055d311cc41b0d941e1cb69f4a2681f74bea6b1892fb03b3b71472cf464b439 |
File details
Details for the file merrymake-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: merrymake-2.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.10.16.3-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 369db447362bb160627f7b5e91e2e84ea2b6961077176dcce06a6d87e535aa2c |
|
MD5 | 57fa6a9aaf9d92d420ef6a5ba5e29e77 |
|
BLAKE2b-256 | f84df50b776cd30bbcd54aabd97a1a3dbfa8edf40bcdbe71447438a264796610 |