{ "info": { "author": "Leonid Runyshkin", "author_email": "runyshkin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "steamfiles\n==========\n\n.. image:: https://badge.fury.io/py/steamfiles.svg\n :target: http://badge.fury.io/py/steamfiles\n :alt: Latest version\n\n.. image:: https://travis-ci.org/leovp/steamfiles.svg?branch=master\n :target: https://travis-ci.org/leovp/steamfiles\n :alt: Travis-CI\n\n.. image:: https://coveralls.io/repos/github/leovp/steamfiles/badge.svg\n :target: https://coveralls.io/github/leovp/steamfiles\n :alt: Coverage\n\n| Python library for parsing the most common Steam file formats.\n| The library has a familiar JSON-like interface: ``load()`` / ``loads()`` for loading the data,\n| and ``dump()`` / ``dumps()`` for saving the data back to the file.\n\nFormat support\n--------------\n\n+-------------+-------+-------+\n| | Read | Write |\n+-------------+-------+-------+\n| acf | **+** | **+** |\n+-------------+-------+-------+\n| appinfo.vdf | **+** | **+** |\n+-------------+-------+-------+\n| Manifest | **+** | **+** |\n+-------------+-------+-------+\n\nQuickstart\n----------\n\n`steamfiles` requires Python 3.3+\n\nInstall the latest stable version:\n\n::\n\n pip install steamfiles\n\nImport a module for your desired format:\n::\n\n # Use one of these, or all at once!\n from steamfiles import acf\n from steamfiles import appinfo\n from steamfiles import manifest\n\nEasily load data, modify it and dump back:\n::\n\n with open('appinfo.vdf', 'rb') as f:\n data = appinfo.load(f)\n \n # Calculate the total size of all apps.\n total_size = sum(app['size'] for app in data.values())\n print(total_size)\n \n # Downgrade a change number for all apps.\n for app in data.values():\n app['change_number'] -= 1\n \n with open('new_appinfo.vdf', 'wb') as f:\n appinfo.dump(data, f)\n\nCaution: all formats are parsed into `dict` by default, so the order of data is very likely not the same.\nAs I'm not sure how Steam and related tools deal with rearranged data, pass an `OrderedDict` class to the `wrapper` parameter if you plan to write data back and use it later:\n::\n\n from collection import OrderedDict\n data = acf.load(f, wrapper=OrderedDict)\n # works with other formats as well\n\nDocumentation\n-------------\n\n`ACF format overview `_\n\nMore in progress\u2026\n\nTODO\n----\n\n- [\u2713] ACF support\n- [\u2713] appinfo.vdf support (Binary VDF)\n- [\u2713] Manifest support\n- [?] packageinfo.vdf (Another binary VDF)\n- [?] UserGameStats (achievements)\n- [?] Text VDF files (are they actually ACF?)\n\nLicense\n-------\n\n`steamfiles` is distributed under the terms of the MIT license.\n\nSee the bundled `LICENSE `_ file for more details.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leovp/steamfiles", "keywords": "steam files valve format parse appinfo vdf acf manifest", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "steamfiles", "package_url": "https://pypi.org/project/steamfiles/", "platform": "any", "project_url": "https://pypi.org/project/steamfiles/", "project_urls": { "Homepage": "https://github.com/leovp/steamfiles" }, "release_url": "https://pypi.org/project/steamfiles/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Python library for parsing the most common Steam file formats.", "version": "0.1.3" }, "last_serial": 3026376, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f9f7839c58d62851eab9e8f07f6b1855", "sha256": "85c0bf5b9c6a9f9b8baf7a2506c788df86e736b62360017b7f7d26941396144c" }, "downloads": -1, "filename": "steamfiles-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f9f7839c58d62851eab9e8f07f6b1855", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7901, "upload_time": "2016-05-12T13:44:34", "url": "https://files.pythonhosted.org/packages/e1/a9/d5d6e04a132642f2a06a5fee2bd2be1ad788055ed1a44d2c3271d08f7981/steamfiles-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "933caa737e62b942c8107c54d364f9ae", "sha256": "f844cf8c54cb31bdd4ec7d1a32314a47cd53fe35f8fedeab7245fe810b1c8246" }, "downloads": -1, "filename": "steamfiles-0.1.1.tar.gz", "has_sig": false, "md5_digest": "933caa737e62b942c8107c54d364f9ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7954, "upload_time": "2016-05-12T13:57:56", "url": "https://files.pythonhosted.org/packages/6a/48/018169f470667f4c9d01b50495e6bfbe0c65a2fc8ff4a53c0e1de634ccce/steamfiles-0.1.1.tar.gz" } ], "0.1.2": [], "0.1.3": [ { "comment_text": "", "digests": { "md5": "359f5ced14433bdb57e74bf935d168f3", "sha256": "ac4fe4866481850032f6bf4543387a8ef1b08bfca208919ba37071a4c5a788d4" }, "downloads": -1, "filename": "steamfiles-0.1.3.tar.gz", "has_sig": false, "md5_digest": "359f5ced14433bdb57e74bf935d168f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10661, "upload_time": "2017-07-16T09:58:13", "url": "https://files.pythonhosted.org/packages/47/c0/fd94c8dacbe9f3762ddb21e6a52f5042def002f786b5cc5eb873412ad245/steamfiles-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "359f5ced14433bdb57e74bf935d168f3", "sha256": "ac4fe4866481850032f6bf4543387a8ef1b08bfca208919ba37071a4c5a788d4" }, "downloads": -1, "filename": "steamfiles-0.1.3.tar.gz", "has_sig": false, "md5_digest": "359f5ced14433bdb57e74bf935d168f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10661, "upload_time": "2017-07-16T09:58:13", "url": "https://files.pythonhosted.org/packages/47/c0/fd94c8dacbe9f3762ddb21e6a52f5042def002f786b5cc5eb873412ad245/steamfiles-0.1.3.tar.gz" } ] }