Skip to content

EdlZitrone/csfloat-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An unofficial, lightweight Python API wrapper for https://csfloat.com. Built asynchronous to interact with all marketplace features directly from Python.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages