{"id":21430,"library":"hexor","title":"hexor","description":"A Python library for coloring text and backgrounds in CLI using RGB or hex values. Current version: 0.0.15. Release cadence: irregular, occasional bugfix releases.","status":"active","version":"0.0.15","language":"python","source_language":"en","source_url":"https://github.com/yasserbdj96/hexor","tags":["cli","color","terminal","hex","rgb"],"install":[{"cmd":"pip install hexor","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"Hexor","correct":"from hexor import Hexor"},{"note":"","wrong":"","symbol":"Style","correct":"from hexor import Style"}],"quickstart":{"code":"from hexor import Hexor\n\nh = Hexor()\n# Color text red using hex\nprint(h.hex('Hello, World!', '#ff0000'))\n# Color background blue using rgb\nprint(h.rgb('Hello, World!', [0, 0, 255]))","lang":"python","description":"Create a Hexor instance, then call hex() or rgb() methods to colorize text."},"warnings":[{"fix":"Check documentation or source for compatibility details.","message":"The library may not be compatible with all terminals or environments. Test on your target terminal.","severity":"gotcha","affected_versions":"all"},{"fix":"Use hex (#RRGGBB) or 3-element list/tuple for RGB.","message":"No explicit support for named colors; you must use hex or RGB values.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin to a specific version in requirements.","message":"Version 0.0.x indicates pre-release. API may change without notice.","severity":"deprecated","affected_versions":"< 1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Ensure you have the latest version: pip install --upgrade hexor. Then use 'from hexor import Hexor'.","cause":"Older versions of hexor may have had a different API or the import path is incorrect.","error":"ImportError: cannot import name 'Hexor' from 'hexor'"},{"fix":"Create a Hexor object first: h = Hexor(); then call h.hex(text, color).","cause":"Calling hex() without instantiating Hexor, or using a method incorrectly.","error":"TypeError: 'NoneType' object is not callable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}