{ "info": { "author": "Guilherme Gondim", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Python Software Foundation License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "baseconv\n========\n\n.. image:: https://badge.fury.io/py/python-baseconv.svg\n :target: http://badge.fury.io/py/python-baseconv\n\n.. image:: https://travis-ci.org/semente/python-baseconv.svg?branch=master\n :target: https://travis-ci.org/semente/python-baseconv\n\n.. image:: https://coveralls.io/repos/semente/python-baseconv/badge.png?branch=master\n :target: https://coveralls.io/r/semente/python-baseconv?branch=master\n\nCopyright (c) 2010, 2011, 2012, 2015, 2017 Guilherme Gondim.\nAll rights reserved.\n\nCopyright (c) 2009 Simon Willison.\nAll rights reserved.\n\nCopyright (c) 2002 Drew Perttula.\nAll rights reserved.\n\n**Description:**\n Python module to convert numbers from base 10 integers to base X strings and back again.\n**Author(s):**\n Drew Perttula, Simon Willison, Guilherme Gondim\n**License:**\n Python Software Foundation License version 2\n**Project website:**\n https://github.com/semente/python-baseconv\n**References:**\n http://www.djangosnippets.org/snippets/1431/ ;\n http://code.activestate.com/recipes/111286/\n\nInstall and Usage Instructions\n------------------------------\n\nYou can use ``pip`` to install ``baseconv`` module::\n\n $ pip install python-baseconv\n\nExample usage::\n\n >>> from baseconv import base2, base16, base36, base56, base58, base62, base64\n >>> base2.encode(1234)\n '10011010010'\n >>> base2.decode('10011010010')\n '1234'\n >>> base64.encode(100000000000000000000000000000000000L)\n '4q9XSiTDWYk7Z-W00000'\n >>> base64.decode('4q9XSiTDWYk7Z-W00000')\n '100000000000000000000000000000000000'\n\n >>> from baseconv import BaseConverter\n >>> myconv = BaseConverter('MyOwnAlphabet0123456')\n >>> repr(myconv)\n \"BaseConverter('MyOwnAlphabet0123456', sign='-')\"\n >>> myconv.encode('1234')\n 'wy1'\n >>> myconv.decode('wy1')\n '1234'\n >>> myconv.encode(-1234)\n '-wy1'\n >>> myconv.decode('-wy1')\n '-1234'\n >>> altsign = BaseConverter('abcd-', sign='$')\n >>> repr(altsign)\n \"BaseConverter('abcd-', sign='$')\"\n >>> altsign.encode(-1000000)\n '$cc-aaaaaa'\n >>> altsign.decode('$cc-aaaaaa')\n '-1000000'\n\n\nLicense information\n-------------------\n\nSee the file \"LICENSE\" for terms & conditions for usage, and a\nDISCLAIMER OF ALL WARRANTIES.\n\nThis baseconv distribution contains no GNU General Public Licensed (GPLed)\ncode, just like prior baseconv distributions.\n\nAll trademarks referenced herein are property of their respective\nholders.\n\nDjango\n------\n\nThe Django Project includes a copy of this module on ``django.utils.baseconv``.\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/semente/python-baseconv/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/semente/python-baseconv", "keywords": "converter numbers math", "license": "Python Software Foundation License", "maintainer": "", "maintainer_email": "", "name": "python-baseconv", "package_url": "https://pypi.org/project/python-baseconv/", "platform": "", "project_url": "https://pypi.org/project/python-baseconv/", "project_urls": { "Download": "https://github.com/semente/python-baseconv/releases", "Homepage": "https://github.com/semente/python-baseconv" }, "release_url": "https://pypi.org/project/python-baseconv/1.2.2/", "requires_dist": null, "requires_python": "", "summary": "Convert numbers from base 10 integers to base X strings and back again.", "version": "1.2.2" }, "last_serial": 5100559, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "b2f644a6580341155f8569b0931e9327", "sha256": "ba28036a020c9c7ffde31c534a46b99bf15be4de8a4b0d1a732348edc234a341" }, "downloads": -1, "filename": "python-baseconv-1.1.1.tar.gz", "has_sig": false, "md5_digest": "b2f644a6580341155f8569b0931e9327", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2826, "upload_time": "2013-08-23T20:50:10", "url": "https://files.pythonhosted.org/packages/17/68/f2345fb4db0be12883a59226d69c41c8d52b29c71aff00e00cc3b2ad132b/python-baseconv-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "c9916e89b9eca99051db5ee6f9e24175", "sha256": "809a29ba63897e9c4abc2cabb510da7fcb2a83e7f19b5e7b20535cb6bdb54cee" }, "downloads": -1, "filename": "python-baseconv-1.1.2.tar.gz", "has_sig": false, "md5_digest": "c9916e89b9eca99051db5ee6f9e24175", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4291, "upload_time": "2013-08-23T21:08:46", "url": "https://files.pythonhosted.org/packages/ff/4a/51ccc6947a62c4b395fe2f83e9f583cccd87ae1bc631173ee32da648692a/python-baseconv-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "5935cfbd84fdbf8921eb60b3aba108e0", "sha256": "d29961e6e8bc5851a1d9ecbb13703f0d70991dc86350839efaaac34067da4a7e" }, "downloads": -1, "filename": "python-baseconv-1.1.3.tar.gz", "has_sig": false, "md5_digest": "5935cfbd84fdbf8921eb60b3aba108e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4384, "upload_time": "2015-08-03T14:21:43", "url": "https://files.pythonhosted.org/packages/08/05/5d8c6a2604a576813d299ec294b27e9044fbd08dc649bcf9485299be0c0d/python-baseconv-1.1.3.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "44bdb0fe98e4bff4a418ad3c4cb934a5", "sha256": "b12c75330660a06af546fea1e4f06fe4ca8147753ca69589171b119f6f834012" }, "downloads": -1, "filename": "python-baseconv-1.2.0.tar.gz", "has_sig": false, "md5_digest": "44bdb0fe98e4bff4a418ad3c4cb934a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4970, "upload_time": "2017-04-02T19:01:18", "url": "https://files.pythonhosted.org/packages/35/f8/d26d4694852e3052c4f65d26750f54c62b63202d0ce6cd90abb9b0269418/python-baseconv-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "d36390b9ea62ea64079580954b31615b", "sha256": "1b98b11d0d1c00bf1165d62b0d183c8d2d496ae5baaa0991c0d4ffef079772d6" }, "downloads": -1, "filename": "python-baseconv-1.2.1.tar.gz", "has_sig": false, "md5_digest": "d36390b9ea62ea64079580954b31615b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4933, "upload_time": "2018-04-11T15:55:30", "url": "https://files.pythonhosted.org/packages/14/e3/cabd1fe242a3b0d85d47272ceee24daf92b85decd5cb485d47a336abb6f7/python-baseconv-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "af36e57309031a6f6dfca61d1598f0d8", "sha256": "0539f8bd0464013b05ad62e0a1673f0ac9086c76b43ebf9f833053527cd9931b" }, "downloads": -1, "filename": "python-baseconv-1.2.2.tar.gz", "has_sig": false, "md5_digest": "af36e57309031a6f6dfca61d1598f0d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4929, "upload_time": "2019-04-04T19:28:57", "url": "https://files.pythonhosted.org/packages/33/d0/9297d7d8dd74767b4d5560d834b30b2fff17d39987c23ed8656f476e0d9b/python-baseconv-1.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af36e57309031a6f6dfca61d1598f0d8", "sha256": "0539f8bd0464013b05ad62e0a1673f0ac9086c76b43ebf9f833053527cd9931b" }, "downloads": -1, "filename": "python-baseconv-1.2.2.tar.gz", "has_sig": false, "md5_digest": "af36e57309031a6f6dfca61d1598f0d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4929, "upload_time": "2019-04-04T19:28:57", "url": "https://files.pythonhosted.org/packages/33/d0/9297d7d8dd74767b4d5560d834b30b2fff17d39987c23ed8656f476e0d9b/python-baseconv-1.2.2.tar.gz" } ] }