Registry / database / dbstream

dbstream

JSON →
library0.1.28pypypi✓ verified 86d ago

A meta package to connect to several databases with a unified streaming interface. Currently at version 0.1.28, with Python >=3 support. The project appears to be in early development with infrequent releases.

pip install dbstream
INSTALL
IMPORT
SIG · DBSTREAM
D
dbstream
databasepythonv0.1.28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

DBStream
from dbstream import DBStream
from dbstream import dbstream
The correct class is DBStream with uppercase DB.

Instantiate DBStream with a connection string and stream query results.

from dbstream import DBStream db = DBStream('sqlite:///example.db') db.stream('SELECT * FROM users') for row in db: print(row)
Debug
Known issues
breakingThe library is very early stage (v0.1.x). API breaking changes are expected between minor versions. Pin to exact version in production.
fix
Pin version: dbstream==0.1.28 in requirements.txt.
affects: <0.2.0
gotchaThe DBStream object is an iterator. You must call .stream() before iterating, otherwise you get an empty result.
fix
Always call .stream(query) first, then iterate over the object.
affects: all
gotchaConnection strings must follow SQLAlchemy format. Unsupported databases will raise an ImportError at runtime.
fix
Double-check your database URI. Example: 'postgresql://user:pass@host/db'.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'dbstream'
Library not installed or installation incomplete.
fix
Run 'pip install dbstream' in your environment.
ImportError: cannot import name 'DBStream' from 'dbstream'
Incorrect import path or very old version without the class.
fix
Use 'from dbstream import DBStream'. Ensure dbstream>=0.1.0 is installed.
AttributeError: 'DBStream' object has no attribute 'stream'
The stream method was renamed or removed in a newer version (check changelog).
fix
Check the current API in documentation; possibly use 'exec' or 'query' instead.
Upgrade
Version history
0.1.28latest on PyPI · released Oct 15, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
dbstream — pip install dbstream · libregistry