tinycss2

A tiny CSS parser

BSD-3-CLAUSE License

Downloads
25.5M
Stars
144
Committers
12
tinycss2 - v1.3.0 Latest Release

Published by liZe 6 months ago

  • Support CSS nesting
  • Deprecate parse_declaration_list, use parse_blocks_contents instead
tinycss2 - v1.2.1

Published by liZe about 2 years ago

  • Fix tests included in the source tarball
tinycss2 -

Published by liZe about 2 years ago

  • Drop support of Python 3.6
  • Fix serialization of nested functions with no parameters
  • Don’t use pytest plugins by default
tinycss2 - 1.1.1

Published by liZe almost 3 years ago

  • Add support of Python 3.10.
  • Include tests in source package.
tinycss2 - 1.1.0

Published by liZe almost 4 years ago

  • Drop support of Python 3.5, add support of Python 3.9.
  • Fix ResourceWarning in tests.
  • Use Python standard library’s HSL to RGB converter.
  • Use GitHub Actions for tests.
  • New code structure, new packaging, new documentation.
tinycss2 - 1.0.2

Published by liZe about 4 years ago

  • Don't crash when indent tokens have no lowercase equivalent name
tinycss2 - 1.0.1

Published by liZe about 4 years ago

  • Fix tests launched by CI
  • Parse "--" ident tokens correctly
tinycss2 - 1.0.0

Published by liZe about 4 years ago

  • Drop Python 2.7, 3.3 and 3.4 support
  • Allow leading double dash syntax for ident tokens, allowing CSS variables to be parsed correctly.
    Test with PyPy3
  • Force tests to parse JSON files as UTF-8
  • Clean packaging
tinycss2 - 0.6.1

Published by liZe about 4 years ago

  • Update documentation
tinycss2 - 0.6.0

Published by liZe about 4 years ago

  • Don't allow identifiers starting with two dashes
  • Don't use Tox for tests
  • Follow semantic versioning
tinycss2 - 0.5

Published by liZe about 4 years ago

  • Update for spec changes
  • Add a ast.WhitespaceToken.value attribute to ast.WhitespaceToken
  • Breaking change: CSS comments are now preserved as ast.Comment objects by default. Pass skip_comments=True to parsing functions to get the old behavior
  • Breaking change: Top-level comments and whitespace are now preserved when parsing a stylesheet, rule list, or declaration list. Pass skip_comments=True and skip_whitespace=True to get the old behavior
  • Test on Python 3.4 and PyPy3
  • Set up continous integration on Travis-CI
tinycss2 - 0.4

Published by liZe about 4 years ago

  • Fix ast.HashToken starting with a non-ASCII character
  • Fix repr on AST nodes
tinycss2 - 0.3

Published by liZe about 4 years ago

  • Document all the things!
  • Add serialization
  • Merge color3.parse_color_string behavior into color3.parse_color
  • Fix and test parsing form bytes and tokenization of
tinycss2 - 0.2

Published by liZe about 4 years ago

Add parsing for <An+B>, as in :nth-child() and related Selectors pseudo-classes.

tinycss2 - 0.1

Published by liZe about 4 years ago

First PyPI release. Contains:

  • Decoding from bytes (@charset, etc.)
  • Tokenization
  • Parsing for "generic" rules and declarations
  • Parsing for CSS Color Level 3
  • Tests for all of the above, except for decoding from bytes.
Package Rankings
Top 2.92% on Pypi.org
Top 19.03% on Conda-forge.org
Top 29.1% on Anaconda.org