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 details)
Built Distribution
File details
Details for the file mimebytes-0.0.1.tar.gz
.
File metadata
- Download URL: mimebytes-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
16b3ef423b52aa6e569d3fc2b24357a9eb02493a081b09da0aa78772a6043d0c
|
|
MD5 |
6b2e73f1cea961befdfbdb0b12082961
|
|
BLAKE2b-256 |
023e27028e4026ff3d491aa55f4e6279949e7c67b416cb77bbc7fb16c12557d5
|
File details
Details for the file mimebytes-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mimebytes-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9355cbcfa73c4c9f7dcfa4b19a6452b42018a9b05b71c113c9fc420f98840271
|
|
MD5 |
ffc9483721f08100323e153cbd1c9df6
|
|
BLAKE2b-256 |
227c98df046fd90664f9def24109ffd3ae1e9f37d28eaf35549037ec756993ed
|