bungio-0.8.2
توضیحات
A destiny 2 / bungie api wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bungio-0.8.2 |
| نام | bungio |
| نسخه کتابخانه | 0.8.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel J |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Kigstn/BungIO |
| آدرس اینترنتی | https://pypi.org/project/bungio/ |
| مجوز | MIT |
[](https://pypi.org/project/bungio/)
[](https://pypi.org/project/bungio/)
[](https://bungio.readthedocs.io/en/latest/)

[](https://github.com/Kigstn/BungIO/actions/workflows/black.yml)
[](https://github.com/Kigstn/BungIO/actions/workflows/flake.yml)
<h1 align="center">
<p>
<img src="https://raw.githubusercontent.com/Kigstn/BungIO/master/docs/src/images/favicon.png" alt="BungIO Logo">
</p>
BungIO
</h1>
---
BungIO is a modern and pythonic wrapper for Bungies Destiny 2 API.
- [X] Python 3.10+
- [X] Asynchronous
- [X] 100% typed and raw api coverage
- [X] Ratelimit compliant
- [X] Manifest support
- [X] OAuth2 support
- [X] Easily used in combination with other libraries like FastApi
Click [here](https://bungio.readthedocs.io/en/latest/installation) to get started or visit
the [guides](https://bungio.readthedocs.io/en/latest/Guides/basic)
or [api reference](https://bungio.readthedocs.io/en/latest/API%20Reference/client/).
## Basic Example
```py
import asyncio
import os
from bungio import Client
from bungio.models import BungieMembershipType, DestinyActivityModeType, DestinyUser
# create the client obj with our bungie authentication
client = Client(
bungie_client_id=os.getenv("bungie_client_id"),
bungie_client_secret=os.getenv("bungie_client_secret"),
bungie_token=os.getenv("bungie_token"),
)
async def main():
# create a user obj using a known bungie id
user = DestinyUser(membership_id=4611686018467765462, membership_type=BungieMembershipType.TIGER_STEAM)
# iterate thought the raids that user has played
async for activity in user.yield_activity_history(mode=DestinyActivityModeType.RAID):
# print the date of the activity
print(activity.period)
# bungio is by nature asynchronous, it can only be run in an asynchronous context
asyncio.run(main())
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.9,<2.0.0 | Brotli |
| >=1.4.36,<2.0.0 | SQLAlchemy[aiosqlite] |
| >=3.0.0,<4.0.0 | aiodns |
| >=3.8.3,<4.0.0 | aiohttp |
| >=0.7.0,<0.8.0 | aiohttp-client-cache |
| >=22.1.0,<23.0.0 | attrs |
| >=2.1.7,<3.0.0 | cchardet |
| >=0.4.1,<0.5.0 | mkdocs-autorefs |
| >=2.7.0,<3.0.0 | mkdocs-awesome-pages-plugin |
| >=8.2.15,<9.0.0 | mkdocs-material |
| >=0.18.1,<0.19.0 | mkdocstrings[python] |
| >=3.6.8,<4.0.0 | orjson |
| >=7.1.2,<8.0.0 | pytest |
| >=0.18.3,<0.19.0 | pytest-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl bungio-0.8.2:
pip install bungio-0.8.2.whl
نصب پکیج tar.gz bungio-0.8.2:
pip install bungio-0.8.2.tar.gz