Metadata-Version: 2.3
Name: steamy-py
Version: 1.2.0
Summary: Asynchronous Python wrapper for the Steam Web API
Keywords: steam,steam-api,async,aiohttp,wrapper
Author: Roman Chursanov
Author-email: Roman Chursanov <roman@chrsnv.ru>
License: MIT
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: aiohttp[speedups]>=3.13.2
Requires-Dist: pydantic>=2.12.5
Requires-Dist: pydantic-settings>=2.12.0
Requires-Dist: ruff>=0.14.10 ; extra == 'dev'
Requires-Dist: ty>=0.0.8 ; extra == 'dev'
Requires-Python: >=3.13
Project-URL: Changelog, https://github.com/AuthFailed/steam-py/releases
Project-URL: Homepage, https://github.com/AuthFailed/steam-py
Project-URL: Issues, https://github.com/AuthFailed/steam-py/issues
Project-URL: Repository, https://github.com/AuthFailed/steam-py
Provides-Extra: dev
Description-Content-Type: text/markdown

# Installation

Package is available on [PyPi](https://pypi.org/project/steamy-py/), you could install it with:

```bash
pip install steamy-py
```

or

```bash
uv add steamy-py
```

# Authorization

Most methods require an API key, which can be obtained at https://steamcommunity.com/dev/apikey

Some APIs work with access tokens, if you have one you can provide it here, and it will be preferred over the webapi
key.

Here's how to get a store token:

1. Open https://store.steampowered.com/pointssummary/ajaxgetasyncconfig
2. Copy the value of webapi_token or simply paste the full JSON in

Here's how to get a community token:

1. Open https://steamcommunity.com/my/edit/info
2. Run the following script:

```js
JSON.parse(application_config.dataset.loyalty_webapi_token)
```

# Examples

In the `examples` directory, you can find examples of how to use the package.

Basic example:

```py
async with Steam(api_key="YOUR_API_KEY") as steam:
    friends = await steam.player.get_friends_list(steam_id=1234567890)
    print(friends)
```
