{ "info": { "author": "Daniel Quinn", "author_email": "code@danielquinn.org", "bugtrack_url": null, "classifiers": [ "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: PHP", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP" ], "description": "python-php\n==========\n\nMaking some of those PHP-only functions available to Python\n\nSometimes you want to write a Python script for a project written in PHP.\nFor the most part, this is easy, but for a few key things, PHP breaks with\nthe standard and does things in a its own way. For these cases, you can use\nthis module to compensate.\n\n\nPhp.http_build_query()\n----------------------\n\nThis was ripped shamelessly from a `PHP forum`_ and ported to Python:\n\nEssentially, it's a (hopefully perfect) replica of PHP's\n`http_build_query()`_ that allows you to pass multi-dimensional arrays to a\nPHP-managed URL via POST or GET.\n\n.. _PHP forum: http://www.codingforums.com/showthread.php?t=72179\n.. _http_build_query(): http://php.net/manual/en/function.http-build-query.php\n\n\nPhp.parse_ini_file()\n--------------------\n\nA hacked-together attempt at making an .ini file parser that's compatible with\nthe \"standards\" that PHP follows in its parse_ini_file() function. Among the\nhandy features included are:\n\n* List notation (``varname[] = value``)\n* Associative array notation (``varname[key] = value``)\n* Removal of wrapping doublequotes (``varname = \"stuff\"`` becomes ``varname = stuff``)\n\nYou can turn off the doublequote removal with ``stripquotes=False``\n\n\nExample\n.......\n::\n\n from php.php import Php\n config = Php.parse_ini_file(\"config.ini\")\n print config[\"sectionName\"][\"keyName\"]", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/danielquinn/python-php", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/danielquinn/python-php", "keywords": null, "license": "AGPLv3", "maintainer": null, "maintainer_email": null, "name": "php", "package_url": "https://pypi.org/project/php/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/php/", "project_urls": { "Download": "https://github.com/danielquinn/python-php", "Homepage": "https://github.com/danielquinn/python-php" }, "release_url": "https://pypi.org/project/php/1.2.0/", "requires_dist": null, "requires_python": null, "summary": "Handle some of the strange standards in PHP projects", "version": "1.2.0" }, "last_serial": 2265887, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "cee5e8dd6505c3520aa2a2198f42efa8", "sha256": "549ddf5438a85b2cb6a55eda10fb6b25f98734aca761adf03be0e949d5e63ef6" }, "downloads": -1, "filename": "php-1.0.tar.gz", "has_sig": false, "md5_digest": "cee5e8dd6505c3520aa2a2198f42efa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1820, "upload_time": "2009-07-28T03:56:22", "url": "https://files.pythonhosted.org/packages/67/8a/d8398a4f46c8a66141ae3c6b63a33e7a453b694abd00c7afe82d607d3c15/php-1.0.tar.gz" } ], "1.1": [], "1.1.2": [ { "comment_text": "", "digests": { "md5": "2ad91ae4749113e37f9707c22b6e306a", "sha256": "b3f568b8250ca231eba78d2af60d1a393f8b4169f5751215be5707e2e90c0f84" }, "downloads": -1, "filename": "php-1.1.2.tar.gz", "has_sig": false, "md5_digest": "2ad91ae4749113e37f9707c22b6e306a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3117, "upload_time": "2015-02-06T12:00:22", "url": "https://files.pythonhosted.org/packages/46/eb/cc5bb0924606762ce7bcc2f102f757f5b9a55429f29ee758571aef368766/php-1.1.2.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "07a40b4d50fd7e04c2839cf21bc35e5d", "sha256": "0ace10ac0db6fe15b6e63ef4d8250e4027e99d179c845bd9dbe0a3443c45499e" }, "downloads": -1, "filename": "php-1.1.4.tar.gz", "has_sig": false, "md5_digest": "07a40b4d50fd7e04c2839cf21bc35e5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2124, "upload_time": "2015-05-26T10:36:32", "url": "https://files.pythonhosted.org/packages/e8/e9/57e17e85efeb0086dc22e2591770f1404ab2538c34f119dae8ed6cb666ce/php-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "3f4f969aed0b12b9a3318f4c2cb809f1", "sha256": "140547c259413296ce1e374298ff0dbd889db5f6307bbcdad558a234418e30ee" }, "downloads": -1, "filename": "php-1.1.5.tar.gz", "has_sig": false, "md5_digest": "3f4f969aed0b12b9a3318f4c2cb809f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2123, "upload_time": "2015-05-26T10:38:12", "url": "https://files.pythonhosted.org/packages/31/29/4514c149a0e67a9565bdd921866ab7d2d584850ac7f70c285e099b3c7c00/php-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "2d2dfe317821c9fde648495a9af031fd", "sha256": "d4241c5d27612cf64192a4eea6c77357a3eb44a0605267ee533eda487ec6aebd" }, "downloads": -1, "filename": "php-1.1.6.tar.gz", "has_sig": false, "md5_digest": "2d2dfe317821c9fde648495a9af031fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3193, "upload_time": "2015-05-26T10:43:03", "url": "https://files.pythonhosted.org/packages/e4/35/9e9bb62049d686eeedef5f10e099c0f6189273e43d9d8fc590b0b827d5c2/php-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "48ec91d1f805aaf34a3362d76e8df612", "sha256": "9fb5cc3633d0115d5019190e64855bee5fa20674cbb37fee8bf75d12099eba49" }, "downloads": -1, "filename": "php-1.1.7.tar.gz", "has_sig": false, "md5_digest": "48ec91d1f805aaf34a3362d76e8df612", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3168, "upload_time": "2015-05-26T10:50:58", "url": "https://files.pythonhosted.org/packages/7f/4c/05bf991400094947d37c76456bf10be2dfaaa6148601969af2f3b90b4bf9/php-1.1.7.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "58be45a244c87ca7f4734e6207e34f05", "sha256": "9766513a897114c581087f8e25360a766f5bd290da3be554fc4a33f13d3c6385" }, "downloads": -1, "filename": "php-1.2.0.tar.gz", "has_sig": false, "md5_digest": "58be45a244c87ca7f4734e6207e34f05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3906, "upload_time": "2016-08-06T18:28:16", "url": "https://files.pythonhosted.org/packages/30/6c/9e5f7f8e2784b44ee845f1ccb06cd1db7c8153a9196ec59424d8e5e8d326/php-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58be45a244c87ca7f4734e6207e34f05", "sha256": "9766513a897114c581087f8e25360a766f5bd290da3be554fc4a33f13d3c6385" }, "downloads": -1, "filename": "php-1.2.0.tar.gz", "has_sig": false, "md5_digest": "58be45a244c87ca7f4734e6207e34f05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3906, "upload_time": "2016-08-06T18:28:16", "url": "https://files.pythonhosted.org/packages/30/6c/9e5f7f8e2784b44ee845f1ccb06cd1db7c8153a9196ec59424d8e5e8d326/php-1.2.0.tar.gz" } ] }