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.Item.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.value}
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.11.0.tar.gz
(11.6 kB
view hashes)
Built Distribution
Close
Hashes for csbluegem.py-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5918b1b9821ccaa66d717d24fad2d95bca7b56270b937cbe5800e88c891559 |
|
MD5 | de67713a1ae65177c06a77cd24055a49 |
|
BLAKE2b-256 | dca7db636dd69de5b9c690f5252bbc3afe1c7c0e28bdd1a7b0ab2ad3aad26e9e |