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.0.tar.gz (15.9 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.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csfloat_client-0.1.0.tar.gz
  • Upload date:
  • Size: 15.9 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.0.tar.gz
Algorithm Hash digest
SHA256 34da5f4b5f85474bb88f3ca9f720516c137a7bcc7ed44a9611a04a31eacf0cb9
MD5 00caa92790ba2ead2ad72cf149c23abc
BLAKE2b-256 aa7b6a9276adf53c3089e761e8526d138b56e69e31ec984faba34b689e241779

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csfloat_client-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d866398c39ba749e506cf6966e84008cadf69e3027bfc1fe53e9266fd762002c
MD5 30f667ce8ff256194ee506978e938313
BLAKE2b-256 6150a73df6c30c07e468f6fd0b56bea4072a4d0faeb9c24397158029bd0dd789

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