Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for creating data: uris #1

Open
wbolster opened this issue Oct 5, 2017 · 1 comment
Open

add support for creating data: uris #1

wbolster opened this issue Oct 5, 2017 · 1 comment

Comments

@wbolster
Copy link
Collaborator

wbolster commented Oct 5, 2017

something like this:

def build(*, data, media_type=None, format=None):
    ... # todo base64/urlencode based on format spec, default to autodetect,
        # e.g. based on len(data) or presence of non-ascii chars.
    return "data:{},{}".format(...)
@patarapolw
Copy link

patarapolw commented Oct 16, 2018

Must be this code https://gist.github.com/jsocol/1089733

I wish this can be merged to data_uri package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants