Welcome to Our Destiny’s documentation!

This project exists to allow for the use of the Destiny 2 API in Python, using objects to represent the ways in which data and actions are used in the game, with characters and items being the most important, and therefore make the process as logical and easy-to-understand as possible.

To understand more about these objects, go to the Objects page

Installation

  1. cd to project directory
  2. pip install .

Getting started

1
2
3
4
5
6
import ourdestiny
myClient = ourdestiny.d2client("API_KEY", "CLIENT_ID", "CLIENT_SECRET")
myProfile = myClient.get_my_profile("PLATFORM")
guardian = myProfile.characters[0]
supremacy = guardian.get_instanced_item_by_name("The Supremacy")
guardian.equip_item(supremacy)