Read DBISAM database tables.
Project description
PyDBISAM
PyDBISAM is a pure Python module to read and export data from DBISAM tables (from their .dat
files). The scope of PyDBISAM is not to provide a full database framework but merely to provide the ability to read the table structure and the raw table data.
DBISAM is an on-disk database with one file per table. The file format is proprietary. The basic structure is documented here.
CLI Usage
PyDBISAM includes a simple CLI that can be used to dump the table structure or export the data to various formats (e.g.: CSV).
# pydbisam --dump-structure path/to/file.dat
# pydbisam --dump-csv path/to/file.dat
Code Usage
The PyDBISAM class can be used for read-only access to the tables.
from pydbisam import PyDBISAM
with PyDBISAM("path/to/file.dat") as db:
print(", ".join(db.fields()))
for row in db.rows():
print(", ".join(map(str, row)))
Similar Projects
- DBISAM-to-JSON
- Python 2/3 script to convert DBISAM to JSON (limited support for various column types).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pydbisam-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: pydbisam-1.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daebfb9eecd5d0eee49c774756cbabbf1894cd3726067a8d37ecf85dc982b446 |
|
MD5 | f1e241116a86199acc25e33c0d77919f |
|
BLAKE2b-256 | 8eed660499114018f44312f86099e9da75ec619cddeefb12e16525c6ae5d02b0 |