{"library":"tinycss2","type":"library","category":null,"description":"tinycss2 is a low-level CSS parser and generator written in Python. It can parse CSS strings, return objects representing tokens and blocks, and generate CSS strings from these objects. Based on the CSS Syntax Level 3 specification, it handles the grammar of CSS but does not know specific rules, properties, or values. It is actively maintained with regular releases.","language":"python","status":"active","version":"1.5.1","tags":["css","parsing","frontend","web"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install tinycss2","imports":["import tinycss2\nrules = tinycss2.parse_stylesheet('body { color: red; }')","from tinycss2.ast import QualifiedRule, IdentToken"]}],"homepage":"https://www.courtbouillon.org/tinycss2","github":"https://github.com/Kozea/tinycss2","docs":"https://doc.courtbouillon.org/tinycss2/","changelog":"https://github.com/Kozea/tinycss2/releases","pypi":"https://pypi.org/project/tinycss2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.01,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/tinycss2/compatibility"}}