{"id":27493,"library":"types-parsimonious","title":"types-parsimonious","description":"Typing stubs for parsimonious, providing type annotations for the parsimonious PEG parser library. Current version 0.11.0.20260408, updated regularly alongside typeshed.","status":"active","version":"0.11.0.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["typing","stubs","parsimonious","typeshed"],"install":[{"cmd":"pip install types-parsimonious","lang":"bash","label":"Install stubs"}],"dependencies":[],"imports":[{"note":"Parsimonious exports Grammar as a class; import the module first.","wrong":"import Grammar from parsimonious","symbol":"parsimonious","correct":"import parsimonious"}],"quickstart":{"code":"import parsimonious\nfrom parsimonious.grammar import Grammar\n\ngrammar = Grammar(\"greeting = 'Hello' name name = ~'[A-Za-z]+'\")\ntree = grammar.parse('Hello World')\nprint(tree)","lang":"python","description":"Basic usage of parsimonious with type stubs."},"warnings":[{"fix":"Use type: ignore where needed, or contribute improvements to typeshed.","message":"The stubs are not perfect; some dynamic features of parsimonious may not be fully annotated.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from parsimonious.grammar import Grammar' instead.","cause":"Direct import of Grammar from parsimonious module fails due to incorrect stub export.","error":"Cannot find reference 'Grammar' in 'parsimonious.py'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}