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.8.1.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for csbluegem.py-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7961de209c5e959cf1ab89c9e36a0ff628e8c9212d0cad77a3519d2f402375c6 |
|
MD5 | bfe09d43fefe8a12b66966f4a875a262 |
|
BLAKE2b-256 | 6a14a48fdc7f99b7df4e22b62b9a76144757a9211f19ecd54c89ac5ef6fbf913 |