{ "info": { "author": "Anne Mulhern", "author_email": "amulhern@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "A Parser for a D-Bus Signature\n==============================\n\nA parser for a dbus signature.\n\nIntroduction\n------------\n\nThis module contains a parser for dbus signatures constructed using the\npyparsing library (http://pyparsing.wikispaces.com/).\n\nThe grammar follows the informal specifications at\nhttps://dbus.freedesktop.org/doc/dbus-specification.html.\nThis grammar is a very simple one, parsable by an LL(1) parser.\n\nThe grammar has undergone significant testing using the Hypothesis testing\nlibrary (http://hypothesis.works/).\n\nUsage and Implementation Hints\n------------------------------\n\nUsage of the library to verify that a string is a signature is fairly\nstraightforward::\n\n >>> from dbus_signature_pyparsing import Parser\n >>> parser = Parser()\n >>> parser.PARSER.parseString(\"a(qy)\", parseAll=True)\n\nIf parseString() does not raise a pyparsing exception, the argument string\nis a valid signature.\n\nNote that the empty string is a valid signature. Thus, it is important to\nrequire that the parser parse the entire string by setting the parseAll\nparameter to True. If parseAll is False, which is the default, the parser\ncan always parse the empty string, and every string will be parsed and verified\nto be a valid signature.\n\nThe Parser object exposes all its sub-parsers as instance attributes.\nThe PARSER attribute is the top-level parser, suitable for parsing general\nsignatures. The COMPLETE attribute parses what is defined in the\ninformal specification as a \"single complete type\". The CODE attribute is\nequivalent to the specification's \"type code\".\n\nThe parser is easily used either by delegation or by inheritance. Each\nsub-parser attribute is a ParserElement; consequently each sub-parser supports\nthe addParseAction() method. To customize the basic parser to return a\nparticular value as a result of having parsed a signature invoke the\naddParseAction() method on each appropriate sub-parser with an appropriately\nchosen method. The modified parser should then return the desired value when\nthe parseString() method is invoked on a valid signature string.\nFor further assistance, consult pyparsing's extensive documentation at\nhttp://pyparsing.wikispaces.com/ and https://pythonhosted.org/pyparsing/.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "dbus-signature-pyparsing", "package_url": "https://pypi.org/project/dbus-signature-pyparsing/", "platform": "Linux", "project_url": "https://pypi.org/project/dbus-signature-pyparsing/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/dbus-signature-pyparsing/0.3/", "requires_dist": null, "requires_python": null, "summary": "dbus signature parser", "version": "0.3" }, "last_serial": 2404020, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "1ade8f3fe56fcb38e64c3f602c7da5d8", "sha256": "16565a7ae107fd9cdbbbe792453e2b52622dd7a140b3311eda97557800ddb383" }, "downloads": -1, "filename": "dbus-signature-pyparsing-0.2.tar.gz", "has_sig": false, "md5_digest": "1ade8f3fe56fcb38e64c3f602c7da5d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8819, "upload_time": "2016-09-30T15:18:39", "url": "https://files.pythonhosted.org/packages/ae/4b/492c3e0cdcbf88855e31a34a84df4385087f6cb3bd743886188dea811f25/dbus-signature-pyparsing-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "a1c0af9717634c14bb670c551aa7e81f", "sha256": "8676dc2479e566d8a80f7f82f7dc9b5a94d7b8d81b454b6664fa4cec85859686" }, "downloads": -1, "filename": "dbus-signature-pyparsing-0.3.tar.gz", "has_sig": false, "md5_digest": "a1c0af9717634c14bb670c551aa7e81f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8586, "upload_time": "2016-10-17T13:12:39", "url": "https://files.pythonhosted.org/packages/14/9c/33aa7bf855a7c27f72d8c511a5d41916da0ad90f329a5b604716fb1e7462/dbus-signature-pyparsing-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a1c0af9717634c14bb670c551aa7e81f", "sha256": "8676dc2479e566d8a80f7f82f7dc9b5a94d7b8d81b454b6664fa4cec85859686" }, "downloads": -1, "filename": "dbus-signature-pyparsing-0.3.tar.gz", "has_sig": false, "md5_digest": "a1c0af9717634c14bb670c551aa7e81f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8586, "upload_time": "2016-10-17T13:12:39", "url": "https://files.pythonhosted.org/packages/14/9c/33aa7bf855a7c27f72d8c511a5d41916da0ad90f329a5b604716fb1e7462/dbus-signature-pyparsing-0.3.tar.gz" } ] }