https://github.com/Kozea/tinycss2
A tiny CSS parser
https://github.com/Kozea/tinycss2
css parser python
Last synced: 12 days ago
JSON representation
A tiny CSS parser
- Host: GitHub
- URL: https://github.com/Kozea/tinycss2
- Owner: Kozea
- License: bsd-3-clause
- Created: 2013-04-30T12:26:38.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2025-11-23T10:28:47.000Z (5 months ago)
- Last Synced: 2026-01-14T16:05:16.312Z (3 months ago)
- Topics: css, parser, python
- Language: Python
- Homepage: https://doc.courtbouillon.org/tinycss2
- Size: 365 KB
- Stars: 182
- Watchers: 11
- Forks: 25
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
- Support: docs/support.rst
Awesome Lists containing this project
- fucking-awesome-python - tinycss2 - A low-level CSS parser and generator written in Python. (HTML Manipulation)
- awesome-python - tinycss2 - A low-level CSS parser and generator written in Python. (HTML Manipulation)
README
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 BSD
3-clause license, without any additional terms or conditions. For full
authorship information, see the version control history.