{ "info": { "author": "Artur Barseghyan", "author_email": "artur.barseghyan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Text Processing" ], "description": "===============================================\nrebus\n===============================================\nGenerate base64-encoded strings consisting of alphanumeric symbols only.\n\nWhy did I make this app?\n===============================================\nRecently I have been working on implementing of a `Google Authenticator `_ app for Plone (which I \ndid for my beloved company - `Goldmund, Wyldebeast & Wunderliebe `_).\n\nFor generating of a bar code image, I needed a base32 encoded string. While Android\ndevices could perfectly scan all bar-code image that I would generate, Apple devices\nwould raise errors on bar code images which were generated using strings that contain\none or more \"=\" characters.\n\nThe solution found was to add a number of \\\\n at the end of the string to be encoded.\n\nIf you happen to experience similar problems, you know what to do.\n\nPrerequisites\n===============================================\n- Python 2.6.8+, 2.7.+, 3.3.+\n\nInstallation\n===============================================\nInstall latest stable version from PyPI:\n\n $ pip install rebus\n\n...or latest stable version from GitHub:\n\n $ pip install -e git+https://github.com/barseghyanartur/rebus@stable#egg=rebus\n\n...or latest stable version from BitBucket:\n\n $ pip install -e hg+https://bitbucket.org/barseghyanartur/rebus@stable#egg=rebus\n\n\nUsage and examples\n===============================================\nUsing `rebus` is damn easy. Whenever you would want to use ``base64.b32encode``\nor ``base64.b64encode``, replace `base64` with `rebus`.\n\nEncoding\n-----------------------------------------------\nRequired imports\n\n>>> import rebus\n\nb32encode string\n\n>>> rebus.b32encode('abcdefg')\n'MFRGGZDFMZTQUCQK'\n\nb64encode string\n\n>>> rebus.b64encode('abcdefg')\n'YWJjZGVmZwoK'\n\nurlsafe_b64encode\n\n>>> rebus.urlsafe_b64encode('abcdefg')\n'YWJjZGVmZwoK'\n\nDecoding\n-----------------------------------------------\nIt's possible to decode string, encoded with `rebus` to their original values.\n\nRequired imports\n\n>>> import rebus\n\nb32decode string\n\n>>> rebus.b32decode('MFRGGZDFMZTQUCQK')\n'abcdefg'\n\nb64decode string\n\n>>> rebus.b64decode('YWJjZGVmZwoK')\n'abcdefg'\n\nurlsafe_b64encode\n\n>>> rebus.urlsafe_b64decode('YWJjZGVmZwoK')\n'abcdefg'\n\nLicense\n===============================================\nGPL 2.0/LGPL 2.1\n\nSupport\n===============================================\nFor any issues contact me at the e-mail given in the `Author` section.\n\nAuthor\n===============================================\nArtur Barseghyan ", "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/barseghyanartur/rebus/", "keywords": "b32encode,b64encode,b32decode,b64decode", "license": "GPL 2.0/LGPL 2.1", "maintainer": null, "maintainer_email": null, "name": "rebus", "package_url": "https://pypi.org/project/rebus/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rebus/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/barseghyanartur/rebus/" }, "release_url": "https://pypi.org/project/rebus/0.2/", "requires_dist": null, "requires_python": null, "summary": "rebus - Generate base64-encoded strings consisting of alphanumeric symbols only.", "version": "0.2" }, "last_serial": 3472155, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0e63558105edbbb7cb4c7e220e41e419", "sha256": "3f71d990832429c7d9d90dcab286b00dc771afa2c937926b62984e1964f93ccb" }, "downloads": -1, "filename": "rebus-0.1.tar.gz", "has_sig": false, "md5_digest": "0e63558105edbbb7cb4c7e220e41e419", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19991, "upload_time": "2013-12-20T00:12:19", "url": "https://files.pythonhosted.org/packages/7a/f2/8c0d9cac27ad4de2d1e5f69822a05a5a5d473471e707c37aa06ffd496b8b/rebus-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "880c140bd93e91ba4fbef2cdb279a313", "sha256": "9ca846a99019803fd52c0c34a12c5ee6598b763f956f105c503de738b6a0e4e5" }, "downloads": -1, "filename": "rebus-0.2.tar.gz", "has_sig": false, "md5_digest": "880c140bd93e91ba4fbef2cdb279a313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20879, "upload_time": "2013-12-20T19:03:25", "url": "https://files.pythonhosted.org/packages/66/98/ea0b70cd99617dfa501f1218aec0e1b42e4a4294c43e4d3533975e8d2f35/rebus-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "880c140bd93e91ba4fbef2cdb279a313", "sha256": "9ca846a99019803fd52c0c34a12c5ee6598b763f956f105c503de738b6a0e4e5" }, "downloads": -1, "filename": "rebus-0.2.tar.gz", "has_sig": false, "md5_digest": "880c140bd93e91ba4fbef2cdb279a313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20879, "upload_time": "2013-12-20T19:03:25", "url": "https://files.pythonhosted.org/packages/66/98/ea0b70cd99617dfa501f1218aec0e1b42e4a4294c43e4d3533975e8d2f35/rebus-0.2.tar.gz" } ] }