用于在线游戏hyperiums的hapi包装器和工具

hypp的Python项目详细描述


用于Hyperiumsapi(hapi)的python接口。

旨在提供:

  • 一个hapi包装器,允许多个连接(即每个用户、每个游戏),
  • 每日列表导出的分析工具,
  • 一些游戏机制的函数和公式。

麻省理工学院许可。

安装和快速启动

要安装:

pip install hyppy

使用hapi:

from hyppy.hapi import HAPI

hapi = HAPI('Hyperiums6')

# Get a list of games
print hapi.games()

# Password authentication for list downloads
hapi.authenticate_basic('loginname', 'password')

# Download today's planet list for this game
hapi.download('planets', './planets.txt.gz')

# HAPI key authentication for everything else
hapi.authenticate_hapi('loginname', 'hapikey')

# Get all player's planets
print hapi.planet()

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

推荐PyPI第三方库


热门话题
java将字符串拆分为带关键字的部分   删除数据库后未指定java数据源问题“url”属性   网络化java多人游戏连接   Java当新字符串等于旧字符串时,为什么substring()不创建新对象?   一个实例到多个bean的java注入   JavaSpringMVC验证错误消息   java总结if语句,并从另一个对象(如字符串[])读取if条件(动态if)   需要多个输入的Java IF语句   jsf如何选择正确的bean范围?   java将数据库值加载到组合框JSP,Hibernate   一次活动中的java 3布局   团队和球员反对Java的困难   java ActionListener如何知道按下了哪个按钮?