Name | bungio JSON |
Version |
1.3.0
JSON |
| download |
home_page | None |
Summary | A destiny 2 / bungie api wrapper |
upload_time | 2025-02-09 21:05:39 |
maintainer | None |
docs_url | None |
author | Daniel J |
requires_python | >=3.10 |
license | MIT License
Copyright (c) 2022 - present Kigstn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
asyncio
destiny
destiny 2
bungie
api
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[](https://pypi.org/project/bungio/)
[](https://pypi.org/project/bungio/)
[](https://bungio.readthedocs.io/en/latest/)

[](https://github.com/Kigstn/BungIO/actions/workflows/ruff_formating.yml)
[](https://github.com/Kigstn/BungIO/actions/workflows/ruff_linting.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())
```
---
## Dev Setup
#### Install Dependencies
- [Install uv](https://docs.astral.sh/uv/getting-started/installation/)
- `uv sync --all-extras`
#### Run Tests
- `uv run pytest .`
#### Run Docs
- `uv run mkdocs serve`
Raw data
{
"_id": null,
"home_page": null,
"name": "bungio",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "asyncio, destiny, destiny 2, bungie, api",
"author": "Daniel J",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/21/cc/8b4ecf24855ac6ca9f0ed45dd2978f55567946a55b92747860ff5e86fa3a/bungio-1.3.0.tar.gz",
"platform": null,
"description": "[](https://pypi.org/project/bungio/)\n[](https://pypi.org/project/bungio/)\n[](https://bungio.readthedocs.io/en/latest/)\n\n[](https://github.com/Kigstn/BungIO/actions/workflows/ruff_formating.yml)\n[](https://github.com/Kigstn/BungIO/actions/workflows/ruff_linting.yml)\n\n<h1 align=\"center\">\n <p>\n <img src=\"https://raw.githubusercontent.com/Kigstn/BungIO/master/docs/src/images/favicon.png\" alt=\"BungIO Logo\">\n </p>\n BungIO\n</h1>\n\n---\n\nBungIO is a modern and pythonic wrapper for Bungies Destiny 2 API.\n\n- [X] Python 3.10+\n- [X] Asynchronous\n- [X] 100% typed and raw api coverage\n- [X] Ratelimit compliant\n- [X] Manifest support\n- [X] OAuth2 support\n- [X] Easily used in combination with other libraries like FastApi\n\nClick [here](https://bungio.readthedocs.io/en/latest/installation) to get started or visit\nthe [guides](https://bungio.readthedocs.io/en/latest/Guides/basic)\nor [api reference](https://bungio.readthedocs.io/en/latest/API%20Reference/client/).\n\n\n## Basic Example\n\n```py\nimport asyncio\nimport os\n\nfrom bungio import Client\nfrom bungio.models import BungieMembershipType, DestinyActivityModeType, DestinyUser\n\n\n# create the client obj with our bungie authentication\nclient = Client(\n bungie_client_id=os.getenv(\"BUNGIE_CLIENT_ID\"),\n bungie_client_secret=os.getenv(\"BUNGIE_CLIENT_SECRET\"),\n bungie_token=os.getenv(\"BUNGIE_TOKEN\"),\n)\n\nasync def main():\n # create a user obj using a known bungie id\n user = DestinyUser(membership_id=4611686018467765462, membership_type=BungieMembershipType.TIGER_STEAM)\n\n # iterate thought the raids that user has played\n async for activity in user.yield_activity_history(mode=DestinyActivityModeType.RAID):\n\n # print the date of the activity\n print(activity.period)\n\n# bungio is by nature asynchronous, it can only be run in an asynchronous context\nasyncio.run(main())\n```\n---\n\n## Dev Setup\n\n#### Install Dependencies\n- [Install uv](https://docs.astral.sh/uv/getting-started/installation/)\n- `uv sync --all-extras`\n\n#### Run Tests\n- `uv run pytest .`\n\n#### Run Docs\n- `uv run mkdocs serve`\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2022 - present Kigstn\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "A destiny 2 / bungie api wrapper",
"version": "1.3.0",
"project_urls": {
"Documentation": "https://bungio.readthedocs.io/en/latest/",
"Repository": "https://github.com/Kigstn/BungIO"
},
"split_keywords": [
"asyncio",
" destiny",
" destiny 2",
" bungie",
" api"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "35b9dbfa6b786fff9a8407b83661142be52cf5ed24414e714bf472bb599fdbff",
"md5": "31d65947e93f3b57ce61f2ff6fc087d7",
"sha256": "9c96766d729e9c36d8b41a251732f842fea65c10d4e26b8b77bbf583336fc7bf"
},
"downloads": -1,
"filename": "bungio-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "31d65947e93f3b57ce61f2ff6fc087d7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 405294,
"upload_time": "2025-02-09T21:05:37",
"upload_time_iso_8601": "2025-02-09T21:05:37.048845Z",
"url": "https://files.pythonhosted.org/packages/35/b9/dbfa6b786fff9a8407b83661142be52cf5ed24414e714bf472bb599fdbff/bungio-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "21cc8b4ecf24855ac6ca9f0ed45dd2978f55567946a55b92747860ff5e86fa3a",
"md5": "2660eac39924d46d4310efe1c2a76273",
"sha256": "d5dd1858f8300aaf7a6454cd1f1ec0e534cc967724db9e93cd607607298a00fa"
},
"downloads": -1,
"filename": "bungio-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "2660eac39924d46d4310efe1c2a76273",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 300005,
"upload_time": "2025-02-09T21:05:39",
"upload_time_iso_8601": "2025-02-09T21:05:39.343408Z",
"url": "https://files.pythonhosted.org/packages/21/cc/8b4ecf24855ac6ca9f0ed45dd2978f55567946a55b92747860ff5e86fa3a/bungio-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-09 21:05:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Kigstn",
"github_project": "BungIO",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "bungio"
}