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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: csbluegem_py-0.14.0.tar.gz
  • Upload date:
  • Size: 11.7 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.14.0.tar.gz
Algorithm Hash digest
SHA256 77f660e168988a52cc9dfec235b8c4bf2d4cba5d2856be2b3451eeef85cb9248
MD5 2382b1aa13999c972026a3af0d4a3300
BLAKE2b-256 7ecbdbd9ad2ded0b06a5b92474ed53aa984dc5b53e9c0c94055f6431bc3bc50c

See more details on using hashes here.

Provenance

The following attestation bundles were made for csbluegem_py-0.14.0.tar.gz:

Publisher: publish_release.yml on fretgfr/csbluegem.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: csbluegem.py-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for csbluegem.py-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61e5ebf91d5fa7e4f97fb8ca50d6a111b16d92b68ca5c34483d451d69de807a5
MD5 c340cd98ea3c29ab5f5001f412ffeb3f
BLAKE2b-256 9ed6e300c52b708f134c3269ba5c07a86455d5a8d312267a6e5ed121ee452900

See more details on using hashes here.

Provenance

The following attestation bundles were made for csbluegem.py-0.14.0-py3-none-any.whl:

Publisher: publish_release.yml on fretgfr/csbluegem.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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