Skip to main content

A mendix extension library implement mcp server.

Project description

def PostMessage(name, msg):
    print(msg)

# 导入
from mxpy.context import activeDocument

# 定义回调函数
def callback(event):
    PostMessage("python:exe", event)

# 读取
content = activeDocument.content

# 写入测试
activeDocument.content = "旧内容"
PostMessage("python:exe", activeDocument.content)

# 监听变更测试
activeDocument.content = "监听前的内容"
activeDocument.add_listener(callback)  # 添加监听器
activeDocument.content = "监听后的内容"  # 这里会触发 callback
activeDocument.remove_listener(callback)  # 移除监听器
activeDocument.content = "移除监听后的内容"  # 这里不会触发 callback

agent prompt

use kb.md as knowledge base use '用工具创建模型' as prompt

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

pymx-1.2.1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymx-1.2.1-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file pymx-1.2.1.tar.gz.

File metadata

  • Download URL: pymx-1.2.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pymx-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0579d72c03d950ada559dca6abac60bfa4f3be4c5b5a7201e6946c52b1a997a4
MD5 82ddedefba660d837ca43fdadd216c08
BLAKE2b-256 e2e3bde1f3af5b93290cf4b53fead59ba291fc39ba71a2fb359e596ed24e3f20

See more details on using hashes here.

File details

Details for the file pymx-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pymx-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pymx-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41d6bcd3469711e49820e5c7c936fb4a2b66c7cb5fea1b1a82dc3633434f4b5d
MD5 2dbd1cf66005385a8cffd98bb8b59b20
BLAKE2b-256 cb4c83a14846cdeede41128d984827812975f02ea7579a5f855e649a241634d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page