For interacting with the Bungie.net API
Project description
Installation
pip install pybungie
Features
- Painless interaction with the Bungie.net API
- Supports most calls and enumeration types, later versions will expand functionality
- OAuth2 implementation*
*Not suitable for production code
Getting Started
In your working directory, after installing pybungie, edit the ini file before getting started. The file should be located here.
External Libraries
|— site-packages
| |— pybungie
| |— config
| |— pybungie.ini
This is essential to generate a self-sign certificate in order to use OAuth2 required api calls.
Usage
from pybungie import BungieAPI, MembershipType, VendorHash, Components
my_membership_type = MembershipType.STEAM
bungie_api = BungieAPI(api_key="api_key")
bungie_api.input_xbox_credentials(xbox_live_email="example@example.com", xbox_live_password="password")
bungie_api.start_oauth2(client_id="client_id", client_secret="client_secret")
membership_id = bungie_api.search_destiny_player(membership_type=my_membership_type, display_name="Hayden23")[0]['membershipId']
character_id = bungie_api.get_profile(membership_type=my_membership_type, membership_id=membership_id,
components=Components.Profiles)['profile']['data']['characterIds'][0]
zavala = bungie_api.get_vendor(membership_type=my_membership_type, membership_id=membership_id,
character_id=character_id, vendor_hash=VendorHash.ZAVALA.value,
components=Components.VendorSales)
bungie_api.close_oauth2()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybungie-0.6.3.tar.gz.
File metadata
- Download URL: pybungie-0.6.3.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb351d8f4b969233315e3eef4774d3166d7cf2e5b0b14fbfb4ef0787254e6de7
|
|
| MD5 |
e69b639bc1ebe7e97fd162e0d9e8696d
|
|
| BLAKE2b-256 |
7cae3d10adf52c54a6b56f2d6371294221fcd3c9e06174b94d8a9c44a47de810
|
File details
Details for the file pybungie-0.6.3-py3-none-any.whl.
File metadata
- Download URL: pybungie-0.6.3-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5dead9d9275058da11a4d703e098dcd3a3845ff3adc7d556fe3ec90c8fcca42
|
|
| MD5 |
27e643491458fcf4ba2afe076e363286
|
|
| BLAKE2b-256 |
c1d5d4d2692320d3652c784b51991858b095d71bf601ad187d9eec513964051c
|