{"id":21427,"library":"hbreader","title":"Honey Badger Reader","description":"Honey Badger reader (hbreader) is a Python utility that opens and reads files, URLs, and strings seamlessly. Current version 0.9.1 works with Python >=3.7 and provides a unified interface for reading from various sources. Release cadence is low, with initial release in 2021.","status":"active","version":"0.9.1","language":"python","source_language":"en","source_url":"https://github.com/hsolbrig/hbreader","tags":["io","file-reading","url-reading","string-reading"],"install":[{"cmd":"pip install hbreader","lang":"bash","label":"PyPI installation"}],"dependencies":[],"imports":[{"wrong":"from hbreader import HBReader","symbol":"hbopen","correct":"from hbreader import hbopen"},{"symbol":"detect_type","correct":"from hbreader import detect_type"},{"symbol":"FileInfo","correct":"from hbreader import FileInfo"}],"quickstart":{"code":"from hbreader import HBReader\n\nreader = HBReader()\ncontent = reader.read_file('example.txt')\nprint(content)","lang":"python","description":"Read a local file using HBReader."},"warnings":[{"fix":"Use read_fd() for file descriptors or read_stream() for file objects.","message":"HBReader.read_file() expects a file path, not a file-like object. Passing a file object will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Install requests: pip install requests","message":"URL reading requires the requests library to be installed. If missing, reading URLs will raise ImportError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.9.1':23 '2021':46 '3.7':27 'badger':2,5 'cadenc':39 'current':21 'file':16,49 'file-read':48 'hbreader':7 'honey':1,4 'initi':43 'interfac':32 'io':47 'low':41 'open':13 'provid':29 'python':10,26 'read':15,34,50,53,56 'reader':3,6 'releas':38,44 'seamless':20 'sourc':37 'string':19,55 'string-read':54 'unifi':31 'url':17,52 'url-read':51 'util':11 'various':36 'version':22 'work':24","created_at":"2026-04-27T16:59:50.962325+00:00","updated_at":"2026-04-27T16:59:50.962325+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.9.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/hsolbrig/hbreader","docs":null,"changelog":null,"pypi":"https://pypi.org/project/hbreader/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}