otb-cbso-webservice-pyclient
Download Belgian annual accounts from the National Bank's Central Balance Sheet Office (CBSO).
Use the Python package or the cbso-fetch command.
The package downloads authentic and improved accounts to a local directory or S3. It can also validate saved files, repair missing files, and collect consolidated accounts. All operations run sequentially. Individual authentic PDF and XBRL downloads try the production public website after subscription HTTP 404 responses.
Installation
Use Python 3.10 or later. Install from PyPI.
pip install otb-cbso-webservice-pyclient
Install the S3 extra for S3 destinations.
pip install 'otb-cbso-webservice-pyclient[s3]'
Subscription keys
Set the keys for the services you need.
| Environment variable | Service |
|---|---|
CBSO_KEY_AUTHENTIC |
Individual authentic references and account files |
CBSO_KEY_EXTRACTS |
Daily authentic batches |
CBSO_KEY_AUTHENTIC_ARCHIVE |
Authentic archive batches |
CBSO_KEY_IMPROVED |
Individual improved files and daily batches |
CBSO_KEY_IMPROVED_ARCHIVE |
Improved archive batches |
Validation and consolidated filtering need no CBSO keys. See Configuration for subscriptions, S3 access, and environments.
Basic use
Fetch authentic and improved filings for an enterprise:
export CBSO_KEY_AUTHENTIC='your-authentic-subscription-key'
export CBSO_KEY_IMPROVED='your-improved-subscription-key'
cbso-fetch download-enterprise BE0203.201.340 --destination ./data
The destination can also be an S3 prefix, such as s3://my-bucket/cbso.
Production is the default environment. Use --env test for UAT2 downloads and repairs.
Commands
| Command | Purpose |
|---|---|
| download | Download batches for selected past dates |
| download-enterprise | Download filings for enterprise numbers |
| download-reference | Download authentic filings by reference number |
| validate | Check authentic files against saved references |
| validate-improved | Check improved JSON and expected OCR files |
| repair | Resolve references and restore authentic files |
| repair-improved | Resolve references and restore improved JSON |
| download-pdf-only-accounts | Download missing PDFs for PDF-only filings |
| filter-consolidated-accounts | Collect references and move consolidated PDFs |
Use cbso-fetch --help to list commands.
Use cbso-fetch COMMAND --help for command options.
Documentation
- Configuration: subscriptions, environments, S3 access, and logging.
- Commands: examples, formats, validation, repair, and dry runs.
- Python package: library operations and client ownership.
- Storage and reports: file layout, repeated runs, and results.
- Contributing: development setup, checks, and releases.
Licence
Proprietary. © openthebox.
Metadata
Release files for otb-cbso-webservice-pyclient 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| otb_cbso_webservice_pyclient-2.4.0.tar.gz | 26.7 kB | With provenance | Details for otb_cbso_webservice_pyclient-2.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| otb_cbso_webservice_pyclient-2.4.0-py3-none-any.whl | Python 3 | none | any | Details for otb_cbso_webservice_pyclient-2.4.0-py3-none-any.whl |
Total release size: 63.7 kB
Release files / otb_cbso_webservice_pyclient-2.4.0.tar.gz
| Download URL | otb_cbso_webservice_pyclient-2.4.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ada0e6f67222a7500f2e10a39492a64ac9678e2fbb722a183044079c06c7bac
|
|
BLAKE2b-256 checksum How to use checksums |
561218fc115124e114dbc056ce407134d9781ebf1df5d6f2fae61cf0bd48b719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logRelease files / otb_cbso_webservice_pyclient-2.4.0-py3-none-any.whl
| Download URL | otb_cbso_webservice_pyclient-2.4.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3994aa115737f537d176c97d25c90258c26b9905945b3846080d01fcbf7ee807
|
|
BLAKE2b-256 checksum How to use checksums |
faf96d90733615ea3af5272961354ce908dbe3ee7b720df61f9b4dc48ab72f29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logSecurity for otb-cbso-webservice-pyclient 2.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for otb_cbso_webservice_pyclient-2.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.