Asynchronous Python Wrapper for the Bungie API
Project description
Destipy
This is a asynchronous Python Wrapper around the Bungie API. It allows one to send requests to all given endpoints of the Bungie API seen in their Bungie.Net API Documentation.
NOTE:
- The endpoints are parsed from the API documentation and are therefore not tested, some of them might not work or are missing parameters due to inconsistencies in the documentation.
- Some of the code is inspired or taken from pydest and aiobungie so check them out!
Features
- Every endpoint in the documentation is implemented, POST and GET.
- Download and Extraction of the manifest to a .content file.
- Download and Extraction of the manifest to a MongoDB database (COMING SOON).
- Logging with own logger or with the default logger by adding a file "logs/Destipy.log" ('logs' being a folder) in the root folder.
Examples
Here are a few examples:
Requirements
- aiohttp
Install Destipy
:
pip install Destipy
In you project you can use it as a simple client without authentication by initialize a client with your Api Key like this:
from destipy.destiny_client import DestinyClient
client = DestinyClient(<API_KEY>)
user = await client.user.GetBungieNetUserById(<MEMBERSHIP_ID>)
If you plan on using a specific category of endpoints multiple times you can also use the endpoint category itself as a class:
from destipy.destiny_client import DestinyClient
client = DestinyClient(<API_KEY>)
user_endpoints = client.user
user = await user_endpoints.GetBungieNetUserById(<MEMBERSHIP_ID>)
Contact
Discord: sedam79
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
File details
Details for the file Destipy-0.81.tar.gz
.
File metadata
- Download URL: Destipy-0.81.tar.gz
- Upload date:
- Size: 162.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
52c41ab973ea30e31f0732d670e936f1f7961a94c789139594fc84a4976af3cd
|
|
MD5 |
5f0d9a9fb2cd7c55ff18b720a31bf70b
|
|
BLAKE2b-256 |
0977b07c360899988f0d351943d649b3411615ed4502824427bc97fb4145cd26
|
File details
Details for the file Destipy-0.81-py3-none-any.whl
.
File metadata
- Download URL: Destipy-0.81-py3-none-any.whl
- Upload date:
- Size: 173.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e043cc428b87e4532c6c512f00d7280ef5a5136868819109e7162dbf2f692196
|
|
MD5 |
ef65256347af3448ff1a65cee5100439
|
|
BLAKE2b-256 |
77a38040648f06207beced384a80802e42f76d554c26399ed3c57326089adacb
|