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 Distributions

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

Built Distributions

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

openqbw-0.1.0-cp39-abi3-win_amd64.whl (181.7 kB view details)

Uploaded CPython 3.9+Windows x86-64

openqbw-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl (277.8 kB view details)

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

openqbw-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (249.6 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: openqbw-0.1.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 181.7 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.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6dc72f46e99c0303bee7c1fb48a380af99e24a8cb979ee0afa930b68cf397d67
MD5 719122406b18ebb95a856d3393d173a8
BLAKE2b-256 698a0f0e6c8d0a53831c223ede5cf62f04e3525c6eaa16bfe96f7925d5dc50c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.0-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.0-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for openqbw-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 10ee98c049e7a7444fd0dbb778bcf84b04b0aab53399521856ee8711cd6d9482
MD5 436c70e0b568324164144315e868c0a6
BLAKE2b-256 43ab2f72c9ef24bbb479c17568f9c533a1059be67724776d8d272b056459dee4

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.0-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.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for openqbw-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 682070d0d80ad256df39752dea38d7e971f4b20729797e83d53f754a03b2a93f
MD5 ff5d9ba3016b031d4255b994bb2abb87
BLAKE2b-256 affea7e32f1c2620dbea53f19c98d0558fbb0dae3337f70dbf299ddb8767a81d

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.0-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