aiobungie package

Submodules

aiobungie.aiobungie module

class aiobungie.aiobungie.Client(*, key=None, session: Optional[aiohttp.client.ClientSession] = None, loop=None)

Bases: object

The 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

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

aiobungie.bungie module

class aiobungie.bungie.Careers(data)

Bases: object

response
class aiobungie.bungie.DestinyContent(data)

Bases: object

response
class aiobungie.bungie.News(data)

Bases: object

response

aiobungie.clans module

class aiobungie.clans.Clans(data)

Bases: object

A 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

property banner

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

aiobungie.enums module

class aiobungie.enums.DestinyMilestoneType(value)

Bases: enum.Enum

An enumeration.

DAILY = 4
ONETIME = 2
SPECIAL = 5
TUTORIAL = 1
UNKNOWN = 0
WEEKLY = 3
class aiobungie.enums.DestinyRace(value)

Bases: enum.Enum

An enumeration.

AWOKEN = 1
EXO = 2
HUMAN = 0
UNKNOWN = 3

aiobungie.player module

class aiobungie.player.Player(data)

Bases: object

property icon_path
property id
property name
response
property type

Module contents