Py BMP
Python package to read a BMP file's header and pixel array in binary.
Install Instructions
pip install pybmp2
Usage
from pybmp2 import BMP
img = BMP(filename="sample.bmp")
print(img.SHAPE)
print(img.PIXELARRAY)
print(img.RAWIMGSIZE)
from pybmp import BMP
import binascii
f = open('samp.bmp','rb')
content = f.read()
content = binascii.hexlify(content)
img = BMP(hexdata=hexdata)
print(img.SHAPE)
print(img.PIXELARRAY)
print(img.RAWIMGSIZE)
Metadata
Release files for pybmp2 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pybmp2-1.0.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybmp2-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / pybmp2-1.0.tar.gz
| Download URL | pybmp2-1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30b5aa5c2a608b106b75de0420743d636ec9587a0daf6fb84aeb571e554a87c1
|
|
BLAKE2b-256 checksum How to use checksums |
4b82b3619feafef6859af766dd10633ad16eb37f9641b8f8329b65dbe3f469aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.21.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/19.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.3
|
Release files / pybmp2-1.0-py3-none-any.whl
| Download URL | pybmp2-1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a04aaef8cb9d9c18f30bdbbbd0209f865c9e5682074b096c31539734b2c96fb4
|
|
BLAKE2b-256 checksum How to use checksums |
aafff32cd3399460aa9567f09a636fe2014d3c169fdd10391fa74a6e26f457a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.21.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/19.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.3
|
Security for pybmp2 1.0
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.