{"id":21816601,"url":"https://github.com/5monkeys/pyparsing","last_synced_at":"2025-06-16T05:11:22.382Z","repository":{"id":4661778,"uuid":"5807691","full_name":"5monkeys/pyparsing","owner":"5monkeys","description":"Yet another mirror of pyparsing.svn.sourceforge.net","archived":false,"fork":false,"pushed_at":"2012-09-14T09:58:33.000Z","size":2116,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T10:13:24.133Z","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/5monkeys.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":"2012-09-14T09:57:57.000Z","updated_at":"2018-10-27T15:11:18.000Z","dependencies_parsed_at":"2022-07-05T13:09:27.390Z","dependency_job_id":null,"html_url":"https://github.com/5monkeys/pyparsing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/5monkeys/pyparsing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fpyparsing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fpyparsing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fpyparsing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fpyparsing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5monkeys","download_url":"https://codeload.github.com/5monkeys/pyparsing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5monkeys%2Fpyparsing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260103190,"owners_count":22959052,"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-27T15:35:29.326Z","updated_at":"2025-06-16T05:11:22.366Z","avatar_url":"https://github.com/5monkeys.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%2F5monkeys%2Fpyparsing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5monkeys%2Fpyparsing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5monkeys%2Fpyparsing/lists"}