Registry / http-networking / hbreader

hbreader

JSON →
library0.9.1pypypi✓ verified 82d ago

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.

pip install hbreader
INSTALL
IMPORT
SIG · HBREADER
H
hbreader
http-networkingpythonv0.9.1
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.9.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hbopen
from hbreader import hbopen
from hbreader import HBReader
detect_type
from hbreader import detect_type
FileInfo
from hbreader import FileInfo

Read a local file using HBReader.

from hbreader import HBReader reader = HBReader() content = reader.read_file('example.txt') print(content)
Debug
Known issues
gotchaHBReader.read_file() expects a file path, not a file-like object. Passing a file object will fail.
fix
Use read_fd() for file descriptors or read_stream() for file objects.
affects: all
gotchaURL reading requires the requests library to be installed. If missing, reading URLs will raise ImportError.
fix
Install requests: pip install requests
affects: all
Upgrade
Version history
0.9.1latest on PyPI · released Feb 25, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
hbreader — pip install hbreader · libregistry