Skip to main content

HD RPG 引擎框架(GDK) Python API

Project description

HD GDK Python API

这是一个用于调用 HD RPG 引擎框架(GDK)的 Python 库,提供了基础功能、登录验证、IP管理、插件安装扩展及环境初始化等功能的封装。

功能特点

  • 自动加载 HD 引擎 DLL 文件(支持调试版和非调试版)
  • 提供简洁易用的 Python 接口
  • 内置错误处理机制
  • 模块化设计,便于扩展更多功能

安装方法

从源码安装

# 进入项目目录
cd HD_python

# 安装包(开发模式)
pip install -e .

使用示例

下面是一个完整的示例,展示如何使用 HD GDK Python API 的基础模块:

#!/usr/bin/env python
# -*- coding: utf-8 -*-


from hdgdk import (
    init_dll_manager,

    create_hd_basic,
    create_hd_login
                   )


# 设置 DLL 文件所在路径(根据实际情况修改)
DLL_PATH = "./dll"
# 是否使用调试版 DLL
IS_DEBUG = True
init_dll_manager(DLL_PATH, is_debug=IS_DEBUG)
hd_basic = create_hd_basic(DLL_PATH, IS_DEBUG)
print(hd_basic)
login = create_hd_login()
print(login.login("", "","",""))

注意事项

  1. 在使用前,请确保你已经获得了正确的 HD 引擎 DLL 文件
  2. 对于不同的功能模块,请使用对应的工厂函数创建实例
  3. 所有操作都应该包含适当的错误处理
  4. 更多高级功能和其他模块的使用方法,请参考源代码和相关文档

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

hdgdk-0.1.1.tar.gz (88.7 kB view details)

Uploaded Source

Built Distribution

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

hdgdk-0.1.1-py3-none-any.whl (113.6 kB view details)

Uploaded Python 3

File details

Details for the file hdgdk-0.1.1.tar.gz.

File metadata

  • Download URL: hdgdk-0.1.1.tar.gz
  • Upload date:
  • Size: 88.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hdgdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 74497487d637485fc0ed77f36e7946c5d8e4934ec82ee5a313cc686453ba07a6
MD5 395c454fa75aed3f8422b1abcd55079f
BLAKE2b-256 8e3dac0ad9b93fa40cdfe07338f05047e0ba377e23bc7c631c8d55af1aef2904

See more details on using hashes here.

File details

Details for the file hdgdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hdgdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 113.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hdgdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcad46be67dbc00c56bc91c8383fff5ce8e8a9e9a529a989660c97c2bdcb6427
MD5 ff4ef312887d4925b5719a48a50ea752
BLAKE2b-256 87f037fbb09a5f3a00c9d043739b7ea0f87f72f1339b64cb35cd1507c01b49a4

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