Skip to main content

Keyimstr Documentation

[ 1 ] ImageConverter.numpy2bytes(numpy_image, *args, **kwargs) -> bytes
parameter data type default value
numpy_image numpy.ndarray -
encoding str ".jpg"
# example 1
from keyimstr import ImageConverter
import numpy

image = numpy.zeros(shape = (25, 25, 3), dtype = numpy.uint8)
print(type(image))

byte = ImageConverter.numpy2bytes(image)
print(type(byte))
[ 2 ] ImageConverter.bytes2string(byte_image, *args, **kwargs) -> str
parameter data type default value
byte_image bytes -
encoding str "ascii"
# example 2
from keyimstr import ImageConverter
import numpy

image = numpy.zeros(shape = (25, 25, 3), dtype = numpy.uint8)
print(type(image))

byte = ImageConverter.numpy2bytes(image)
print(type(byte))

string = ImageConverter.bytes2string(byte)
print(type(string))
[ 3 ] ImageConverter.string2bytes(string_image) -> bytes
parameter data type default value
string_image str -
# example 3
from keyimstr import ImageConverter
import numpy

image = numpy.zeros(shape = (25, 25, 3), dtype = numpy.uint8)
print(type(image))

byte = ImageConverter.numpy2bytes(image)
print(type(byte))

string = ImageConverter.bytes2string(byte)
print(type(string))

byte = ImageConverter.string2bytes(string)
print(type(byte))
[ 4 ] ImageConverter.bytes2numpy(byte_image, *args, **kwargs) -> numpy.ndarray
parameter data type default value
byte_image bytes -
np_encoding int numpy.uint8
cv_encoding int cv2.IMREAD_COLOR
# example 4
from keyimstr import ImageConverter
import numpy

image = numpy.zeros(shape = (25, 25, 3), dtype = numpy.uint8)
print(type(image))

byte = ImageConverter.numpy2bytes(image)
print(type(byte))

string = ImageConverter.bytes2string(byte)
print(type(string))

byte = ImageConverter.string2bytes(string)
print(type(byte))

image = ImageConverter.bytes2numpy(byte)
print(type(image))

Metadata

Release files for Keyimstr 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Keyimstr 0.0.1
File Size Uploaded Provenance Actions
Keyimstr-0.0.1.tar.gz 2.9 kB Without provenance Details for Keyimstr-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Keyimstr 0.0.1
File Interpreter ABI Platform Actions
Keyimstr-0.0.1-py3-none-any.whl Python 3 none any Details for Keyimstr-0.0.1-py3-none-any.whl

Total release size: 6.0 kB

Release files / Keyimstr-0.0.1.tar.gz

Download URL Keyimstr-0.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4601384c6fc7d7d42da94e8cc44416853dbd6a1711066c23e7d07bc5dc3f8d52
BLAKE2b-256 checksum
How to use checksums
e6bca7a9eff0013b3fdce2d358a160901b2df388feb07af6ac8188f43c0caa6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release files / Keyimstr-0.0.1-py3-none-any.whl

Download URL Keyimstr-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94e4b6c925472a55f48855b860f4dddfdb0292bb1f71b6eac638f92ea5893e74
BLAKE2b-256 checksum
How to use checksums
3ebb7d3e8c92fdd2fd0a68697fba774eb534b580dae5003130f56baf76d64e0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Security for Keyimstr 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page