{"id":21003,"library":"bitmap","title":"bitmap","description":"A Python library for handling bitmap (BMP) files and bitmap graphics. Supports reading, writing, and manipulating bitmap images. Current version 0.0.7, released with no clear cadence.","status":"active","version":"0.0.7","language":"python","source_language":"en","source_url":"https://github.com/wanji/bitmap","tags":["bitmap","bmp","image","graphics"],"install":[{"cmd":"pip install bitmap","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Bitmap class is not exposed at module level; must import explicitly.","wrong":"import bitmap","symbol":"Bitmap","correct":"from bitmap import Bitmap"}],"quickstart":{"code":"from bitmap import Bitmap\n# Create a 100x100 red bitmap\nbm = Bitmap(100, 100)\nbm.clear((255, 0, 0))\nbm.save('red.bmp')\nprint('Saved red.bmp')","lang":"python","description":"Create a simple red bitmap and save to file."},"warnings":[{"fix":"Always use Bitmap(width, height).","message":"Bitmap constructor expects (width, height) but order is (x, y) meaning width then height. Common mistake: swapping arguments.","severity":"gotcha","affected_versions":"all"},{"fix":"Use bm.clear((r,g,b)) to set a color.","message":"Bitmap.clear() with no arguments sets all pixels to black. To set a color, pass an RGB tuple.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using Pillow for advanced bitmap operations.","message":"No official deprecation warnings observed; library is minimal with limited functionality.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from bitmap import Bitmap' instead.","cause":"Using 'import bitmap' then 'bitmap.Bitmap' without importing the class.","error":"AttributeError: module 'bitmap' has no attribute 'Bitmap'"},{"fix":"Provide width and height: Bitmap(100, 100).","cause":"Calling Bitmap() without arguments.","error":"TypeError: __init__() missing 2 required positional arguments: 'x' and 'y'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}