Metadata-Version: 2.4
Name: csfloat-inspector
Version: 1.0.1
Summary: An inspector of CSFloat
Project-URL: Homepage, https://github.com/GamerNoTitle/csfloat-inspector
Project-URL: Issues, https://github.com/GamerNoTitle/csfloat-inspector/issues
Project-URL: Source, https://github.com/GamerNoTitle/csfloat-inspector
Author-email: GamerNoTitle <GamerNoTitle@outlook.com>
License: AGPL-3.0-or-later
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Requires-Dist: httpx>=0.28.1
Description-Content-Type: text/markdown

# csfloat_inspector

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

## Usage

### Get data of an item

```python
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

```python
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())
```