Skip to main content

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

This version
History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
hyppy-0.1.1.zip (9.1 kB) Copy SHA256 hash SHA256 Source None May 7, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page