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.2.tar.gz (51.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.2-cp39-abi3-win_amd64.whl (181.4 kB view details)

Uploaded CPython 3.9+Windows x86-64

openqbw-0.1.2-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.2-cp39-abi3-macosx_11_0_arm64.whl (249.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: openqbw-0.1.2.tar.gz
  • Upload date:
  • Size: 51.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.2.tar.gz
Algorithm Hash digest
SHA256 4da477d6798a0188c69e5392930c064a14fa8c90cc7a99401a65c122268640f6
MD5 765148244461b6f675d8817860af0cd2
BLAKE2b-256 3f727088c47df096aaca647652def8ebf4d8958757647bdd53b2b46d54a7752a

See more details on using hashes here.

Provenance

The following attestation bundles were made for openqbw-0.1.2.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.2-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: openqbw-0.1.2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 181.4 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.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bc7506643961958317a24f030a0c77e3ebf9f1b264f8f24692ef212a9bb8f100
MD5 8abc58dbacd9404f661ced250071adf1
BLAKE2b-256 fd6edffc2629d1dccf9088ee99515ca380ee950c19f9a478b38d1a9e453ecc24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for openqbw-0.1.2-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 735e99d0c9fa9768e8f5f9e242ef5839f8947cb9176a1afca4eb16e816f26a2d
MD5 a0c1be72d8539778bab455e2821881ad
BLAKE2b-256 5cac19cb215338dc61490f1cdd561c6db1aba2abc0983d432a7777b4d668c999

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for openqbw-0.1.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea5da08f3e4cf399be388113e29e57a0a2d8589e0f3dc74499b6787f8b711207
MD5 f53aac56c6646c602e865c1f7e0e8e26
BLAKE2b-256 4df206780b28087019b32fc710a0ff3faa94d6cb4ee8caed00e77080886a9a9d

See more details on using hashes here.

Provenance

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