Skip to main content

A Python wrapper for the csfloat API

Project description

csfloat.py

An API wrapper for the CSFloat API written in Python.

Installing

Python 3.10 or higher is required

To install the library, you can just run the following command:

# Linux/macOS
$ python3 -m pip install -U csfloat.py

# Windows
> py -3 -m pip install -U csfloat.py

To install the development version, do the following:

$ git clone https://github.com/PaxxPatriot/csfloat.py.git
$ cd csfloat.py
$ python3 -m pip install -U .

Quick Example

import asyncio

import csfloat

async def main():
  client = csfloat.Client()
  # Set your personal API key, which you can get from https://csfloat.com/profile -> Developers -> + New Key
  client.set_api_key(api_key="YOUR API KEY HERE")

  # Get all listed CS2 items on csfloat.com and print the name to the console
  listings = await client.fetch_all_listings()
  async for listing in listings:
    print(listing.item.name)

if __name__ == "__main__":
    asyncio.run(main())

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_py-0.3.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

csfloat_py-0.3.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file csfloat_py-0.3.0.tar.gz.

File metadata

  • Download URL: csfloat_py-0.3.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for csfloat_py-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8327624e5945a1f05dbc33b6a28581bb714dd5c4a980c8b3d31007e5562d3f91
MD5 55127591b6fcd83a25c6a1ae5379fb03
BLAKE2b-256 cad4047d4fc0a4accfccaa1f54574bc0d439041f30af352ad5e7f92d8c7073db

See more details on using hashes here.

File details

Details for the file csfloat_py-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: csfloat_py-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for csfloat_py-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83130cc256306c69f068faf7acc977b249e0299f85a5baaf02a0c1a10ab9e529
MD5 76406d106835ff3c1369ec80d47aa105
BLAKE2b-256 ca341708b32fb14dbbf3685659931e618139196d8b934e7aa8ac1fec7f892335

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