Metadata-Version: 2.4
Name: cs2cap
Version: 3.0.0
Summary: CS2Cap market data API client
Home-page: https://cs2cap.com
Author: CS2Cap
Author-email: CS2Cap <support@cs2c.app>
License: MIT
Project-URL: Homepage, https://cs2cap.com
Project-URL: Repository, https://github.com/CS2Cap/cs2cap-python
Project-URL: Documentation, https://docs.cs2c.app
Keywords: OpenAPI,OpenAPI-Generator,CS2Cap
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: urllib3<3.0.0,>=2.1.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: home-page
Dynamic: license-file

# CS2Cap Python SDK

Typed Python client for the [CS2Cap](https://cs2cap.com) market-data API — CS2 item prices,
buy orders, sales history, and analytics across dozens of providers.

[![PyPI](https://img.shields.io/pypi/v/cs2cap)](https://pypi.org/project/cs2cap/)

## Install

```bash
pip install cs2cap
```

## Quickstart

Set your API key in the environment. You can generate one from the Account page after
verifying your email address at [cs2cap.com](https://cs2cap.com).

```bash
export CS2C_API_KEY="sk_your_key_here"
```

Verify the install with a small catalog request:

```python
import os

import cs2cap

configuration = cs2cap.Configuration(access_token=os.environ["CS2C_API_KEY"])

with cs2cap.ApiClient(configuration) as client:
    api = cs2cap.ItemsApi(client)
    response = api.list_items(q="AK-47", rarity_name="Covert", limit=5)

    print(client.sanitize_for_serialization(response))
```

## Documentation

Full endpoint reference, guides, and tier details are at
[docs.cs2cap.com](https://docs.cs2cap.com). See the
[changelog](https://docs.cs2cap.com/changelog) for API and SDK updates.

## About this package

This SDK is generated from the public OpenAPI spec (`openapi.json`, included in this repo).
If you hit a bug in the generated client, please open an issue or PR on this repo — fixes are
applied in the generator pipeline rather than as hand-patches to the published package.
