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 details)
Built Distribution
File details
Details for the file mimebytes-0.1.0.tar.gz
.
File metadata
- Download URL: mimebytes-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8511d51a9b440caf8de1df494c12f6898061d4ae7b78b03eb6ab2767ca464fa9
|
|
MD5 |
a32605e54f516bb1116b51289b2204a4
|
|
BLAKE2b-256 |
336e8151ffcd6327ebda0920b9a0cf982e5b6eb51f9ee815786bd925fc3f1843
|
File details
Details for the file mimebytes-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mimebytes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
97fd2d68f00e833750d09f47f3d35321eaf77c6d6aadf7d85bd2b50322f56d08
|
|
MD5 |
59a27bb4540c8a329b08147af0fec912
|
|
BLAKE2b-256 |
50e466025a243041d49a7f0ae66389969bf90884adc324ddbcd6e6326874f75b
|