连接到LCU

lcu-connector-python的Python项目详细描述


此项目有助于轻松连接Riot Games的LCU API。 要使用此功能,请使用安装

pip install lcu_connector_python

当你想用的时候。

import lcu_connector_python as lcu
api_connection_data = lcu.connect()

如果在defualt位置没有安装“c:/riot games/league of legends”,则需要传递您的league文件夹的位置。示例:

import lcu_connector_python as lcu
api_connection_data = lcu.connect("C:/Riot Games/League of Legends/RADS/projects/league_client/releases/0.0.0.178/deploy/LeagueClient.exe")

函数的作用是:返回一个字典,其中包含连接到lcu所需的数据

{
    port: "localhost port number",
    url: "url used to communicated with the lcu",
    authorization: "auth token",
    connection_method: "http or https"
}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java编辑并重新运行spring引导单元测试,无需重新加载上下文即可加快测试速度   为什么我不能做演员?   java为什么是线程。join通常用于停止安卓中的线程   java从weblogic服务器调用JSON POST REST服务时收到400:错误请求   java在DeviceAdmin模式禁用时设置身份验证?   java SortedMap的keySet()能否始终安全地强制转换到SortedSet?   安卓 java。lang.NoSuchMethodException可包裹类   java JOGL库安装   javatomcat内存管理   java使用getString()中的变量   java将最小星号设置为评级栏   Java中字符串相等的println()方法。。。它到底是如何工作的?   java如何从文本中输出的数组中放入随机图像