Share via


data_uri Module

Classes

DataUri

A class to represent a data uri.

If a array is provided, that will be used as the data since it is the most efficient, otherwise the bytes will be used, or the string will be converted to bytes.

When updating either array or bytes, the other will not be updated.

Initialize the data uri.

Make sure to set the data_format to base64 so that it can be decoded properly.