--- id: tinycss2 version: "1.5.1" license: unclear license_treatment: permissive maintenance: active --- # tinycss2 — A tiny CSS parser License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install tinycss2 uv add tinycss2 poetry add tinycss2 ## Description tinycss2 is a low-level CSS parser and generator written in Python: it can parse strings, return objects representing tokens and blocks, and generate CSS strings corresponding to these objects. Based on the CSS Syntax Level 3 specification, tinycss2 knows the grammar of CSS but doesn't know specific rules, properties or values supported in various CSS modules. * Free software: BSD license * For Python 3.10+, tested on CPython and PyPy * Documentation: https://doc.courtbouillon.org/tinycss2 * Changelog: https://github.com/Kozea/tinycss2/releases * Code, issues, tests: https://github.com/Kozea/tinycss2 * Code of conduct: https://www.courtbouillon.org/code-of-conduct * Professional support: https://www.courtbouillon.org * Donation: https://opencollective.com/courtbouillon tinycss2 has been created and developed by Kozea (https://kozea.fr). Professional support, maintenance and community management is provided by CourtBouillon (https://www.courtbouillon.org). Copyrights are retained by their contributors, no copyright assignment is required to contribute to tinycss2. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under the... ## AI interpretation — verify before relying tinycss2 parses CSS strings into token and block objects and generates CSS from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values. Verdict: tinycss2 is a stable, actively maintained CSS parser suitable for projects needing low-level CSS tokenization and generation. Its minimal dependency footprint, permissive BSD license, and support for current Python versions (3.10–3.14) make it a reliable choice with no known security vulnerabilities. [View on SkillFed](https://skillfed.io/packages/tinycss2) · [View on PyPI](https://pypi.org/project/tinycss2/)