{"id":18933351,"url":"https://github.com/synap5e/pyparsing","last_synced_at":"2025-07-06T16:02:14.138Z","repository":{"id":12697115,"uuid":"15369488","full_name":"synap5e/pyparsing","owner":"synap5e","description":"A pyparsing git mirror of http://sourceforge.net/p/pyparsing/code/HEAD/tree/","archived":false,"fork":false,"pushed_at":"2014-02-06T02:50:38.000Z","size":692,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T14:09:10.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synap5e.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-22T03:05:42.000Z","updated_at":"2018-05-30T22:21:30.000Z","dependencies_parsed_at":"2022-09-10T22:31:34.556Z","dependency_job_id":null,"html_url":"https://github.com/synap5e/pyparsing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/synap5e/pyparsing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synap5e%2Fpyparsing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synap5e%2Fpyparsing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synap5e%2Fpyparsing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synap5e%2Fpyparsing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synap5e","download_url":"https://codeload.github.com/synap5e/pyparsing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synap5e%2Fpyparsing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261512685,"owners_count":23170177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:54:14.935Z","updated_at":"2025-07-06T16:02:14.120Z","avatar_url":"https://github.com/synap5e.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"====================================\nPyParsing -- A Python Parsing Module\n====================================\n\nIntroduction\n============\n\r\nThe pyparsing module is an alternative approach to creating and executing \r\nsimple grammars, vs. the traditional lex/yacc approach, or the use of \r\nregular expressions.  The pyparsing module provides a library of classes \r\nthat client code uses to construct the grammar directly in Python code.\r\n\r\nHere is a program to parse \"Hello, World!\" (or any greeting of the form \r\n\"\u003csalutation\u003e, \u003caddressee\u003e!\"):\r\n\r\n    from pyparsing import Word, alphas\r\n    greet = Word( alphas ) + \",\" + Word( alphas ) + \"!\"\r\n    hello = \"Hello, World!\"\r\n    print hello, \"-\u003e\", greet.parseString( hello )\r\n\r\nThe program outputs the following:\r\n\r\n    Hello, World! -\u003e ['Hello', ',', 'World', '!']\r\n\r\nThe Python representation of the grammar is quite readable, owing to the \r\nself-explanatory class names, and the use of '+', '|' and '^' operator \r\ndefinitions.\r\n\r\nThe parsed results returned from parseString() can be accessed as a \r\nnested list, a dictionary, or an object with named attributes.\r\n\r\nThe pyparsing module handles some of the problems that are typically \r\nvexing when writing text parsers:\r\n- extra or missing whitespace (the above program will also handle \r\n  \"Hello,World!\", \"Hello  ,  World  !\", etc.)\r\n- quoted strings\r\n- embedded comments\r\n\r\nThe .zip file includes examples of a simple SQL parser, simple CORBA IDL \r\nparser, a config file parser, a chemical formula parser, and a four-\r\nfunction algebraic notation parser.  It also includes a simple how-to \r\ndocument, and a UML class diagram of the library's classes.\n\n\n\nInstallation\n============\n\nDo the usual:\n\n    python setup.py install\r\n    \r\n(pyparsing requires Python 2.3.2 or later.)\n\n\nDocumentation\n=============\n\nSee:\n\n    HowToUsePyparsing.html\n\n\nLicense\n=======\n\n    MIT License. See header of pyparsing.py\n\nHistory\n=======\n\n    See CHANGES file.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynap5e%2Fpyparsing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynap5e%2Fpyparsing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynap5e%2Fpyparsing/lists"}