Binmod MDK for Python
Project description
Binmod MDK Python
Python Binmod module development kit (MDK).
Quick Start
Installation
Add the binmod-mdk package to your pyproject.toml:
dependencies = [
"binmod-mdk",
]
[tool.uv.sources]
binmod-mdk = { git = "https://github.com/binmod-io/python-mdk" }
[!NOTE] If you do not use
uvas a package manager, see the documentation for your package manager on how to add packages from a git repository.
Basic Usage
from binmod_mdk import mod_fn, host_fns, host_fn
@host_fns("test")
class HostFns:
@host_fn
def host_log(message: str) -> None:
raise NotImplementedError
@host_fn
def host_add(a: int, b: int) -> int:
raise NotImplementedError
# NOTE: Function parameters and return types must be serializable.
@mod_fn
def greet(name: str, number: int) -> str:
HostFns.host_log(f"Hello, {name}! Your number is: {number}")
return f"Hello, {name}! Your number is: {number}"
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file binmod_mdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: binmod_mdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0788cb4c3d3f58e42e01a337ff5d34510dc45740ae5282e5fe6bb83edc265d66
|
|
| MD5 |
a8c9949ee85dc2c9fa8b1a4d63855992
|
|
| BLAKE2b-256 |
5b48415012d3dccb126c84fbd5472b9aa8d0f0c8cc36483fc0d1c2af9a973802
|