Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pydbisam-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pydbisam-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pydbisam-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pydbisam-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5233e7360dc825c73888c0989cb239b865afe50cb731cd2c511299964527f3d
MD5 a3776c41f3376971c3f92614ec57364b
BLAKE2b-256 67abcb6c761a72d6ae4bd54625d660dd15792e6b16b4fbd9573e182d72ad3239

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page