{ "info": { "author": "Gregg Gajic", "author_email": "gregg.gajic@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "integer_encoding\n================\nA simple python module that encodes integers into arbitrary-base element\nsequences.\n\nUsage\n~~~~~\n**Encoding**::\n\n >>> import integer_encoding\n >>> alphabet = 'abc123'\n >>> encode = integer_encoding.encoder(alphabet)\n >>> encode(0)\n ['a']\n >>> encode(1)\n ['b']\n >>> encode(2)\n ['c']\n >>> encode(6)\n ['b', 'a']\n >>> encode(1306)\n ['b', 'a', 'a', 'b', '2']\n >>> encode(1307)\n ['b', 'a', 'a', 'b', '3']\n\n**Decoding**::\n\n >>> import integer_encoding\n >>> decode = integer_encoding.decoder('abc123')\n >>> decode('a')\n 0\n >>> decode('b')\n 1\n >>> decode('c')\n 2\n >>> decode('ba')\n 6\n >>> decode('baab2')\n 1306\n >>> decode('baab3')\n 1307\n\nInstalling\n~~~~~~~~~~\nInstall from PyPI::\n\n $ pip install integer_encoding\n\nor you grab the source and run::\n\n $ python setup.py install\n\nTests\n~~~~~\nTo run the tests, first install tox_::\n\n $ pip install tox\n\nthen run `tox` from the project root directory::\n\n $ tox\n\n.. _tox: http://pypi.python.org/pypi/tox", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gg/integer_encoding", "keywords": null, "license": "UNLICENSE", "maintainer": null, "maintainer_email": null, "name": "integer_encoding", "package_url": "https://pypi.org/project/integer_encoding/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/integer_encoding/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gg/integer_encoding" }, "release_url": "https://pypi.org/project/integer_encoding/0.1/", "requires_dist": null, "requires_python": null, "summary": "A simple python module that encodes integers into arbitrary-base element sequences.", "version": "0.1" }, "last_serial": 751035, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ed576ed8addf01006f47506153cbe18d", "sha256": "fdae06dedfa388c070d26d06519bcbf065753dc0748196561809d7682d59eaa2" }, "downloads": -1, "filename": "integer_encoding-0.1.tar.gz", "has_sig": false, "md5_digest": "ed576ed8addf01006f47506153cbe18d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3468, "upload_time": "2011-05-05T00:15:57", "url": "https://files.pythonhosted.org/packages/e7/d2/7bc5561e2538305aa3393ef90b4a5a37833f71163ca48ca89efc2436e7cd/integer_encoding-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed576ed8addf01006f47506153cbe18d", "sha256": "fdae06dedfa388c070d26d06519bcbf065753dc0748196561809d7682d59eaa2" }, "downloads": -1, "filename": "integer_encoding-0.1.tar.gz", "has_sig": false, "md5_digest": "ed576ed8addf01006f47506153cbe18d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3468, "upload_time": "2011-05-05T00:15:57", "url": "https://files.pythonhosted.org/packages/e7/d2/7bc5561e2538305aa3393ef90b4a5a37833f71163ca48ca89efc2436e7cd/integer_encoding-0.1.tar.gz" } ] }