Skip to main content

Python bindings for OpenQBW (QuickBooks .qbw file reader)

Project description

openqbw (Python)

Python bindings for OpenQBW, a read-only parser for QuickBooks .qbw files. Targets data-liberation and forensic workflows.

Prototype quality. See the parent repository's README.md and SPECIFICATION.md for what is and is not yet supported.

Install (from source)

pip install maturin
cd OpenQBW/crates/openqbw-py
maturin develop --release

This builds the extension and installs it into the active Python environment.

Quick start

import openqbw

r = openqbw.open("/path/to/file.qbw")
print(r.page_count, "pages,", r.file_size, "bytes")

for t in r.tables()[:5]:
    print(t["table_id"], t["name"])

for li in r.line_items()[:3]:
    print(li["invoice_id"], li["amount_cents"], li["source_table"])

for h in r.transactions()[:3]:
    print(h["qb_id"], h["txn_type"])

API

openqbw.open(path) -> Reader

Reader attributes:

  • path, page_count, file_size

Reader methods (each returns a list of dicts):

  • tables() - SYSTABLE catalog rows
  • indexes() - SYSINDEX entries
  • line_items() - invoice line items, attributed to source tables
  • transactions() - transaction headers

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

openqbw-0.1.3.tar.gz (59.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

openqbw-0.1.3-cp39-abi3-win_amd64.whl (185.5 kB view details)

Uploaded CPython 3.9+Windows x86-64

openqbw-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl (282.0 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.34+ x86-64

openqbw-0.1.3-cp39-abi3-macosx_11_0_arm64.whl (253.7 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file openqbw-0.1.3.tar.gz.

File metadata

  • Download URL: openqbw-0.1.3.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openqbw-0.1.3.tar.gz
Algorithm Hash digest
SHA256 48518bf66cc883aef1590874ad1e0ab518b1f719929b153c6bcc38ac53be695a
MD5 1f00d870309222966da437d5c4beda03
BLAKE2b-256 dda7c8ff8d31509fdad1a1c995928febbd6a4dce3a0a640c5ed00b9626edbbd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.3.tar.gz:

Publisher: release.yml on Sigilweaver/OpenQBW

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

File details

Details for the file openqbw-0.1.3-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: openqbw-0.1.3-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 185.5 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openqbw-0.1.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7330c21f8e70140e56a7b18c6275ec07f9da6200a52837ae6467cc973ffdccd7
MD5 ebca2f955017728dda349cd2cfda4f0e
BLAKE2b-256 75bad8392dedef841e7eeaaf59a97e60e0dd5a01141fdd92ddb99bcddda2292a

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.3-cp39-abi3-win_amd64.whl:

Publisher: release.yml on Sigilweaver/OpenQBW

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

File details

Details for the file openqbw-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for openqbw-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 801e5d0f2db8075e2779b0b18ef1d3cd3aaac752e784f8017bc21cb6336b124b
MD5 2ac0337f2c69850f25991b18f1249652
BLAKE2b-256 e912bf8e1616fc610d4ce3cd818dc0e74bfa5e69e230a5dcb8ce7de8b759b1f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl:

Publisher: release.yml on Sigilweaver/OpenQBW

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

File details

Details for the file openqbw-0.1.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for openqbw-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f815d1c25a0a329bdff70088c637048f6e5dca93bab1afb6c99c20fa33f10e6
MD5 f0a0f3b5b9ac372029c614873b9770db
BLAKE2b-256 27f1261f56a5912d386b9568c2b0f266c57d311dfea063c33997887613b517b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.3-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on Sigilweaver/OpenQBW

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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page