🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

hexgraphics

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexgraphics

aka 0xg

0.2.2
Source
PyPI
Maintainers
1

hexgraphics

aka 0xg

installation

pip install hexgraphics

usage

from hexgraphics.constants import COLORMAP

print(COLORMAP)
from hexgraphics import Image0xg

example = bytes([
    0x0e, 0x0e, 0x0e, 0x0e, 0x0a, 0x10,
    0x0e, 0x0b, 0x0e, 0x0a, 0x0a, 0x10,
    0x0e, 0x0e, 0x0e, 0x0e, 0x01, 0x10,
    0x0a, 0x0a, 0x0a, 0x0a, 0x0a,
])

Image0xg(example).save('example.0xg')

with open('example.0xg', 'rb') as f:
    Image0xg(f).convert('example.png')

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts