Skip to main content

An inspector of CSFloat

Project description

csfloat_inspector

A wheel that helps you get a cs2 item information with csfloat inspect API

Install

Install from pypi

$ pip install csfloat-inspector

Usage

Get data of an item

import asyncio
from csfloat_inspector import CSFloatInspector

inspector = CSFloatInspector()

async def main():
    print("[*] Inspecting item...")
    try:
        data = await inspector.inspect("steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198309889674A45731137503D190491363065250641")
        print(f"[*] Successfully retrieved data: {data}")
    except Exception as e:
        import traceback
        traceback.print_exc()
        print(f"[!] An error occurred: {e}")

if __name__ == "__main__":
    asyncio.run(main())

Get the image of the item

import asyncio
from csfloat_inspector import CSFloatInspector

inspector = CSFloatInspector()

async def main():
    print("[*] Fetching item image URL...")
    try:
        img_url = await inspector.getimg("steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198309889674A45731137503D190491363065250641")
        print(f"[*] Successfully retrieved image URL: {img_url}")
    except Exception as e:
        import traceback
        traceback.print_exc()
        print(f"[!] An error occurred: {e}")
        
if __name__ == "__main__":
    asyncio.run(main())

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

csfloat_inspector-1.1.0.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

csfloat_inspector-1.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file csfloat_inspector-1.1.0.tar.gz.

File metadata

  • Download URL: csfloat_inspector-1.1.0.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for csfloat_inspector-1.1.0.tar.gz
Algorithm Hash digest
SHA256 39007fa609c877b36ba8a08c61000f13c33c97c9078bf2d2f12a18a094a2554b
MD5 4753b5471b63a16d9617585a233a2245
BLAKE2b-256 333b86b4ef400307900bd119146950db76dfd3a226ce50003e7206ef8cb768d8

See more details on using hashes here.

File details

Details for the file csfloat_inspector-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for csfloat_inspector-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22463c303d5fd93cb1195634b0c1a0830e95a736a4b92c92365aed3bb5affc80
MD5 9ed66cc13a007f022d0a0ceb065a618e
BLAKE2b-256 42ed602c4c3956de1e1bcfb7a5dc1459277f8d438bd494fbdb473c88d23d8f81

See more details on using hashes here.

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