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.3.0.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for csbluegem.py-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 217ca617565c5ccc43fadb0a4a2c9382a78885df0ab84410d3f513ec570f7d61 |
|
MD5 | bfb6b2e331c81c2cf3c1a39512924887 |
|
BLAKE2b-256 | adba951f432cefc43fc6c8e5b617ed7976c8d99c833432536347d2e839361e84 |