HAPI wrapper and tools for the online game Hyperiums
Project description
A Python interface for the Hyperiums API (HAPI).
Aims to provide:
A HAPI wrapper, allowing multiple connections (i.e. per user, per game),
Parsing tools for daily list exports,
Functions and formulae for some of the game’s mechanics.
MIT licensed.
Installation and quickstart
To install:
pip install hyppy
Using the 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()
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 Distribution
hyppy-0.1.1.zip
(9.1 kB
view details)
File details
Details for the file hyppy-0.1.1.zip.
File metadata
- Download URL: hyppy-0.1.1.zip
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
729c1f4808b5e5d27a825e236de5547a4fe59c84e63cf554c62fa006d8df3cea
|
|
| MD5 |
30ab2eebd59145a97fbdd894a2199224
|
|
| BLAKE2b-256 |
074ec7fec2e555019dc44cb543c4475ef91d9c2c8f79efc0ab9c3e6b8e871b97
|