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 Distribution

pydbisam-1.2.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

pydbisam-1.2.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pydbisam-1.2.1.tar.gz.

File metadata

  • Download URL: pydbisam-1.2.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pydbisam-1.2.1.tar.gz
Algorithm Hash digest
SHA256 900a16a2cfa584fe91f993b0054a32158a1047d57d0bc1477ef30e2eeb7d7e1d
MD5 863a5373c688081b013a852e09455b62
BLAKE2b-256 4354417fbcdb86d90f02ff58fa2ad2510517cea84e40cb7e54e24c690899a8ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydbisam-1.2.1.tar.gz:

Publisher: lint_package_publish.yml on linville/pydbisam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pydbisam-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pydbisam-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94d681986b0dc4a79e77fd3fb7471acb5ceba3584c8e641eabde06788c662d01
MD5 8cc90dde41cb0308f0ec972acffba0ee
BLAKE2b-256 09d54df901fd4a298fcd6bd3b1375a29c01950820308c3539ae505f0fdb0f397

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydbisam-1.2.1-py3-none-any.whl:

Publisher: lint_package_publish.yml on linville/pydbisam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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