{ "info": { "author": "Marcin Bachry", "author_email": "hegel666@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "php2json\n========\n\n.. image:: https://travis-ci.org/mbachry/php2json.svg?branch=master\n :alt: Build status\n :target: https://travis-ci.org/mbachry/php2json\n\nA small library that aims to provide a fast way of decoding PHP\nserialization format. Use it if you need to migrate large amount of\nPHP data and performance is essential.\n\nThe library provides only one function::\n\n >>> import php2json\n >>> php2json.php2json(b's:3:\"foo\";')\n b'\"foo\"'\n\nIt's goal is to convert PHP serializer string into JSON string as fast\nas possible. The assumption is that JSON decoders (such as standard\njson module or `ujson`_) are much better optimized than\n`phpserialize`_.\n\n.. _ujson: https://pypi.python.org/pypi/ujson\n.. _phpserialize: https://pypi.python.org/pypi/phpserialize/\n\nHere's a simple benchmark where I pit phpserialize against php2json\ncombined with ujson and json::\n\n phpserialize: 6.60s\n php2json+ujson: 0.15s\n php2json+json: 0.19s\n speedup (ujson): 4337%\n speedup (json): 3485%\n\nInstallation\n------------\n\nInstall with::\n\n pip install php2json\n\nTests\n-----\n\nRun test with::\n\n pip install tox\n make clean\n tox .\n\nBenchmark\n---------\n\nRun benchmark with::\n\n pip install -r requirements-test.txt\n make bench\n\nLimitations\n-----------\n\nFew limitations apply:\n\n* only deserialization is possible\n\n* PHP objects are not supported\n\n* behaviour is undefined in presence of unicode strings\n\n* input data must adhere to JSON standards, most notably: array keys\n must be strings or values easily convertible to strings (such as\n integers)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mbachry/php2json", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "php2json", "package_url": "https://pypi.org/project/php2json/", "platform": "", "project_url": "https://pypi.org/project/php2json/", "project_urls": { "Homepage": "https://github.com/mbachry/php2json" }, "release_url": "https://pypi.org/project/php2json/0.2/", "requires_dist": null, "requires_python": "", "summary": "Convert PHP serializer strings to JSON", "version": "0.2" }, "last_serial": 3256987, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a2d4e6e87eeb19150e52e6e4efa04850", "sha256": "b30559d5aa2491e97a1f12ecaa843acc4109d9e277ff7d38da62aac2f7aaf150" }, "downloads": -1, "filename": "php2json-0.1-cp27-cp27mu-manylinux1_x86_64.whl", "has_sig": true, "md5_digest": "a2d4e6e87eeb19150e52e6e4efa04850", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 33065, "upload_time": "2017-10-17T13:41:15", "url": "https://files.pythonhosted.org/packages/2d/fb/44a52b8c65d2a317225833a6fc50237a64f65e48049ab4b45ea5dd1548f9/php2json-0.1-cp27-cp27mu-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "e3eda202ed78f1771301010c0844b645", "sha256": "79c390a0701e5823c3cf2f8e528257a4348ac2895b59e51afc6a527b168a1a89" }, "downloads": -1, "filename": "php2json-0.1-cp36-cp36m-manylinux1_x86_64.whl", "has_sig": true, "md5_digest": "e3eda202ed78f1771301010c0844b645", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 35376, "upload_time": "2017-10-17T13:41:18", "url": "https://files.pythonhosted.org/packages/ca/23/b5914d0999b282a393dbffb5c93fb5a806678ebd995350b50ef1f657397c/php2json-0.1-cp36-cp36m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "ff9cea2fea8e39edf80c57724c8392fc", "sha256": "dbde408f6abf5c4be5b8cfad2e83cebe89c52a9c39bb437d68fc30ae77c3a379" }, "downloads": -1, "filename": "php2json-0.1.tar.gz", "has_sig": true, "md5_digest": "ff9cea2fea8e39edf80c57724c8392fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3778, "upload_time": "2017-10-17T13:40:57", "url": "https://files.pythonhosted.org/packages/59/f7/9810a2bfe947c47fcf4940db9b2fe76d182ad313bd2eba7156e4db7ff9c2/php2json-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "588d1c83e64399fc202301090965869c", "sha256": "707029466175d608afc4c1ac074d71e8f4e08798bd6cb9390bc621b939432662" }, "downloads": -1, "filename": "php2json-0.2-cp27-cp27mu-manylinux1_x86_64.whl", "has_sig": true, "md5_digest": "588d1c83e64399fc202301090965869c", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 33105, "upload_time": "2017-10-17T14:33:10", "url": "https://files.pythonhosted.org/packages/fd/f0/ebc89fd1fbd115b8defd3ff6bce8e634f2912bd571d0a23cfd0a68bece15/php2json-0.2-cp27-cp27mu-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "1d9350c1b0658f25171c42564b4ae09a", "sha256": "68c4d5fce14c5f4168bd854f6a9236c2afd2321566f18f69a61d87753943f811" }, "downloads": -1, "filename": "php2json-0.2-cp36-cp36m-manylinux1_x86_64.whl", "has_sig": true, "md5_digest": "1d9350c1b0658f25171c42564b4ae09a", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 35404, "upload_time": "2017-10-17T14:33:12", "url": "https://files.pythonhosted.org/packages/a8/30/79813746456829526d107af5c8d99d567a6cba16233e2b4b6f4461b3156e/php2json-0.2-cp36-cp36m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "f5c2c7bce608db5913d9b67f0003350c", "sha256": "581c370c4b745e26c487e695b724b85d85041aff80bff234b9542bd8d8317c01" }, "downloads": -1, "filename": "php2json-0.2.tar.gz", "has_sig": true, "md5_digest": "f5c2c7bce608db5913d9b67f0003350c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3773, "upload_time": "2017-10-17T14:32:51", "url": "https://files.pythonhosted.org/packages/04/60/5f22822ef526a48c6166edf1c346463fb6ec8dd314189604a4df5ff5878d/php2json-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "588d1c83e64399fc202301090965869c", "sha256": "707029466175d608afc4c1ac074d71e8f4e08798bd6cb9390bc621b939432662" }, "downloads": -1, "filename": "php2json-0.2-cp27-cp27mu-manylinux1_x86_64.whl", "has_sig": true, "md5_digest": "588d1c83e64399fc202301090965869c", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 33105, "upload_time": "2017-10-17T14:33:10", "url": "https://files.pythonhosted.org/packages/fd/f0/ebc89fd1fbd115b8defd3ff6bce8e634f2912bd571d0a23cfd0a68bece15/php2json-0.2-cp27-cp27mu-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "1d9350c1b0658f25171c42564b4ae09a", "sha256": "68c4d5fce14c5f4168bd854f6a9236c2afd2321566f18f69a61d87753943f811" }, "downloads": -1, "filename": "php2json-0.2-cp36-cp36m-manylinux1_x86_64.whl", "has_sig": true, "md5_digest": "1d9350c1b0658f25171c42564b4ae09a", "packagetype": "bdist_wheel", "python_version": "cp36", "requires_python": null, "size": 35404, "upload_time": "2017-10-17T14:33:12", "url": "https://files.pythonhosted.org/packages/a8/30/79813746456829526d107af5c8d99d567a6cba16233e2b4b6f4461b3156e/php2json-0.2-cp36-cp36m-manylinux1_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "f5c2c7bce608db5913d9b67f0003350c", "sha256": "581c370c4b745e26c487e695b724b85d85041aff80bff234b9542bd8d8317c01" }, "downloads": -1, "filename": "php2json-0.2.tar.gz", "has_sig": true, "md5_digest": "f5c2c7bce608db5913d9b67f0003350c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3773, "upload_time": "2017-10-17T14:32:51", "url": "https://files.pythonhosted.org/packages/04/60/5f22822ef526a48c6166edf1c346463fb6ec8dd314189604a4df5ff5878d/php2json-0.2.tar.gz" } ] }