Wrapper class to make repr of bytes better in ipython.
Project description
mimebytes
A thin wrapper of bytes
to make the repr better in ipython.
from mimebytes import ImageBytes
with open('image.png', 'rb') as f:
content = f.read()
ImageBytes(content, 'image/png')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mimebytes-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for mimebytes-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97fd2d68f00e833750d09f47f3d35321eaf77c6d6aadf7d85bd2b50322f56d08 |
|
MD5 | 59a27bb4540c8a329b08147af0fec912 |
|
BLAKE2b-256 | 50e466025a243041d49a7f0ae66389969bf90884adc324ddbcd6e6326874f75b |