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.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for mimebytes-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9355cbcfa73c4c9f7dcfa4b19a6452b42018a9b05b71c113c9fc420f98840271 |
|
MD5 | ffc9483721f08100323e153cbd1c9df6 |
|
BLAKE2b-256 | 227c98df046fd90664f9def24109ffd3ae1e9f37d28eaf35549037ec756993ed |