athena.api_library package

Submodules

athena.api_library.bitcoin_api module

A simple API for retrieving bitcoin data | API Documentation: https://bitcoinaverage.com/api

athena.api_library.bitcoin_api.get_data(key)[source]
Keys/Values:
24h_avg: average of weighted averages for last 24 hours
ask: weighted average of ask prices
bid: weighted average of bid prices
last: weighted average of last prices
total_vol: trading volume across all exchanges in last 24 hours
athena.api_library.bitcoin_api.update_data()[source]

athena.api_library.geo_info_api module

A tool for retrieving geographical info based on external IP | API Documentation: http://ip-api.com

athena.api_library.geo_info_api.get_data(key)[source]
Keys/Values:
status: SUCCESS,
country: COUNTRY,
countryCode: COUNTRY CODE,
region: REGION CODE,
regionName: REGION NAME,
city: CITY,
zip: ZIP CODE,
lat: LATITUDE,
lon: LONGITUDE,
timezone: TIME ZONE,
isp: ISP NAME,
org: ORGANIZATION NAME,
as: AS NUMBER / NAME,
query: IP ADDRESS USED FOR QUERY
athena.api_library.geo_info_api.location()[source]
athena.api_library.geo_info_api.time()[source]
athena.api_library.geo_info_api.update_data()[source]

athena.api_library.ifttt_api module

A simple IFTTT trigger tool | API Documentation: https://ifttt.com/maker

athena.api_library.ifttt_api.trigger(event, val1=None, val2=None, val3=None)[source]

athena.api_library.spotify_api module

A wrapper API for Spotify Web Player (requires Firefox)

class athena.api_library.spotify_api.SpotifyApi[source]

Bases: athena.classes.api.Api

ensure_frame(frame)[source]
ensure_login()[source]
login()[source]
next_track()[source]
play_pause_track()[source]
prev_track()[source]
search(query)[source]

athena.api_library.user_api module

A simple API to retrieve user info

class athena.api_library.user_api.UserApi[source]

Bases: athena.classes.api.Api

athena.api_library.voice_browse_api module

Tools to automate browsing (requires Firefox)

class athena.api_library.voice_browse_api.VoiceBrowseApi[source]

Bases: athena.classes.api.Api

clear()[source]
click()[source]
close()[source]
close_tab()[source]
maximize()[source]
open(url=None)[source]
search(q)[source]
switch_tab()[source]
type(text)[source]

athena.api_library.weather_api module

An API for retrieving Wunderground weather information | API Documentation: http://www.wunderground.com/weather/api/d/docs

class athena.api_library.weather_api.WeatherApi[source]

Bases: athena.classes.api.Api

build_attributes()[source]
fc_day(period)[source]

Gets the forecast given a list of period numbers 0-7

get_json_data(data_type, loc_extension=None)[source]

Returns the desired JSON weather data

load_conditions()[source]
load_forecast()[source]
location()[source]
replace_day_aliases(text)[source]

Replaces day aliases with usable day names

restore_loc()[source]
today_num()[source]

Get the weekday number of today

try_set_loc(zip_iata_city, state_country=None)[source]
update_loc(new_zip_iata_city, new_state_country='')[source]

Updates the location, if valid

Returns:
True if successful, False if failed
verify_data(user)[source]