Welcome to spacehey.py
spacehey.py is an unofficial Python wrapper for SpaceHey. It bridges the gap between the official mobile API and features only available on the web interface.
Features
-
MobileClient: Interact with the official Mobile API (v1). Fast and stable.
-
WebClient: Scrapes the website to perform actions not yet in the API. (Kind of WIP. It is recommended to use MobileClient.)
Installation
Install directly from GitHub:
pip install spacehey.py
Quick Start
from spacehey import MobileClient
# Initialize with your token
client = MobileClient("YOUR_TOKEN_HERE")
# Post a bulletin
client.post_bulletin("Hello World", "This is a test from Python!", duration="1d")
Navigation
-
Authentication - How to get your tokens and session cookies.
-
MobileClient - Documentation for the standard API client.
-
WebClient - Documentation for the scraping-based client.
Raw API