csfloat.py


Namecsfloat.py JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryA Python wrapper for the csfloat API
upload_time2025-02-02 10:28:06
maintainerNone
docs_urlNone
authorPaxxPatriot
requires_python>=3.10
licenseNone
keywords csfloat counter-strike 2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```bash
# 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:
```bash
$ git clone https://github.com/PaxxPatriot/csfloat.py.git
$ cd csfloat.py
$ python3 -m pip install -U .
```

Quick Example
--------------

```Python
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())
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "csfloat.py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "csfloat, Counter-Strike 2",
    "author": "PaxxPatriot",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/b8/47/55fd53dca0164ad3373cc947574a4b092fd71157570e73e6ef83513dfdb3/csfloat_py-0.2.0.tar.gz",
    "platform": null,
    "description": "# csfloat.py\nAn API wrapper for the CSFloat API written in Python.\n\nInstalling\n----------\n\n**Python 3.10 or higher is required**\n\nTo install the library, you can just run the following command:\n\n```bash\n# Linux/macOS\n$ python3 -m pip install -U csfloat.py\n\n# Windows\n> py -3 -m pip install -U csfloat.py\n```\n\nTo install the development version, do the following:\n```bash\n$ git clone https://github.com/PaxxPatriot/csfloat.py.git\n$ cd csfloat.py\n$ python3 -m pip install -U .\n```\n\nQuick Example\n--------------\n\n```Python\nimport asyncio\n\nimport csfloat\n\nasync def main():\n  client = csfloat.Client()\n  # Set your personal API key, which you can get from https://csfloat.com/profile -> Developers -> + New Key\n  client.set_api_key(api_key=\"YOUR API KEY HERE\")\n\n  # Get all listed CS2 items on csfloat.com and print the name to the console\n  listings = await client.fetch_all_listings()\n  async for listing in listings:\n    print(listing.item.name)\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python wrapper for the csfloat API",
    "version": "0.2.0",
    "project_urls": {
        "Issues": "https://github.com/PaxxPatriot/csfloat.py/issues",
        "Repository": "https://github.com/PaxxPatriot/csfloat.py.git"
    },
    "split_keywords": [
        "csfloat",
        " counter-strike 2"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0e0eecfe727912f517b8c95cab690771d3491976c5cf81c15c4ebe6a04b5931b",
                "md5": "790b2f218dd4ff394766903e64bb6332",
                "sha256": "d056de56037a7537f8f4e26a884130920120f45968a9bc2fa7dadbc1b124b906"
            },
            "downloads": -1,
            "filename": "csfloat.py-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "790b2f218dd4ff394766903e64bb6332",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 20155,
            "upload_time": "2025-02-02T10:28:04",
            "upload_time_iso_8601": "2025-02-02T10:28:04.636000Z",
            "url": "https://files.pythonhosted.org/packages/0e/0e/ecfe727912f517b8c95cab690771d3491976c5cf81c15c4ebe6a04b5931b/csfloat.py-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b84755fd53dca0164ad3373cc947574a4b092fd71157570e73e6ef83513dfdb3",
                "md5": "ef2feedc6842a0b53e4ca183c94ae4d7",
                "sha256": "8a9792ffd8c55e88f0f00b3bb35f440f531fd904d5a8da7b954aca59dd063aae"
            },
            "downloads": -1,
            "filename": "csfloat_py-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ef2feedc6842a0b53e4ca183c94ae4d7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 13509,
            "upload_time": "2025-02-02T10:28:06",
            "upload_time_iso_8601": "2025-02-02T10:28:06.361537Z",
            "url": "https://files.pythonhosted.org/packages/b8/47/55fd53dca0164ad3373cc947574a4b092fd71157570e73e6ef83513dfdb3/csfloat_py-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-02 10:28:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PaxxPatriot",
    "github_project": "csfloat.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "csfloat.py"
}
        
Elapsed time: 1.58353s