Skip to content

Commit

Permalink
feat: episode revenant update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kigstn committed Oct 11, 2024
1 parent 171e6fa commit 40e3468
Show file tree
Hide file tree
Showing 120 changed files with 1,841 additions and 1,683 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: ".json"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.1
rev: v0.6.9
hooks:
# Run the linter.
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bungio"
version = "1.1.0"
version = "1.2.0"
description = "A destiny 2 / bungie api wrapper"
keywords = ["asyncio", "destiny", "destiny 2", "bungie", "api"]
authors = [{ name = "Daniel J" }]
Expand All @@ -17,7 +17,6 @@ dependencies = [
[project.optional-dependencies]
speedups = [
"orjson~=3.6",
"aiodns~=3.0",
"brotli~=1.0",
"charset-normalizer~=3.3",
]
Expand Down Expand Up @@ -47,6 +46,7 @@ fix = true
[tool.ruff.lint]
# Allow applying all unsafe fixes in the `E` rules and `F401` without the `--unsafe-fixes` flag
extend-safe-fixes = ["E", "F401"]
extend-select = ["I"]
extend-ignore = ["F403"]
exclude = ["__init__.py"]

Expand Down
6 changes: 2 additions & 4 deletions src/bungio/api/bungie/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
from datetime import datetime
from typing import Optional

from bungio.models.base import ClientMixin, custom_define
from bungio.models import ApiUsage, Application
from bungio.models.auth import AuthData

from bungio.models import Application
from bungio.models import ApiUsage
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
7 changes: 2 additions & 5 deletions src/bungio/api/bungie/community_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

from typing import Optional, Union

from bungio.models.base import ClientMixin, custom_define
from bungio.models import CommunityContentSortMode, ForumTopicsCategoryFiltersEnum, PostSearchResponse
from bungio.models.auth import AuthData

from bungio.models import ForumTopicsCategoryFiltersEnum
from bungio.models import PostSearchResponse
from bungio.models import CommunityContentSortMode
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
17 changes: 9 additions & 8 deletions src/bungio/api/bungie/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
# This file is generated automatically by `generate_api_schema.py` and will be overwritten
# Instead, change functions / models by subclassing them in the `./overwrites/` folder. They will be used instead.

from typing import Optional, Any

from bungio.models.base import ClientMixin, custom_define
from typing import Any, Optional

from bungio.models import (
ContentItemPublicContract,
ContentTypeDescription,
NewsArticleRssResponse,
SearchResultOfContentItemPublicContract,
)
from bungio.models.auth import AuthData

from bungio.models import SearchResultOfContentItemPublicContract
from bungio.models import ContentItemPublicContract
from bungio.models import NewsArticleRssResponse
from bungio.models import ContentTypeDescription
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
99 changes: 50 additions & 49 deletions src/bungio/api/bungie/destiny2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,58 +5,59 @@
from datetime import datetime
from typing import Optional, Union

from bungio.models.base import ClientMixin, custom_define
from bungio.models import (
AwaAuthorizationResult,
AwaInitializeResponse,
AwaPermissionRequested,
AwaUserResponse,
BungieMembershipType,
DestinyActivityHistoryResults,
DestinyActivityModeType,
DestinyAggregateActivityResults,
DestinyCharacterResponse,
DestinyClanAggregateStat,
DestinyCollectibleNodeDetailResponse,
DestinyComponentType,
DestinyDefinition,
DestinyEntitySearchResult,
DestinyEquipItemResults,
DestinyHistoricalStatsAccountResult,
DestinyHistoricalStatsByPeriod,
DestinyHistoricalStatsDefinition,
DestinyHistoricalWeaponStatsData,
DestinyInsertPlugsActionRequest,
DestinyInsertPlugsFreeActionRequest,
DestinyItemActionRequest,
DestinyItemChangeResponse,
DestinyItemResponse,
DestinyItemSetActionRequest,
DestinyItemStateRequest,
DestinyItemTransferRequest,
DestinyLeaderboard,
DestinyLinkedProfilesResponse,
DestinyLoadoutActionRequest,
DestinyLoadoutUpdateActionRequest,
DestinyManifest,
DestinyMilestone,
DestinyMilestoneContent,
DestinyPostGameCarnageReportData,
DestinyPostmasterTransferRequest,
DestinyProfileResponse,
DestinyPublicMilestone,
DestinyPublicVendorsResponse,
DestinyReportOffensePgcrRequest,
DestinyStatsGroupType,
DestinyVendorFilter,
DestinyVendorResponse,
DestinyVendorsResponse,
ExactSearchRequest,
PeriodType,
UserInfoCard,
)
from bungio.models.auth import AuthData
from bungio.models.base import ClientMixin, custom_define
from bungio.utils import AllowAsyncIteration

from bungio.models import DestinyItemTransferRequest
from bungio.models import DestinyPublicVendorsResponse
from bungio.models import DestinyPublicMilestone
from bungio.models import DestinyInsertPlugsFreeActionRequest
from bungio.models import DestinyLoadoutUpdateActionRequest
from bungio.models import DestinyPostGameCarnageReportData
from bungio.models import DestinyItemStateRequest
from bungio.models import DestinyItemResponse
from bungio.models import BungieMembershipType
from bungio.models import DestinyVendorResponse
from bungio.models import DestinyItemActionRequest
from bungio.models import DestinyClanAggregateStat
from bungio.models import DestinyEntitySearchResult
from bungio.models import DestinyVendorFilter
from bungio.models import DestinyEquipItemResults
from bungio.models import DestinyHistoricalStatsByPeriod
from bungio.models import AwaUserResponse
from bungio.models import DestinyCollectibleNodeDetailResponse
from bungio.models import DestinyStatsGroupType
from bungio.models import AwaInitializeResponse
from bungio.models import DestinyReportOffensePgcrRequest
from bungio.models import DestinyLoadoutActionRequest
from bungio.models import DestinyInsertPlugsActionRequest
from bungio.models import DestinyActivityHistoryResults
from bungio.models import ExactSearchRequest
from bungio.models import DestinyItemChangeResponse
from bungio.models import PeriodType
from bungio.models import DestinyAggregateActivityResults
from bungio.models import DestinyLinkedProfilesResponse
from bungio.models import DestinyVendorsResponse
from bungio.models import DestinyLeaderboard
from bungio.models import DestinyManifest
from bungio.models import AwaAuthorizationResult
from bungio.models import DestinyProfileResponse
from bungio.models import DestinyMilestoneContent
from bungio.models import DestinyCharacterResponse
from bungio.models import DestinyItemSetActionRequest
from bungio.models import DestinyHistoricalWeaponStatsData
from bungio.models import DestinyPostmasterTransferRequest
from bungio.models import DestinyComponentType
from bungio.models import UserInfoCard
from bungio.models import DestinyHistoricalStatsAccountResult
from bungio.models import DestinyHistoricalStatsDefinition
from bungio.models import AwaPermissionRequested
from bungio.models import DestinyDefinition
from bungio.models import DestinyMilestone
from bungio.models import DestinyActivityModeType


@custom_define()
class Destiny2RouteInterface(ClientMixin):
Expand Down
19 changes: 10 additions & 9 deletions src/bungio/api/bungie/fireteam.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

from typing import Optional, Union

from bungio.models.base import ClientMixin, custom_define
from bungio.models import (
FireteamDateRange,
FireteamPlatform,
FireteamPublicSearchOption,
FireteamResponse,
FireteamSlotSearch,
SearchResultOfFireteamResponse,
SearchResultOfFireteamSummary,
)
from bungio.models.auth import AuthData

from bungio.models import FireteamDateRange
from bungio.models import SearchResultOfFireteamResponse
from bungio.models import SearchResultOfFireteamSummary
from bungio.models import FireteamPlatform
from bungio.models import FireteamPublicSearchOption
from bungio.models import FireteamResponse
from bungio.models import FireteamSlotSearch
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
65 changes: 33 additions & 32 deletions src/bungio/api/bungie/fireteam_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,40 @@

from typing import Optional, Union

from bungio.models.base import ClientMixin, custom_define
from bungio.models import (
BungieMembershipType,
DestinyFireteamFinderApplicationType,
DestinyFireteamFinderApplyToListingResponse,
DestinyFireteamFinderBulkGetListingStatusResponse,
DestinyFireteamFinderGetApplicationResponse,
DestinyFireteamFinderGetCharacterActivityAccessResponse,
DestinyFireteamFinderGetListingApplicationsResponse,
DestinyFireteamFinderGetLobbyOffersResponse,
DestinyFireteamFinderGetPlayerApplicationsResponse,
DestinyFireteamFinderGetPlayerLobbiesResponse,
DestinyFireteamFinderGetPlayerOffersResponse,
DestinyFireteamFinderHostLobbyRequest,
DestinyFireteamFinderHostLobbyResponse,
DestinyFireteamFinderJoinLobbyRequest,
DestinyFireteamFinderKickPlayerRequest,
DestinyFireteamFinderListing,
DestinyFireteamFinderLobbyResponse,
DestinyFireteamFinderOffer,
DestinyFireteamFinderRespondToApplicationRequest,
DestinyFireteamFinderRespondToApplicationResponse,
DestinyFireteamFinderRespondToAuthenticationRequest,
DestinyFireteamFinderRespondToAuthenticationResponse,
DestinyFireteamFinderRespondToOfferRequest,
DestinyFireteamFinderRespondToOfferResponse,
DestinyFireteamFinderSearchListingsByClanRequest,
DestinyFireteamFinderSearchListingsByClanResponse,
DestinyFireteamFinderSearchListingsByFiltersRequest,
DestinyFireteamFinderSearchListingsByFiltersResponse,
DestinyFireteamFinderUpdateLobbySettingsRequest,
DestinyFireteamFinderUpdateLobbySettingsResponse,
)
from bungio.models.auth import AuthData

from bungio.models import DestinyFireteamFinderGetLobbyOffersResponse
from bungio.models import DestinyFireteamFinderJoinLobbyRequest
from bungio.models import DestinyFireteamFinderGetPlayerOffersResponse
from bungio.models import DestinyFireteamFinderLobbyResponse
from bungio.models import DestinyFireteamFinderSearchListingsByClanRequest
from bungio.models import DestinyFireteamFinderGetApplicationResponse
from bungio.models import DestinyFireteamFinderGetCharacterActivityAccessResponse
from bungio.models import DestinyFireteamFinderApplyToListingResponse
from bungio.models import DestinyFireteamFinderRespondToApplicationRequest
from bungio.models import DestinyFireteamFinderUpdateLobbySettingsRequest
from bungio.models import DestinyFireteamFinderOffer
from bungio.models import DestinyFireteamFinderHostLobbyRequest
from bungio.models import BungieMembershipType
from bungio.models import DestinyFireteamFinderKickPlayerRequest
from bungio.models import DestinyFireteamFinderGetPlayerApplicationsResponse
from bungio.models import DestinyFireteamFinderListing
from bungio.models import DestinyFireteamFinderRespondToApplicationResponse
from bungio.models import DestinyFireteamFinderRespondToOfferRequest
from bungio.models import DestinyFireteamFinderApplicationType
from bungio.models import DestinyFireteamFinderRespondToAuthenticationRequest
from bungio.models import DestinyFireteamFinderHostLobbyResponse
from bungio.models import DestinyFireteamFinderRespondToOfferResponse
from bungio.models import DestinyFireteamFinderSearchListingsByFiltersRequest
from bungio.models import DestinyFireteamFinderBulkGetListingStatusResponse
from bungio.models import DestinyFireteamFinderSearchListingsByClanResponse
from bungio.models import DestinyFireteamFinderSearchListingsByFiltersResponse
from bungio.models import DestinyFireteamFinderGetListingApplicationsResponse
from bungio.models import DestinyFireteamFinderGetPlayerLobbiesResponse
from bungio.models import DestinyFireteamFinderRespondToAuthenticationResponse
from bungio.models import DestinyFireteamFinderUpdateLobbySettingsResponse
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
19 changes: 10 additions & 9 deletions src/bungio/api/bungie/forum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

from typing import Optional, Union

from bungio.models.base import ClientMixin, custom_define
from bungio.models import (
ForumPostSortEnum,
ForumRecruitmentDetail,
ForumTopicsCategoryFiltersEnum,
ForumTopicsQuickDateEnum,
ForumTopicsSortEnum,
PostSearchResponse,
TagResponse,
)
from bungio.models.auth import AuthData

from bungio.models import ForumTopicsCategoryFiltersEnum
from bungio.models import ForumPostSortEnum
from bungio.models import ForumRecruitmentDetail
from bungio.models import ForumTopicsQuickDateEnum
from bungio.models import TagResponse
from bungio.models import ForumTopicsSortEnum
from bungio.models import PostSearchResponse
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
2 changes: 1 addition & 1 deletion src/bungio/api/bungie/get_available_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from typing import Optional

from bungio.models.base import ClientMixin, custom_define
from bungio.models.auth import AuthData
from bungio.models.base import ClientMixin, custom_define
from bungio.utils import AllowAsyncIteration


Expand Down
5 changes: 2 additions & 3 deletions src/bungio/api/bungie/global_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

from typing import Optional

from bungio.models.base import ClientMixin, custom_define
from bungio.models.auth import AuthData

from bungio.models import GlobalAlert
from bungio.models.auth import AuthData
from bungio.models.base import ClientMixin, custom_define


@custom_define()
Expand Down
Loading

0 comments on commit 40e3468

Please sign in to comment.