steamio


Namesteamio JSON
Version 1.1.1 PyPI version JSON
download
home_pageNone
SummaryA Python wrapper for the Steam API
upload_time2025-02-08 14:05:08
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/b3/d8/3db6a15511275399511e2b93c5bddf578c3631eee4fc718208eccde1be20/steamio-1.1.1.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.1",
    "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": "edca39a4c5d349db581e18b9df489aa4724868d22d8e97d63e38e22d08544ba2",
                "md5": "ea3904a9feb89a56a07286d5b5be93b1",
                "sha256": "180c7a58fde19b38524678e9642e70b31510e8272ceb58288ce0a5d8439d0f25"
            },
            "downloads": -1,
            "filename": "steamio-1.1.1-cp311-cp311-macosx_15_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "ea3904a9feb89a56a07286d5b5be93b1",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": "<4.0,>=3.11",
            "size": 417856,
            "upload_time": "2025-02-08T14:05:06",
            "upload_time_iso_8601": "2025-02-08T14:05:06.361436Z",
            "url": "https://files.pythonhosted.org/packages/ed/ca/39a4c5d349db581e18b9df489aa4724868d22d8e97d63e38e22d08544ba2/steamio-1.1.1-cp311-cp311-macosx_15_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3d83db6a15511275399511e2b93c5bddf578c3631eee4fc718208eccde1be20",
                "md5": "8fb1712140cffeaa4d9a12b5f333916e",
                "sha256": "75e5e329132cb65a065ce837f21d659a3ce2fbf0995db58a491a4f3d7b189bbb"
            },
            "downloads": -1,
            "filename": "steamio-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8fb1712140cffeaa4d9a12b5f333916e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 359521,
            "upload_time": "2025-02-08T14:05:08",
            "upload_time_iso_8601": "2025-02-08T14:05:08.615754Z",
            "url": "https://files.pythonhosted.org/packages/b3/d8/3db6a15511275399511e2b93c5bddf578c3631eee4fc718208eccde1be20/steamio-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-08 14:05:08",
    "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.44369s