Skip to main content

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}
                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


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.13.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

csbluegem.py-0.13.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file csbluegem_py-0.13.0.tar.gz.

File metadata

  • Download URL: csbluegem_py-0.13.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for csbluegem_py-0.13.0.tar.gz
Algorithm Hash digest
SHA256 e81a6383754fc70796b939e234686b5abd911e9742b6413df1d14661cf2c04c9
MD5 17822df54587ae18c8487c455ec456cc
BLAKE2b-256 df70ed068d402b04cb4c423e5bde212fa89a469a98a930e36118cac849ba9a5c

See more details on using hashes here.

File details

Details for the file csbluegem.py-0.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for csbluegem.py-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2904edaca2674338b2f75ac0605e2deb2bf75b1a8ce44cc199b45cf71624860
MD5 94b037d7470e9993b10e3051dc09c1d5
BLAKE2b-256 d46e84545285fcedbf85a24b7867f8e90d1ff8d5897e6e023f4cf8640f6925ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page