steamio


Namesteamio JSON
Version 1.1.3 PyPI version JSON
download
home_pageNone
SummaryA Python wrapper for the Steam API
upload_time2025-08-14 12:20:22
maintainerNone
docs_urlNone
authorGobot1234
requires_python<4.0,>=3.11
licenseMIT
keywords steam.py steam steamio steam-api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # steam.py

A modern, easy to use, and async ready package to interact with the Steam API. Heavily inspired by
[discord.py](https://github.com/Rapptz/discord.py).

![Supports](https://img.shields.io/pypi/pyversions/steamio)
![Version](https://img.shields.io/pypi/v/steamio?color=%2366c0f4)
![License](https://img.shields.io/github/license/Gobot1234/steam.py)
[![GitHub issues](https://img.shields.io/github/issues-raw/Gobot1234/steam.py)](https://github.com/Gobot1234/steam.py/issues)
[![GitHub stars](https://img.shields.io/github/stars/Gobot1234/steam.py)](https://github.com/Gobot1234/steam.py/stargazers)
[![Discord](https://img.shields.io/discord/678629505094647819?color=7289da&label=Discord&logo=discord)](https://discord.gg/MQ68WUS)
[![Documentation Status](https://github.com/Gobot1234/steam.py/actions/workflows/docs.yml/badge.svg)](https://github.com/Gobot1234/steam.py/actions/workflows/docs.yml)

## Key Features

- Modern Pythonic API using `async`/`await` syntax
- Command extension to aid with bot creation
- Easy to use with an object-oriented design
- Fully typed hinted for faster development

## Installation

**Python 3.10 or higher is required**

To install the library just run either of the following commands:

```sh
# Linux/macOS
python3 -m pip install -U steamio
# Windows
py -m pip install -U steamio
```

Or for the development version.

```sh
# Linux/macOS
python3 -m pip install -U "steamio @ git+https://github.com/Gobot1234/steam.py@main"
# Windows
py -m pip install -U "steamio @ git+https://github.com/Gobot1234/steam.py@main"
```

## Quick Example

```python
import steam


class MyClient(steam.Client):
    async def on_ready(self) -> None:
        print("Logged in as", self.user)

    async def on_trade(self, trade: steam.TradeOffer) -> None:
        if not trade.is_our_offer():
            await trade.user.send("Thank you for your trade")
            print(f"Received trade: #{trade.id}")
            print("Trade partner is:", trade.user)
            print("We would send:", len(trade.sending), "items")
            print("We would receive:", len(trade.receiving), "items")

            if trade.is_gift():
                print("Accepting the trade as it is a gift")
                await trade.accept()


client = MyClient()
client.run("username", "password")
```

## Bot Example

```python
from steam.ext import commands

bot = commands.Bot(command_prefix="!")


@bot.command
async def ping(ctx: commands.Context) -> None:
    await ctx.send("Pong!")


bot.run("username", "password")
```

## Links

- [Documentation](https://steam-py.github.io/docs/latest)
- [Official Discord Server](https://discord.gg/MQ68WUS)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "steamio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": "steam.py, steam, steamio, steam-api",
    "author": "Gobot1234",
    "author_email": "gobot1234yt@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1e/86/7dd27641f921d4a71dd96c1ce122da95fa02af79f9947789c5e85443b32c/steamio-1.1.3.tar.gz",
    "platform": null,
    "description": "# steam.py\n\nA modern, easy to use, and async ready package to interact with the Steam API. Heavily inspired by\n[discord.py](https://github.com/Rapptz/discord.py).\n\n![Supports](https://img.shields.io/pypi/pyversions/steamio)\n![Version](https://img.shields.io/pypi/v/steamio?color=%2366c0f4)\n![License](https://img.shields.io/github/license/Gobot1234/steam.py)\n[![GitHub issues](https://img.shields.io/github/issues-raw/Gobot1234/steam.py)](https://github.com/Gobot1234/steam.py/issues)\n[![GitHub stars](https://img.shields.io/github/stars/Gobot1234/steam.py)](https://github.com/Gobot1234/steam.py/stargazers)\n[![Discord](https://img.shields.io/discord/678629505094647819?color=7289da&label=Discord&logo=discord)](https://discord.gg/MQ68WUS)\n[![Documentation Status](https://github.com/Gobot1234/steam.py/actions/workflows/docs.yml/badge.svg)](https://github.com/Gobot1234/steam.py/actions/workflows/docs.yml)\n\n## Key Features\n\n- Modern Pythonic API using `async`/`await` syntax\n- Command extension to aid with bot creation\n- Easy to use with an object-oriented design\n- Fully typed hinted for faster development\n\n## Installation\n\n**Python 3.10 or higher is required**\n\nTo install the library just run either of the following commands:\n\n```sh\n# Linux/macOS\npython3 -m pip install -U steamio\n# Windows\npy -m pip install -U steamio\n```\n\nOr for the development version.\n\n```sh\n# Linux/macOS\npython3 -m pip install -U \"steamio @ git+https://github.com/Gobot1234/steam.py@main\"\n# Windows\npy -m pip install -U \"steamio @ git+https://github.com/Gobot1234/steam.py@main\"\n```\n\n## Quick Example\n\n```python\nimport steam\n\n\nclass MyClient(steam.Client):\n    async def on_ready(self) -> None:\n        print(\"Logged in as\", self.user)\n\n    async def on_trade(self, trade: steam.TradeOffer) -> None:\n        if not trade.is_our_offer():\n            await trade.user.send(\"Thank you for your trade\")\n            print(f\"Received trade: #{trade.id}\")\n            print(\"Trade partner is:\", trade.user)\n            print(\"We would send:\", len(trade.sending), \"items\")\n            print(\"We would receive:\", len(trade.receiving), \"items\")\n\n            if trade.is_gift():\n                print(\"Accepting the trade as it is a gift\")\n                await trade.accept()\n\n\nclient = MyClient()\nclient.run(\"username\", \"password\")\n```\n\n## Bot Example\n\n```python\nfrom steam.ext import commands\n\nbot = commands.Bot(command_prefix=\"!\")\n\n\n@bot.command\nasync def ping(ctx: commands.Context) -> None:\n    await ctx.send(\"Pong!\")\n\n\nbot.run(\"username\", \"password\")\n```\n\n## Links\n\n- [Documentation](https://steam-py.github.io/docs/latest)\n- [Official Discord Server](https://discord.gg/MQ68WUS)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python wrapper for the Steam API",
    "version": "1.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/Gobot1234/steam.py/issues",
        "Code": "https://github.com/Gobot1234/steam.py",
        "Documentation": "https://steam-py.github.io/docs/latest"
    },
    "split_keywords": [
        "steam.py",
        " steam",
        " steamio",
        " steam-api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b5557a9149586a4eeaf99f4d07852ae3fd8521d34ec2acc1ad901dede0da59fb",
                "md5": "2eb89b6b6d753f2b2b316a373b9ca861",
                "sha256": "b405053b8261f74d5bede49aaf0b62f213eb917d498648fb9cf80dfcc39dff6a"
            },
            "downloads": -1,
            "filename": "steamio-1.1.3-cp312-cp312-macosx_15_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "2eb89b6b6d753f2b2b316a373b9ca861",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": "<4.0,>=3.11",
            "size": 420062,
            "upload_time": "2025-08-14T12:20:21",
            "upload_time_iso_8601": "2025-08-14T12:20:21.182308Z",
            "url": "https://files.pythonhosted.org/packages/b5/55/7a9149586a4eeaf99f4d07852ae3fd8521d34ec2acc1ad901dede0da59fb/steamio-1.1.3-cp312-cp312-macosx_15_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e867dd27641f921d4a71dd96c1ce122da95fa02af79f9947789c5e85443b32c",
                "md5": "cf2b8d05a2c6968bf41e6f492567acff",
                "sha256": "ff453ede7d3a8a7030425abe6c357ac72c6a50a054aad7eec0b6fabad1428db9"
            },
            "downloads": -1,
            "filename": "steamio-1.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "cf2b8d05a2c6968bf41e6f492567acff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 361765,
            "upload_time": "2025-08-14T12:20:22",
            "upload_time_iso_8601": "2025-08-14T12:20:22.865896Z",
            "url": "https://files.pythonhosted.org/packages/1e/86/7dd27641f921d4a71dd96c1ce122da95fa02af79f9947789c5e85443b32c/steamio-1.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-14 12:20:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Gobot1234",
    "github_project": "steam.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "steamio"
}
        
Elapsed time: 0.45220s