Skip to main content

An unofficial, asynchronous Python API wrapper for the CSFloat marketplace.

Project description

csfloat_client

An unofficial, lightweight Python API wrapper for the CSFloat marketplace.


PyPI version Python versions Documentation


csfloat_client provides a modern, easy-to-use interface built on async/await
to interact with all CSFloat marketplace features directly from Python. It is
kept up-to-date with the CSFloat API and includes thorough documentation for
every function.

This library is centered around a single Client class, which is initialized
with an API key and grants access to all CSFloat activities and information,
including listings, offers, buy orders and more.

Installation

pip install csfloat_client

Quick Start

import asyncio
from csfloat_client import Client

async def main():
    async with Client(api_key="YOUR_API_KEY") as client:
        listings = await client.get_listings(sort_by='best_deal', min_ref_qty=20)
        print(f"{listings[0].item.item_name} - {listings[0].price}")

asyncio.run(main())

Features

  • Fully asynchronous (built on aiohttp)
  • Validated response models via pydantic
  • Typed (py.typed) for full IDE/mypy support
  • Thorough documentation generated with pdoc

Documentation

Full documentation: https://edlzitrone.github.io/csfloat-client/

License

This project is licensed under the MIT License.

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_client-0.1.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

csfloat_client-0.1.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file csfloat_client-0.1.1.tar.gz.

File metadata

  • Download URL: csfloat_client-0.1.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for csfloat_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 81e8b934fd46b601d6dfb0b51d150e744f012d7df272006699e9148c166b444c
MD5 fff35324c78e5557d02eaca3a06a564a
BLAKE2b-256 938f15f33f8f0f3fd2020b267cd2f5038743c5e68b99eb0abf4fc987a7004bbe

See more details on using hashes here.

File details

Details for the file csfloat_client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: csfloat_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for csfloat_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b804f02a5e0781044985ef042c246cb530c00f35b8af3112147fcc83796d649a
MD5 e791f340e6fd504a5b9632165d711c76
BLAKE2b-256 45f3078e71cf530ebe59e353785799a8afffd775463214175d9d6a48e8098956

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