{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"}],"enrichment":{"capability":"Opens and reads files, URLs, and text strings through a single unified interface, automatically detecting the source type and returning text content.","skillfed_tags":["file-io","url-handling","abandoned"],"use_cases":["Configuration loaders that accept file paths, URLs, or inline config strings without separate code paths.","Data pipeline tools that read from local files, remote APIs, or embedded test data uniformly.","Documentation generators or template engines that pull content from mixed sources.","CLI tools that accept flexible input sources and need to normalize file access.","Testing frameworks that need to load test data from files, fixtures, or hardcoded strings."],"what_it_does":"HBReader is a lightweight toolkit that abstracts away the differences between reading from files, URLs, and in-memory text strings. Instead of using separate idioms for each source type (open() for files, urllib for URLs, StringIO for text), you call hbopen() or hbread() with any source and it detects what you've passed and returns a unified text interface. The package includes a FileInfo class to capture metadata about the source (file path, modification date, size, base path) during the read operation.\n\nThe core use case is simplifying code that needs to work with multiple input sources without branching logic. It supports relative and absolute file paths, relative and absolute URLs, plain text strings, and already-open file handles. You can specify a base path for relative resolution, provide custom Accept headers for HTTP requests, and control text encoding. The package requires Python 3.7 or later and has no external dependencies.","worth_installing":"No. While the package solves a real problem and has no dependencies or security issues, it has been abandoned since early 2021 with no maintenance for nearly four years. For new projects, consider a maintained alternative or implement the abstraction yourself. For existing codebases already using it, the public domain license and lack of vulnerabilities mean it is safe to keep, but do not adopt it for new work."},"id":"hbreader","links":{"html":"https://skillfed.io/packages/hbreader","md":"https://skillfed.io/packages/hbreader.md","pypi":"https://pypi.org/project/hbreader/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-02-25","license_spdx":null,"license_treatment":"permissive","name":"hbreader","python_support":"supports_current","summary":"Honey Badger reader - a generic file/url/string open and read tool"},"popularity":{"monthly_downloads":304404,"position":7805,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.1"}
