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.5.0.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for csbluegem.py-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 911f8e0cbd10f7b7cccb712713e4cdcd34048aa3b764140fc0e52db9f50487c2 |
|
MD5 | da97d3829758937613875d97ca3a1e4b |
|
BLAKE2b-256 | a7cb27ab224fc3023bc33eb09516031b3119557425ddaf104dde3caa01c7e6a5 |