steamio 0.5.1
pip install steamio==0.5.1
Newer version available (1.1.3)
Released:
A Python wrapper for the Steam API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Gobot1234
- Tags steam.py , steam , steamio , steam-api
- Requires: Python >=3.7.0
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
- Typing
Project description
steam.py
A modern, easy to use, and async ready package to interact with the Steam API. Heavily inspired by discord.py and borrowing functionality from ValvePython/steam.
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
Installation
Python 3.7 or higher is required
To install the library just run either of the following commands:
# Linux/macOS
python3 -m pip install -U steamio
# Windows
py -m pip install -U steamio
Or for the development version.
git clone https://github.com/Gobot1234/steam.py
cd steam.py
python3 -m pip install -U ".[dev]"
Quick Example
import steam
class MyClient(steam.Client):
async def on_ready(self):
print("Logged in as", self.user)
async def on_trade_receive(self, trade):
await trade.partner.send("Thank you for your trade")
print(f"Received trade: #{trade.id}")
print("Trade partner is:", trade.partner)
print("We would send:", len(trade.items_to_send), "items")
print("We would receive:", len(trade.items_to_receive), "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
from steam.ext import commands
bot = commands.Bot(command_prefix="!")
@bot.command()
async def ping(ctx):
await ctx.send("Pong!")
bot.run("username", "password")
Links
Please note this repo is under going rapid development, if you find any bugs please make a new issue.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Gobot1234
- Tags steam.py , steam , steamio , steam-api
- Requires: Python >=3.7.0
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
- Typing
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file steamio-0.5.1.tar.gz
.
File metadata
- Download URL: steamio-0.5.1.tar.gz
- Upload date:
- Size: 155.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.9.0b4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b8c8fc32322e403d7e0b075a9077c356ac2bc00e27e214637dbf28a481e2c5e3
|
|
MD5 |
0ad3ca6a1a079d16fdee21d3ac1b9e7f
|
|
BLAKE2b-256 |
aced2eebc2bee29473b60cab1388ac889a5e5da205f28854947a6f588656cbfc
|
File details
Details for the file steamio-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: steamio-0.5.1-py3-none-any.whl
- Upload date:
- Size: 195.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.9.0b4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
46026172cf5c95f7954517f55baab259411bbab1382f7c961ceaec347defab22
|
|
MD5 |
47f6d0cc0f8a4688fb067731b1c7e82c
|
|
BLAKE2b-256 |
310f16b7ffc588e84b6a389dfa8c7f37458df339ab721264a193659740966585
|