Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 937 Bytes

api.rst

File metadata and controls

42 lines (30 loc) · 937 Bytes

API

API stability

Everything described here is considered “public”: this is what you can rely on. We will try to maintain backward-compatibility, although there is no hard promise until version 1.0.

Anything else should not be used outside of WeasyPrint itself: we reserve the right to change it or remove it at any point. Use it at your own risk, or have dependency to a specific WeasyPrint version in your setup.py or requirements.txt file.

Command-line API

weasyprint.__main__.main(argv=sys.argv)

weasyprint

Python API

HTML(input, **kwargs)

CSS(input, **kwargs)

default_url_fetcher

weasyprint.document

Document

DocumentMetadata

Page()