aiobungie package¶
Submodules¶
aiobungie.aiobungie module¶
-
class
aiobungie.aiobungie.Client(*, key=None, session: Optional[aiohttp.client.ClientSession] = None, loop=None)¶ Bases:
objectThe base class the all Clients must inherit from.
-
API_URL= 'https://www.bungie.net/Platform'¶
-
async
close()¶
-
async
create_session()¶ Creates a new aiohttp Client Session
-
async
fetch(url)¶
-
async
get_app(appid: int)¶ - Returns
Returns all available application data.
- Return type
list- Parameters
appid (int) – The application id.
-
async
get_careers()¶ - Returns
Returns all available Careers at bungie.net.
- Return type
list
-
async
get_clan(clanid: int)¶ - Returns
Returns information about a destiny2 clan
- Return type
list- Parameters
clanid (int) – The clan id.
-
get_key(key)¶ an easier access to get the api key.
-
async
get_player(name: str)¶ - Parameters
name (str) – The Player’s Name
- Returns
A list of Destiny memberships if given a full GamerTag.
- Return type
list
-
key¶
-
loop¶
-
classmethod
qual_name()¶
-
session¶
-
aiobungie.appinfo module¶
-
class
aiobungie.appinfo.AppInfo(data)¶ Bases:
object-
property
created_at¶ Returns the app’s CreationDate
-
property
icon_path¶ Returns the icon path fot the app
-
property
id¶ Returns the application id
-
property
is_public¶ Returns a bool if the app was public or Privet
-
property
link¶ Returns the application link
-
property
member_type¶ Returns the member ship type
-
property
name¶ Returns the application name
-
property
owner_id¶ Returns the app’s owner id
-
property
owner_name¶ Returns a str of the app’s owner
-
property
published_at¶ Returns when was the app first published
-
property
redirect_url¶ Returns the redirect url
-
response¶
-
property
status¶ Returns an integer of the application’s status
-
property
aiobungie.bungie module¶
aiobungie.clans module¶
-
class
aiobungie.clans.Clans(data)¶ Bases:
objectA class that returns information about a Destiny2 Clan.
-
property
about¶ returns: The clans’s short info. :rtype:
str
-
property
avatar¶ returns: The clan’s avatar path. :rtype:
str
returns: :rtype: The clan’s banner path.
-
property
created_at¶ returns: When was the clan created at. :rtype:
datetime.datetime
-
property
description¶ returns: The clan’s long description. :rtype: class”str:
-
property
edited_at¶ returns: last time the clan was updated. :rtype:
datetime.datetime
-
property
get¶
-
property
id¶ returns: The clan’s id. :rtype:
int
-
property
is_public¶ returns: Returns True if the clan is Public, False if not. :rtype:
bool
-
property
member_count¶ returns: The clan’s member count. :rtype:
int
-
property
name¶ returns: The clan’s name. :rtype:
str
-
property
owner¶ returns: The clan owner’s name. :rtype:
str
-
response¶
-
property
tag¶ returns: The clans’s tag. :rtype:
str
-
property