{ "info": { "author": "\u8c22\u4e1c\u5e73 Dongping XIE", "author_email": "dongping.xie.tud@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering" ], "description": "===============================\nmodparc\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/modparc.svg\n :target: https://pypi.python.org/pypi/modparc\n\n.. image:: https://img.shields.io/travis/xie-dongping/modparc.svg\n :target: https://travis-ci.org/xie-dongping/modparc\n\n.. image:: https://readthedocs.org/projects/modparc/badge/?version=latest\n :target: https://modparc.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/xie-dongping/modparc/shield.svg\n :target: https://pyup.io/repos/github/xie-dongping/modparc/\n :alt: Updates\n\n\nmodparc is a Modelica parser in Python based on parser combinator.\n\n\n* Free software: GNU General Public License v3\n* Source code: https://github.com/xie-dongping/modparc.\n* Documentation: https://modparc.readthedocs.io.\n\n.. contents::\n\nQuickstart\n----------\n\nInstall the package from PyPI:\n\n.. code-block:: bash\n\n $ pip install modparc\n\n\nTo parse a Modelica source file `\"your_modelica_file.mo\"`:\n\n.. code-block:: python\n\n import modparc\n model_definition = modparc.parse_file(\"your_modelica_file.mo\")\n\nTo list all the equations in the `model_definition` instance:\n\n.. code-block:: python\n\n all_equations = model_definition.search('Equation')\n for equation in all_equations:\n print(equation.code()) # The code of the equation as string\n\nTo get the name of the model loaded:\n\n.. code-block:: python\n\n print(model_definition.name()) # get the name of the stored class\n print(model_definition.class_type()) # get the type of the class\n\nFeatures\n--------\n\n* Experimentally parses Modelica Standard Library 3.2.1\n* Search element of a certain class\n\nKnown Issues\n------------\n\n* Handling tokenization of Q-IDENT and comments, which comes first?\n* Assertion syntax not defined in Modelica specification\n* Default recursion depth is not enough for long vector literals\n* Cyclic import is neccessary for the Modelica syntax definition\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\nThe test cases used code from the `ModelicaByExample library (MIT License by Michael Tiller)`_.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _`ModelicaByExample`: https://github.com/xogeny/ModelicaBook\n\n\n\n\n=======\nHistory\n=======\n\n0.1.5 (2016-10-22)\n------------------\n\n* First release on PyPI.\n\n0.2.0 (2016-10-22)\n------------------\n\n* Get names and types of the defintions\n* Roundtripping of the defintions\n\n\n", "description_content_type": null, "docs_url": "https://pythonhosted.org/modparc/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xie-dongping/modparc", "keywords": "modparc", "license": "GNU General Public License v3", "maintainer": "", "maintainer_email": "", "name": "modparc", "package_url": "https://pypi.org/project/modparc/", "platform": "", "project_url": "https://pypi.org/project/modparc/", "project_urls": { "Homepage": "https://github.com/xie-dongping/modparc" }, "release_url": "https://pypi.org/project/modparc/0.2.1/", "requires_dist": [ "funcparserlib" ], "requires_python": "", "summary": "A Modelica parser based on parser generator", "version": "0.2.1" }, "last_serial": 3166265, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "8c432d798586440560a761a86f45e663", "sha256": "e6730fabc12ce6688cb148996207b51a25a209696d5f3ff0a3dde03ba825f337" }, "downloads": -1, "filename": "modparc-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c432d798586440560a761a86f45e663", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5893, "upload_time": "2016-11-06T17:55:51", "url": "https://files.pythonhosted.org/packages/85/4c/516cf6ceda6316bcd63ded43ad43e93a3cd2b3e0822a214e03b496aaacc9/modparc-0.1.2-py2.py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "bd718bc074dd3c20ec7999d5c3b09ce0", "sha256": "53bc58493c13a345a90b359f2251a693c3679e73aca47d71787e2313faccb48c" }, "downloads": -1, "filename": "modparc-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd718bc074dd3c20ec7999d5c3b09ce0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5965, "upload_time": "2016-11-06T18:16:37", "url": "https://files.pythonhosted.org/packages/43/70/53a2c4eeef96e52d211a39e848adb956f88a836d67b5f6cb0e33a3113a08/modparc-0.1.5-py2.py3-none-any.whl" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "bce37bc4df2dd354479a74976c63bb63", "sha256": "a1a9c32086640f1813f844eae79c3a36c013400557d365e47b5f91e23b7e4674" }, "downloads": -1, "filename": "modparc-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bce37bc4df2dd354479a74976c63bb63", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16666, "upload_time": "2016-11-06T18:27:54", "url": "https://files.pythonhosted.org/packages/b6/5b/343681f114528d64bbac0031e4d340d21a976c13f03a32c0288317cc35d6/modparc-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bb9c1cebd9073976d5c6d48b0445c28e", "sha256": "15ef771540d4575e4704350871dc458cc9e9c6abcc27151c6fc2e05ead6ef36d" }, "downloads": -1, "filename": "modparc-0.1.6.tar.gz", "has_sig": false, "md5_digest": "bb9c1cebd9073976d5c6d48b0445c28e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21433, "upload_time": "2016-11-06T18:27:56", "url": "https://files.pythonhosted.org/packages/2e/ef/a2f6392deeec8831dfdddf5f0e155faddae481400c1742b687b72a0abc56/modparc-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "5962877c45f1c2c9f83e326997b6df91", "sha256": "9f0f583df0fdfdf6df4f791896bb7a0d90221f6104e877beb9986a3d77a113c6" }, "downloads": -1, "filename": "modparc-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5962877c45f1c2c9f83e326997b6df91", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17192, "upload_time": "2016-12-11T16:01:36", "url": "https://files.pythonhosted.org/packages/d0/2f/4ddb64b3079992f0319ae87bc8000d978d3e812c880db8f5c253d8dfdfe4/modparc-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db9761dee5403346b606dfd7f573d146", "sha256": "c61e9f232f583477bb2990cf055bf9f0489e8c58f076767bad4dcf2d592ceef5" }, "downloads": -1, "filename": "modparc-0.1.7.tar.gz", "has_sig": false, "md5_digest": "db9761dee5403346b606dfd7f573d146", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21971, "upload_time": "2016-12-11T16:01:39", "url": "https://files.pythonhosted.org/packages/e5/6c/0969bf14aa3ddcba63527f9d23c6aa66b26ab39ad8eb1c4f3fb07cc59e65/modparc-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a6eff9e0bd9748246691cb8a5bb8a58a", "sha256": "aa79a45c6342a24722e0414572b8da2a30423f28cd0aca9c404983df6077a3c6" }, "downloads": -1, "filename": "modparc-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a6eff9e0bd9748246691cb8a5bb8a58a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17103, "upload_time": "2016-12-11T20:35:52", "url": "https://files.pythonhosted.org/packages/bb/73/fa968211d8edb370d09a886334089a71e423f2d36f84263d5a35f723a767/modparc-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50dc6ffe42e32c7e755f3f4dc81395e6", "sha256": "5d83d80e9712eff543cd067908b3199cd5da16c9b6c28e115e41f1224331130e" }, "downloads": -1, "filename": "modparc-0.2.0.tar.gz", "has_sig": false, "md5_digest": "50dc6ffe42e32c7e755f3f4dc81395e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22137, "upload_time": "2016-12-11T20:35:53", "url": "https://files.pythonhosted.org/packages/c5/57/0bd281b524087a59c5dd7f0129195117f70760f02ae168f4887e41b541df/modparc-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9e125ab26fd04c74ef52d19b46b5882d", "sha256": "bb9a4ab0c940a1ff7c13ccdabf1181a945960f5786b9fc56c268a51dbe8044e2" }, "downloads": -1, "filename": "modparc-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e125ab26fd04c74ef52d19b46b5882d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17285, "upload_time": "2017-09-11T21:23:10", "url": "https://files.pythonhosted.org/packages/ce/07/9d41249e58dd0e6cc00495b762ecc80b660a6b6dbfefec717183f506006e/modparc-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "225cd2083b3d4d1f8ccb90395a2ae6ad", "sha256": "6c837f05965402fd508ad0d133313c098bb311176d8ea8eaf021372d3d76aa04" }, "downloads": -1, "filename": "modparc-0.2.1.tar.gz", "has_sig": false, "md5_digest": "225cd2083b3d4d1f8ccb90395a2ae6ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34509, "upload_time": "2017-09-11T21:23:11", "url": "https://files.pythonhosted.org/packages/53/80/05409bf0b468440496e43c450dd5bc2dd1f201fd8a1839510e5b95417b38/modparc-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e125ab26fd04c74ef52d19b46b5882d", "sha256": "bb9a4ab0c940a1ff7c13ccdabf1181a945960f5786b9fc56c268a51dbe8044e2" }, "downloads": -1, "filename": "modparc-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e125ab26fd04c74ef52d19b46b5882d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17285, "upload_time": "2017-09-11T21:23:10", "url": "https://files.pythonhosted.org/packages/ce/07/9d41249e58dd0e6cc00495b762ecc80b660a6b6dbfefec717183f506006e/modparc-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "225cd2083b3d4d1f8ccb90395a2ae6ad", "sha256": "6c837f05965402fd508ad0d133313c098bb311176d8ea8eaf021372d3d76aa04" }, "downloads": -1, "filename": "modparc-0.2.1.tar.gz", "has_sig": false, "md5_digest": "225cd2083b3d4d1f8ccb90395a2ae6ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34509, "upload_time": "2017-09-11T21:23:11", "url": "https://files.pythonhosted.org/packages/53/80/05409bf0b468440496e43c450dd5bc2dd1f201fd8a1839510e5b95417b38/modparc-0.2.1.tar.gz" } ] }