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.2.tar.gz (16.1 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.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csfloat_client-0.1.2.tar.gz
  • Upload date:
  • Size: 16.1 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.2.tar.gz
Algorithm Hash digest
SHA256 16638b501e6e8d3604483a9e58bc8e8da9d813d7a1d9e74fcb99955b5aec9d3d
MD5 22cab0e18b7b0a13ce7e936cd96ca18d
BLAKE2b-256 55b78f1c1c524dd7afe23ce0005faa9236ebe53a3082dd8646b42dd0feb9affe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csfloat_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b82e5af5115f8f5511d138c1c9edacae0cad3e6b745987d6cb43b5c731c1c7
MD5 d1e680e71c61b37b80c273cf542280a8
BLAKE2b-256 e98f57f3e7bf9a622f466de25e8c1f4cf8d55cc5fdfce2a1a140507dc16bf8fa

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