Skip to main content

HSR Cards

An async Python library for Honkai: Star Rail character, equipment, endgame, and player cards, with independent Nanoka, Prydwen, and HoYoLAB clients. Requires Python 3.10+.

Documentation website · Documentation index · API reference · Card showcase

Install the current repository in your virtual environment:

git clone https://github.com/MR-LORD-REX/hsr-cards.git
cd hsr-cards
python -m pip install -e .
import asyncio
from hsr_cards import HonkaiStarrail

async def main():
    async with HonkaiStarrail() as client:
        card = await client.get_character_info(1507, version="4.7.51")
        card.save("character-info.png")

asyncio.run(main())

See the quickstart, endgame guide, player cards. The documentation tracks the current source checkout; published package versions may have an older API.

MIT license · Report an issue

A community project independent of HoYoverse, Nanoka, and Prydwen.

Metadata

Release files for hsr-cards 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hsr-cards 1.1.0
File Size Uploaded Provenance Actions
hsr_cards-1.1.0.tar.gz 3.0 MB Without provenance Details for hsr_cards-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hsr-cards 1.1.0
File Interpreter ABI Platform Actions
hsr_cards-1.1.0-py3-none-any.whl Python 3 none any Details for hsr_cards-1.1.0-py3-none-any.whl

Total release size: 6.0 MB

Release files / hsr_cards-1.1.0.tar.gz

Download URL hsr_cards-1.1.0.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
c240f49ab147d45c2c2b154ead386861a771972e8be39ebf91c02242a0a36c3a
BLAKE2b-256 checksum
How to use checksums
c2ee8a5b5b4c3dec920e464477eca620db0be693454d79d9601b4812feae31f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hsr_cards-1.1.0-py3-none-any.whl

Download URL hsr_cards-1.1.0-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9b3ff061e637f4b4121a5b7c6ab7b26d5bcc8378ba8639ef68f23aa6a1a83f2b
BLAKE2b-256 checksum
How to use checksums
2380267d252c8aa9809f358138bca4a1d2190ddc83f730380fc8498f6ef1fc9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hsr-cards 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page