genshin.py

Modern API wrapper for Genshin Impact & Honkai Impact 3rd built on asyncio and pydantic. 原神 崩坏3

MIT License

Downloads
1.5K
Stars
363
Committers
13

Bot releases are visible (Hide)

genshin.py - 1.6.3 Latest Release

Published by thesadru 6 months ago

genshin.py - 1.6.2

Published by thesadru 9 months ago

genshin.py - 1.6.1

Published by thesadru about 1 year ago

Fixes

  • Support providing geetest headers.
  • Use the newest version of pydantic.
genshin.py - 1.6.0

Published by thesadru over 1 year ago

This release does not fix geetest errors, only point them out!

What's new

  • Star rail daily rewards, battle chronicle and wish history.

Fixes

  • Raise errors on geetest instead of silently failing.
  • Fix v2 cookie compatibility.
genshin.py - 1.5.2

Published by thesadru over 1 year ago

Fixes

  • Allow v2 cookies.
genshin.py - 1.5.1

Published by thesadru over 1 year ago

What's new

  • Added event announcements.
  • Migrated to gitlab for icon data.

Fixes

  • Fixed some CN endpoints.
  • Fixed getting low-level honkai users.
genshin.py - 1.5.0

Published by thesadru almost 2 years ago

What's new

  • Added genshin chronicle TCG endpoints.
  • Added teapot replica endpoints.
  • Aded an official source for banner IDs.
  • Made the hoyolab ID optional.

Fixes

  • Fixed false positives when using multiple cookies.
  • Added turkish and italian to the list of languages.
genshin.py - 1.4.0

Published by thesadru almost 2 years ago

What's new

  • Added geshin lineup.
  • Added cn calculator endpoints.
  • Added new icon types for genshin characters.

Fixes

  • Invalid cookies are no longer kept.
  • Cookie tokens are now automatically refreshed.
genshin.py - 1.3.0

Published by thesadru about 2 years ago

What's new

  • Character data may be updated using 3rd party databases.

Fixes

  • Character names are no longer in a different language.
  • Authkeys can be grabbed from local files again.
genshin.py - 1.2.4

Published by thesadru about 2 years ago

Fixes

  • Added dendoruculus to chronicle stats.
  • Added new genshin and honkai characters.
genshin.py - 1.2.3

Published by thesadru about 2 years ago

What's new

  • Added the golden apple archipelago activity.

Fixes

  • Updated ds salt for cn daily rewards.
  • Exclude partial and empty characters from responses.
genshin.py - 1.2.2

Published by thesadru over 2 years ago

What's new

  • Added user info to genshin stats.

Fixes

  • Fixed enabling of real-time notes and calculator sync.
  • Do not require cookies for authkey endpoints.
genshin.py - 1.2.1

Published by thesadru over 2 years ago

Fixes

  • Increase page size of diaries to 100.
  • Automatically enable real-time notes when used for the first time.
genshin.py - 1.2.0

Published by thesadru over 2 years ago

What's new

  • Added client.uid as a simpler alias for client.uids.
  • Allowed explicit UIDs in diary and calculator endpoints.
  • Implemented an international cookie manager.
  • Added client.proxy.
  • Implemented very basic wiki endpoints.
  • Implemented hoyolab community check-in.

Changes

  • The password is now hidden in python -m genshin login
  • Stored timedeltas instead of datetimes in real-time notes.

Fixes

  • Fixed honkai stats for users without any unlocked abyss.
genshin.py - 1.1.0

Published by thesadru over 2 years ago

What's new

  • Added the Parametric Transformer to notes.
  • Provided a direct Client.uid property for easier use with default_game.
  • Added missing activities.

Changes

  • Improved the structure of Exploration models.
  • Removed is_chinese with recognize_region which now requires a genshin.Game.

Fixes

  • Character model validation now works for foreign languages.
genshin.py - 1.0.1

Published by thesadru over 2 years ago

Fixes

  • Added mi18n to the cache.
  • Optimized _get_uid.
genshin.py - 1.0.0

Published by thesadru over 2 years ago

What's new

  • Added honkai endpoints.
  • Added login with username and password (Client.login_with_password)
  • Made the entire project be mypy and pyright strict compliant.

Changes

  • Caching is now handled through Client.cache
  • Moved MultiCookieClient functionality to Client.cookie_manager

Fixes

  • Reduced the amount of unexpected ratelimit exceptions
  • Made every single model be re-serializable.

Deprecation

  • GenshinClient.cookies were removed in favor of cookie_manager
  • GenshinClient and subclasses were merged into Client
  • genshin_accounts -> get_game_accounts
  • get_record_card -> get_record_cards
  • get_[partial|full]_user -> get_[partial|full]_genshin_user
genshin.py - 0.4.0

Published by thesadru over 2 years ago

What's new

  • Added Serenitea Pot's Jar of Riches to Real-Time Notes
  • Implemented set_top_characters
  • Added models for A Study in Potions

Changes

  • Made the Enhancement Progression Calculator use the builder pattern
genshin.py - 0.3.1

Published by thesadru almost 3 years ago

Deprecation

  • Removed all_characters since the API no longer supports this feature

Fixes

  • Images are now accounted for during character data completion
  • Diary log no longer repeatedly returns the first page in some cases
genshin.py - 0.3.0

Published by thesadru almost 3 years ago

What's new

  • Added full support for the Genshin Impact Enhancement Progression Calculator
  • Improved debug mode to be slightly more descriptive

Fixes

  • Fixed minor API inconsistencies including domain mismatches
  • Ensured some specific models no longer break when being revalidated
Package Rankings
Top 5.37% on Pypi.org
Badges
Extracted from project README
Downloads PyPI package Last Commit Coverage Discord