An unofficial, lightweight Python API wrapper for the CSFloat marketplace.
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.
pip install csfloat_clientimport 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())- Fully asynchronous (built on
aiohttp) - Validated response models via
pydantic - Typed (
py.typed) for full IDE/mypy support - Thorough documentation generated with
pdoc
Full documentation: https://edlzitrone.github.io/csfloat-client/
This project is licensed under the MIT License.