{ "info": { "author": "offish", "author_email": "overutilization@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# steam_community_market\n[![Version](https://img.shields.io/pypi/v/steam_community_market.svg)](https://pypi.org/project/steam_community_market/)\n[![License](https://img.shields.io/github/license/offish/steam_community_market.svg)](https://github.com/offish/steam_community_market/blob/master/LICENSE)\n[![Stars](https://img.shields.io/github/stars/offish/steam_community_market.svg)](https://github.com/offish/steam_community_market/stargazers)\n[![Issues](https://img.shields.io/github/issues/offish/steam_community_market.svg)](https://github.com/offish/steam_community_market/issues)\n[![Size]('https://img.shields.io/github/repo-size/offish/steam_community_market.svg)]()\n[![Discord](https://img.shields.io/discord/467040686982692865.svg)](https://discord.gg/t8nHSvA)\n
\n[![Steam Donate Button](https://img.shields.io/badge/donate-steam-green.svg)](https://steamcommunity.com/tradeoffer/new/?partner=293059984&token=0-l_idZR \"Support this project via Steam\")\n[![PayPal Donate Button](https://img.shields.io/badge/donate-paypal-blue.svg)](https://www.paypal.me/0ffish \"Support this project via PayPal\")\n\nEasily get item prices and volumes from the Steam Community Market using Python 3\n\n\n\nTable of Content\n================\n* [Installation](https://github.com/offish/steam_community_market#Installation)\n* [Usage](https://github.com/offish/steam_community_market#Usage)\n* [Methods](https://github.com/offish/steam_community_market#Methods)\n* [License](https://github.com/offish/steam_community_market#License)\n\nInstallation\n============\n```\npip install steam_community_market\n```\n\nUsage\n=====\n```python\nfrom steam_community_market.prices import Prices\n\nmarket = Prices('USD')\n```\n`'USD'` can either be `str` or `int`. Find the currencies supported [here](https://github.com/offish/steam_community_market/blob/master/steam_community_market/prices.py#L5).\n\n\n\nMethods\n=======\n### Get one item:\n\n**get_price(name: str, app_id: int)**\n\n```python\n>>> market.get_price('Prisma Case', 730)\n{'success': True, 'lowest_price': '$0.41', 'volume': '59,613', 'median_price': '$0.41'}\n```\n`name`: The name of an item how it appears on the Steam Community Market.\n\n`app_id`: The AppID of the item.\n\n### Get multiple items:\n\n**get_prices(names: list, app_id: int)**\n\n```python\n>>> items = ['Prisma Case', 'Danger Zone Case', 'Supermega Case']\n>>> market.get_prices(items, 730)\n{\n 'Prisma Case': {\n 'success': True, \n 'lowest_price': '$0.39', \n 'volume': '59,613', \n 'median_price': '$0.41'\n },\n\n 'Danger Zone Case': {\n 'success': True, \n 'lowest_price': '$0.20', \n 'volume': '56,664', \n 'median_price': '$0.22'\n },\n\n 'Supermega Case': {\n 'success': False\n }\n}\n```\n`names`: A list of items how each item name (market_hash_name) appears on the Steam Community Market.\n\n`app_id`: The AppID of the items. \n\n**All of the items listed in `names` must have the same `app_id`.**\n\n\n\nLicense\n=======\nMIT License\n\nCopyright (c) 2019 [offish](overutilization@gmail.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/offish/steam_community_market", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "steam-community-market", "package_url": "https://pypi.org/project/steam-community-market/", "platform": "", "project_url": "https://pypi.org/project/steam-community-market/", "project_urls": { "Homepage": "https://github.com/offish/steam_community_market" }, "release_url": "https://pypi.org/project/steam-community-market/1.0.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Easily get item prices and volumes from the Steam Community Market using Python 3", "version": "1.0.0" }, "last_serial": 5930605, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d1de3d7ec74631903da36ff93dd0f0e5", "sha256": "2b051f9732a6360fa4bb6137590e67cbbfd873cf1e3fc93c36326aff41bb7342" }, "downloads": -1, "filename": "steam_community_market-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d1de3d7ec74631903da36ff93dd0f0e5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3964, "upload_time": "2019-10-04T23:20:57", "url": "https://files.pythonhosted.org/packages/72/9d/e3e633bc8e4b4105336198faecaf7a0ee30a8ff0a6f8e0efbdd3f91ca578/steam_community_market-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1de3d7ec74631903da36ff93dd0f0e5", "sha256": "2b051f9732a6360fa4bb6137590e67cbbfd873cf1e3fc93c36326aff41bb7342" }, "downloads": -1, "filename": "steam_community_market-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d1de3d7ec74631903da36ff93dd0f0e5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3964, "upload_time": "2019-10-04T23:20:57", "url": "https://files.pythonhosted.org/packages/72/9d/e3e633bc8e4b4105336198faecaf7a0ee30a8ff0a6f8e0efbdd3f91ca578/steam_community_market-1.0.0.tar.gz" } ] }