{ "info": { "author": "Alexey Torgashin", "author_email": "support@uvviewsoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "pyPhpTree module\n================\n\nModule for Python 3. Tiny parser of PHP source code, which finds lines\nwith class/function/namespace/trait declarations. It reads PHP code only\ninside ```` tags (any count of fragments in one file), and\noutside of ``/* ... */`` and ``// ...`` comments, and outside of\nsingle/double-quoted strings (multi-line strings supported, escape\nbackslash supported), and outside of heredoc/herenow blocks.\n\nAPI\n===\n\nFunction ``get_headers(filename, lines)`` finds all entities, in given\n\"lines\" list, and gets dicts:\n\n::\n\n {\n 'line': int, # 0-based line index, where name found\n 'col': int, # 0-based position in line, where name found\n 'level': int, # 0-based level of item. each item of level K+1\n # is nested into (nearest upper) item of level K\n 'name': str, # name of entity\n # empty for anonymous funcs\n 'kind': str, # \"class\", \"function\", \"namespace\", \"trait\"\n }\n\nIt's generator (yield), so to get list, use ``list(get_headers(...))``.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Alexey-T/pyPhpTree", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyphptree", "package_url": "https://pypi.org/project/pyphptree/", "platform": "", "project_url": "https://pypi.org/project/pyphptree/", "project_urls": { "Homepage": "https://github.com/Alexey-T/pyPhpTree" }, "release_url": "https://pypi.org/project/pyphptree/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.3" }, "last_serial": 3961939, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "4d4bcfa4f25bd812a5624d1ce2f32539", "sha256": "fde22cb8fcba5631ebfaaf5607db9babeae482189375ffb5eeb1679970174254" }, "downloads": -1, "filename": "pyphptree-1.0.3.tar.gz", "has_sig": false, "md5_digest": "4d4bcfa4f25bd812a5624d1ce2f32539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9816, "upload_time": "2018-06-14T16:06:55", "url": "https://files.pythonhosted.org/packages/91/05/413deb711441dac205fd799b63b111790d88cc2e235306c5d98173d0a522/pyphptree-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4d4bcfa4f25bd812a5624d1ce2f32539", "sha256": "fde22cb8fcba5631ebfaaf5607db9babeae482189375ffb5eeb1679970174254" }, "downloads": -1, "filename": "pyphptree-1.0.3.tar.gz", "has_sig": false, "md5_digest": "4d4bcfa4f25bd812a5624d1ce2f32539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9816, "upload_time": "2018-06-14T16:06:55", "url": "https://files.pythonhosted.org/packages/91/05/413deb711441dac205fd799b63b111790d88cc2e235306c5d98173d0a522/pyphptree-1.0.3.tar.gz" } ] }