{ "info": { "author": "Nyaundi Brian", "author_email": "ndieksman@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "# PHP to PYTHON\n\n\nA python script to convert simple php code to python,\nIt just converts the basic syntax\nIt is the one i use in the conversion mpg25/Instagram-API in PHP to danleyb2/Instagram-API in PYTHON \n\n## usage\n```\n $ python php2python.py -h\n \n usage: php2python.py [-h] -s SCRIPT [-o]\n \n PHP to PYTHON syntax converter.\n \n optional arguments:\n -h, --help show this help message and exit\n -s SCRIPT, --script SCRIPT\n Path to PHP script\n -o, --overwrite Overwrite Python script if exists\n\n\n```\n\n```\n $ python php2python.py -s test_scripts/Caption.php\n \n Converting: test_scripts/Caption.php. Output file will be: test_scripts/Caption.py\n # Remove opening and closing to self.\n # convert :: to .\n # delete all }\n # delete namespace|require_once|include_once\n # convert protected $var to self.var = None then move into __init__\n # convert public|protected function to def\n # add `self` to function signatures\n # classes not children to extend `object`\n # convert $ to ''\n # convert ; to ''\n # convert new to ''\n Converted: test_scripts/Caption.php. to: test_scripts/Caption.py. { Go on, Proof Check :) }\n\n \n```\n\n```\n $ python php2python.py -s test_scripts/Caption.php\n Sorry, A python Script test_scripts/Caption.py already exist, use -o to overwrite.\n \n```", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/danleyb2/php2python/tarball/0.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/danleyb2/php2python", "keywords": "php,python,convert", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "convert2php", "package_url": "https://pypi.org/project/convert2php/", "platform": "any", "project_url": "https://pypi.org/project/convert2php/", "project_urls": { "Download": "https://github.com/danleyb2/php2python/tarball/0.0.1", "Homepage": "https://github.com/danleyb2/php2python" }, "release_url": "https://pypi.org/project/convert2php/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "A python script to convert simple php code to python", "version": "0.0.1" }, "last_serial": 2607000, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "17c1ada8cb3bba5b27354cb42546b6d1", "sha256": "7548199fcdaeab8b1e16a5ed6e75b78cfb876b54b9bd003e00ad08730b2ee88b" }, "downloads": -1, "filename": "convert2php-0.0.1.tar.gz", "has_sig": false, "md5_digest": "17c1ada8cb3bba5b27354cb42546b6d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3764, "upload_time": "2017-01-30T16:36:55", "url": "https://files.pythonhosted.org/packages/30/ba/afea59e34b8493c3318251a299c4fbb4aa132981b1f1a29478a9b5f69183/convert2php-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17c1ada8cb3bba5b27354cb42546b6d1", "sha256": "7548199fcdaeab8b1e16a5ed6e75b78cfb876b54b9bd003e00ad08730b2ee88b" }, "downloads": -1, "filename": "convert2php-0.0.1.tar.gz", "has_sig": false, "md5_digest": "17c1ada8cb3bba5b27354cb42546b6d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3764, "upload_time": "2017-01-30T16:36:55", "url": "https://files.pythonhosted.org/packages/30/ba/afea59e34b8493c3318251a299c4fbb4aa132981b1f1a29478a9b5f69183/convert2php-0.0.1.tar.gz" } ] }