Skip to main content

Read Sage ContaPlus accounting exports (DIARIO.DBF, .zip) into usable formats

Project description

contaplus-reader

contaplus-reader reads Sage ContaPlus accounting exports — raw DIARIO.DBF tables and ContaPlus backup .zip archives — and extracts all of their data (the journal, subaccounts, the trial balance, and the operational tables) into a styled .xlsx workbook. It ships as a Python library and as the contaplus2xlsx command-line tool, and is intended for anyone migrating off Sage ContaPlus who needs their data in an open, usable format.

Installation

Run the CLI without installing anything:

uvx contaplus2xlsx INPUT OUTPUT

Install the library (and the contaplus2xlsx CLI) from PyPI:

pip install contaplus-reader

CLI Usage

Convert a raw DIARIO.DBF journal export to a styled Excel workbook:

contaplus2xlsx DIARIO.DBF out.xlsx

Convert a ContaPlus backup .zip archive:

contaplus2xlsx backup.zip out.xlsx

Select one company from a multi-company backup with --company (the company directory name inside the archive, e.g. Emp01):

contaplus2xlsx backup.zip out.xlsx --company Emp01

Use --lenient to extract everything readable from a damaged or non-standard archive — unreadable rows and tables are collected into a separate problems sheet and reported on stdout instead of aborting the conversion:

contaplus2xlsx backup.zip out.xlsx --lenient

Add --force (or --overwrite) to overwrite an existing output file.

Table Coverage

contaplus-reader extracts every table below into its own sheet of the output workbook:

Sheet Source Notes
Diario DIARIO.DBF The accounting journal — strictly read and validated
Subcuentas SUBCTA.DBF Subaccount master
Balance bruto BALAN.DBF Raw trial balance as stored by ContaPlus
Sumas y Saldos — Cuentas computed Trial balance recomputed at account level
Sumas y Saldos — Subcuentas computed Trial balance recomputed at subaccount level
Vencimientos venci.dbf Due dates / maturities
Predefinidos prede.dbf Predefined entries
Amortizaciones / Inversiones amoinv.dbf Depreciation and investments
Niveles nivel.dbf Account level definitions
Empresa / Grupos / Usuarios empresa.dbf, grupos.dbf, usuarios.dbf Company, group, and user metadata

Strict vs. Lenient

By default the reader runs in strict mode: it fails on the first invalid row, which is what a tax-grade reading of the journal requires. Lenient mode (--lenient) instead extracts all readable data, collecting every problem (table, row, column, and a plain-English reason) into a dedicated problems sheet and printing the same detail on stdout — useful for recovering data from a damaged or non-standard archive.

Browser PWA

A no-install browser version is in development — your ContaPlus file never leaves your machine.

License

contaplus-reader is released under the LGPL-3.0-or-later license.

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

contaplus_reader-0.1.0.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

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

contaplus_reader-0.1.0-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file contaplus_reader-0.1.0.tar.gz.

File metadata

  • Download URL: contaplus_reader-0.1.0.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for contaplus_reader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50e5638bd06ac0259e5f8dd7942c484875dd277d7b2f7e618eaf2f49c4de8e44
MD5 6f1233f776e547828b91b03ee4d9cf09
BLAKE2b-256 dd3a20a72b29dda8f82211e778637e422b77a1929f036673a8225478e2a24673

See more details on using hashes here.

File details

Details for the file contaplus_reader-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: contaplus_reader-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for contaplus_reader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 719129e86f0ce04a9ff9c345edc6e03941c787ba43ec454a97eb81e88cca4f68
MD5 d439603c185e6ab77d44ea8c8c55c1ef
BLAKE2b-256 043866df5949b8c57e8f6147d75e39df7f7af758ad0f525ab4bef76488109e3f

See more details on using hashes here.

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