{ "info": { "author": "Bamiji", "author_email": "banji@banjislab.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "PyLoRDeckCodes\n============\nA python implementation for the Legends of Runeterra deck encoder/decoder, [originally written in C# by Riot Games](https://github.com/RiotGames/LoRDeckCodes).\n\n\n## Installation\n```\npip install pylordeckcodes\n```\n\n## Usage\n```\nfrom pylordeckcodes import CardCodeAndCount, get_deck_from_code, get_code_from_deck\n```\n\n`CardCodeAndCount` objects simply have 2 fields: `card_code` and `count`, in that order.\n\n### Decoding\n`get_deck_from_code(code_string, return_type=\"objects\")`\n\nThe return type defaults to a list of `CardCodeAndCount` objects.\n\nOther possible options are:\n\n`\"strings\"`: returns a list of strings in the form `\"c:00XX000\"`, where `\"c\"` is the count and `\"00XX000\"` represents the card code.\n`\"string\"`: returns a single string of formatted counts and codes, separated by new lines. For example, `\"3:01DE002\\n3:01PZ040\\n2:01NX042\"`\n\n### Encoding\n`get_code_from_deck(deck)`\n\nReturns a regular deck code string, without Base32 padding and such.\n\n`deck` can either be:\n* A list of `CardCodeAndCount` objects\n* A list of strings in the form `\"c:00XX000\"`, where `\"c\"` is the count and `\"00XX000\"` represents the card code.\n* A multi-line string of formatted counts and codes. For example,\n```\n'''3:01DE002\n3:01PZ040\n2:01NX042'''\n```\n\n\n", "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/Bamiji/PyLoRDeckCodes", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pylordeckcodes", "package_url": "https://pypi.org/project/pylordeckcodes/", "platform": "", "project_url": "https://pypi.org/project/pylordeckcodes/", "project_urls": { "Homepage": "https://github.com/Bamiji/PyLoRDeckCodes" }, "release_url": "https://pypi.org/project/pylordeckcodes/1.0.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "A python implementation for the Legends of Runeterra deck encoder/decoder, originally written in C# by Riot Games.", "version": "1.0.0" }, "last_serial": 5999584, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9698b12a576860b4169ab675546d7d06", "sha256": "8a0059dbb8973df2220d246ec8d69afc9254f2ed5630e06fd23ded7daa0f8d3a" }, "downloads": -1, "filename": "pylordeckcodes-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9698b12a576860b4169ab675546d7d06", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6162, "upload_time": "2019-10-19T11:13:36", "url": "https://files.pythonhosted.org/packages/44/ed/b376698c9cf7b5b899c067b550022d9cdac00df5ae4a0d42dbcd7e7280f5/pylordeckcodes-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9edbd56e32077707e4a89227dd3218d7", "sha256": "f6bd43951c6828d1193adebe99eb550078c6cf56001c32beeac6e2b8c1ad22e2" }, "downloads": -1, "filename": "pylordeckcodes-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9edbd56e32077707e4a89227dd3218d7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4558, "upload_time": "2019-10-19T11:13:38", "url": "https://files.pythonhosted.org/packages/9a/39/0b2d343c0a1822bbdb2079545292691f867f6044caad95f532fc9cbdc6d7/pylordeckcodes-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9698b12a576860b4169ab675546d7d06", "sha256": "8a0059dbb8973df2220d246ec8d69afc9254f2ed5630e06fd23ded7daa0f8d3a" }, "downloads": -1, "filename": "pylordeckcodes-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9698b12a576860b4169ab675546d7d06", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6162, "upload_time": "2019-10-19T11:13:36", "url": "https://files.pythonhosted.org/packages/44/ed/b376698c9cf7b5b899c067b550022d9cdac00df5ae4a0d42dbcd7e7280f5/pylordeckcodes-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9edbd56e32077707e4a89227dd3218d7", "sha256": "f6bd43951c6828d1193adebe99eb550078c6cf56001c32beeac6e2b8c1ad22e2" }, "downloads": -1, "filename": "pylordeckcodes-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9edbd56e32077707e4a89227dd3218d7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4558, "upload_time": "2019-10-19T11:13:38", "url": "https://files.pythonhosted.org/packages/9a/39/0b2d343c0a1822bbdb2079545292691f867f6044caad95f532fc9cbdc6d7/pylordeckcodes-1.0.0.tar.gz" } ] }