Aspose.CSS  for Python

Aspose.CSS for Python

Aspose.CSS’s CSS layout engine for Python: loads real HTML, exposes a standards-conformant DOM, and performs CSS parsing, cascade and layout with a rendering API that converts to raster images and PDF.

  
 

For Python, Aspose.CSS is the same CSS layout engine built for standards-based rendering, layout and conversion, also in development for .NET, Java, C++ and TypeScript. It loads real HTML, exposes a standards-conformant DOM, and performs CSS parsing, cascade and layout with a rendering API, converting the result to raster images and PDF.

Advanced Python CSS API Features

Encoding detection & tokenizing

Tree construction

Standards-conformant DOM

Serialization

URL handling

CSSOM

286-property CSS cascade

CSS parsing

Layout engine

Rendering API

Raster image conversion

PDF conversion

Encoding Detection & Tokenizing for Python

Aspose.CSS for Python begins with encoding detection and tokenizing, the first two steps of the WHATWG front end the whole engine covers. Python gets its own native build of this stage, independent of every other platform's implementation.

A Rendering API for Python

Once the cascade resolves styles, Aspose.CSS for Python exposes a rendering API that drives layout and the conversion to raster images and PDF, the same API surface every native build of the engine provides.

  

Aspose.CSS is also in development for the following platforms: