Metadata-Version: 2.4
Name: hsr-cards
Version: 1.1.0
Summary: A library to generate Honkai Star Rail player stats cards with async support
Author-email: sora <sahikast6@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/MR-LORD-REX/hsr-cards
Project-URL: Documentation, https://github.com/MR-LORD-REX/hsr-cards#readme
Project-URL: Repository, https://github.com/MR-LORD-REX/hsr-cards.git
Project-URL: Issues, https://github.com/MR-LORD-REX/hsr-cards/issues
Keywords: honkai,star-rail,hsr,cards,stats,image-generation
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Natural Language :: English
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: pillow>=10.1.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=0.19.0
Requires-Dist: cloudscraper>=1.2.71
Requires-Dist: beautifulsoup4>=4.12
Requires-Dist: lxml>=5.0
Requires-Dist: fonttools[woff]>=4.50
Provides-Extra: browser
Requires-Dist: playwright>=1.49; extra == "browser"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: black>=23.0; extra == "dev"
Requires-Dist: flake8>=6.0; extra == "dev"
Requires-Dist: mypy>=1.0; extra == "dev"
Dynamic: license-file

# 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](https://mr-lord-rex.github.io/hsr-cards/) · [Documentation index](docs/readme.md) · [API reference](docs/api/main-client.md) · [Card showcase](docs/showcase.md)

Install the current repository in your virtual environment:

```bash
git clone https://github.com/MR-LORD-REX/hsr-cards.git
cd hsr-cards
python -m pip install -e .
```

```python
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](docs/getting-started/quickstart.md), [endgame guide](docs/guides/endgame.md), [player cards](docs/guides/player-cards.md). The documentation tracks the current source checkout; published package versions may have an older API.

[MIT license](LICENSE) · [Report an issue](https://github.com/MR-LORD-REX/hsr-cards/issues)

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