An async wrapper for the CSBlueGem api.
Project description
An asynchronous wrapper for the CSBlueGem API.
Quickstart
Install from PyPI: python3 -m pip install csbluegem.py
import asyncio
from textwrap import dedent
import csbluegem
async def main():
async with csbluegem.Client() as client:
r = await client.search(csbluegem.BlueGemItem.M9Bayonet)
for result in r.sales:
s = f"""
Pattern: {result.pattern}
Float: {result.float}
Stattrak?: {result.is_stattrak}
Price: {result.price:,}
Date: {result.timestamp}
Origin: {result.origin}
Days Since Sale: {result.days_since:,}
"""
print(dedent(s), end="\n\n")
if __name__ == "__main__":
asyncio.run(main())
Additional examples available HERE
Documentation available HERE
Project details
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
csbluegem_py-0.7.0.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for csbluegem.py-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec5af956d7f23db99e2b52082b481c7bbae1cb9663ad399af6e995d5790ee291 |
|
MD5 | b41fadc1e82f636c480711da7d86e3ad |
|
BLAKE2b-256 | b7be11ffe0b6518d4e00be26b48bcb1853ad2cfa3a22d684bdc91ea3178a513c |