{ "info": { "author": "Szymon Py\u017calski", "author_email": "zefciu ", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# bubblepy\nBubble Babble Binary Data Encoding - Python library\n\nSee http://bohwaz.net/archives/web/Bubble_Babble.html for details.\n\nOriginal Copyright 2011 BohwaZ - http://bohwaz.net/ \nCopyleft 2015 europa - https://github.com/eur0pa\nCopyright 2016 zefciu - https://github.com/zefciu\n\nBased on :\n- Bubble Babble spec: http://wiki.yak.net/589/Bubble_Babble_Encoding.txt\n- Nitrxgen PHP script: http://www.nitrxgen.net/bubblebabble.php\n- Bubble Babble encoder for Go: http://codereview.appspot.com/181122\n- Bubble Babble class for PHP: https://github.com/bohwaz/bubblebabble\n\nUse:\n\n```pyshell\n >>> from bubblepy import BubbleBabble\n >>>\n >>> # Encoding simple ASCII strings\n >>> bb = BubbleBabble()\n >>> bb.encode('Pineapple')\n 'xigak-nyryk-humil-bosek-sonax'\n >>> bb.decode('xigak-nyryk-humil-bosek-sonax')\n b'Pineapple'\n >>>\n >>> # To encode non-ASCI data you must encode to bytestring\n >>> bb.encode('Pchn\u0105\u0107 w t\u0119 \u0142\u00f3d\u017a je\u017ca lub o\u015bm skrzy\u0144 fig')\n Traceback (most recent call last):\n (...)\n ValueError: Non-ASCII character found. Encode your data\n >>> bb.encode('Pchn\u0105\u0107 w t\u0119 \u0142\u00f3d\u017a je\u017ca lub o\u015bm skrzy\u0144 fig'.encode('utf-8'))\n xikik-cocor-subur-fucam-dycem-lymyk-lecyn-nacen-riras-gycud-bepak-cicur-pocym-gyxex\n >>> bb.decode('xikik-cocor-subur-fucam-dycem-lymyk-lecyn-nacen-riras-gycud-bepak-cicur-pocym-gyxex').decode('utf-8')\n 'Za\u017c\u00f3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144'\n >>>\n >>> # You can use Bubble Babble to encode e.g. uuids\n >>> import uuid\n >>> u1 = uuid.uuid4()\n >>> bb.encode(u1.bytes)\n 'xezeg-tetor-pybyt-vuboc-gapop-boceg-todup-banyk-voxux'\n >>> u2 = uuid.UUID(bytes=bb.decode('xezeg-tetor-pybyt-vuboc-gapop-boceg-todup-banyk-voxux'))\n >>> u1 == u2\n True\n >>>\n >>> # The default alphabet can be overridden\n >>> # Consonants should be 17-letter long and vowels 6-letter long\n >>> bb2 = BubbleBabble(consonants=u'\u0431\u0433\u0434\u0436\u0437\u043a\u043b\u043c\u043d\u043f\u0440\u0441\u0442\u0444\u0445\u0446\u0447', vowels=u'\u0430\u0438\u043e\u0443\u044b\u044d')\n >>> bb2.encode(b'0123456789')\n '\u0447\u0438\u0442\u0430\u0436-\u0433\u0430\u0442\u0438\u0436-\u0436\u044d\u0444\u0438\u0436-\u043a\u044b\u0444\u043e\u0436-\u043c\u0443\u0445\u0443\u0436-\u043f\u043e\u0447\u043e\u0447'\n)\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "bubblepy", "package_url": "https://pypi.org/project/bubblepy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bubblepy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/bubblepy/1.0/", "requires_dist": null, "requires_python": null, "summary": "Bubble Babble Binary Data Encoding", "version": "1.0" }, "last_serial": 2009805, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "ef72e72643855673e3c1d2fc6e0ee7ca", "sha256": "ce0fd7a56f3a9030364ae240720121b131b3ce716e8273804b396594f37376e6" }, "downloads": -1, "filename": "bubblepy-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ef72e72643855673e3c1d2fc6e0ee7ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5447, "upload_time": "2016-03-16T10:39:57", "url": "https://files.pythonhosted.org/packages/09/30/83bd76cac30343ac36bf922dbe69d944332cf718419af1ec7ae8e8f69e6c/bubblepy-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e5283dc9da190b4079947432dd6ed5a", "sha256": "367b8016c15e0186ca7b75a4ce40fdc5bd63e3a821bf2308a4d4d1a0f3f2579e" }, "downloads": -1, "filename": "bubblepy-1.0.tar.bz2", "has_sig": true, "md5_digest": "2e5283dc9da190b4079947432dd6ed5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3888, "upload_time": "2016-03-16T10:41:53", "url": "https://files.pythonhosted.org/packages/c3/cc/440c9b881c955e4bcc57ab42f620572e549dff5de0c3edde333c652cc740/bubblepy-1.0.tar.bz2" }, { "comment_text": "", "digests": { "md5": "cc483fb2667738c23608816155b8faca", "sha256": "d2453eeeb103bbcfab35a1b4361484868ed113c93ee6d9f633a4ce6cacaff65d" }, "downloads": -1, "filename": "bubblepy-1.0.zip", "has_sig": true, "md5_digest": "cc483fb2667738c23608816155b8faca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7088, "upload_time": "2016-03-16T10:41:58", "url": "https://files.pythonhosted.org/packages/96/2b/66bbb2e347c0eb9c81ee46c791f7d9e1265d905a51326e0fd8348a09179f/bubblepy-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef72e72643855673e3c1d2fc6e0ee7ca", "sha256": "ce0fd7a56f3a9030364ae240720121b131b3ce716e8273804b396594f37376e6" }, "downloads": -1, "filename": "bubblepy-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ef72e72643855673e3c1d2fc6e0ee7ca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5447, "upload_time": "2016-03-16T10:39:57", "url": "https://files.pythonhosted.org/packages/09/30/83bd76cac30343ac36bf922dbe69d944332cf718419af1ec7ae8e8f69e6c/bubblepy-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e5283dc9da190b4079947432dd6ed5a", "sha256": "367b8016c15e0186ca7b75a4ce40fdc5bd63e3a821bf2308a4d4d1a0f3f2579e" }, "downloads": -1, "filename": "bubblepy-1.0.tar.bz2", "has_sig": true, "md5_digest": "2e5283dc9da190b4079947432dd6ed5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3888, "upload_time": "2016-03-16T10:41:53", "url": "https://files.pythonhosted.org/packages/c3/cc/440c9b881c955e4bcc57ab42f620572e549dff5de0c3edde333c652cc740/bubblepy-1.0.tar.bz2" }, { "comment_text": "", "digests": { "md5": "cc483fb2667738c23608816155b8faca", "sha256": "d2453eeeb103bbcfab35a1b4361484868ed113c93ee6d9f633a4ce6cacaff65d" }, "downloads": -1, "filename": "bubblepy-1.0.zip", "has_sig": true, "md5_digest": "cc483fb2667738c23608816155b8faca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7088, "upload_time": "2016-03-16T10:41:58", "url": "https://files.pythonhosted.org/packages/96/2b/66bbb2e347c0eb9c81ee46c791f7d9e1265d905a51326e0fd8348a09179f/bubblepy-1.0.zip" } ] }