Skip to main content

NoCFO File Downloader

CLI tool to download all attachments from a NoCFO business and organize them by document number.

Features

  • Fetches all documents and maps document_number -> attachment_ids.

  • Downloads every attachment.

  • Files linked to a document are saved as:

    <document_number>/<document_number> <original_filename>

  • Files not linked to any document are saved under:

    UNCATEGORIZED/<original_filename>

  • Shows a progress bar while downloading.

Installation

pip install nocfo-file-downloader

Usage

nocfo-dl <business_slug> --output-dir ./downloads

Options

  • --output-dir/-o Output folder (default: ./downloads)
  • --base-url API base URL (default: https://api-prd.nocfo.io)
  • --page-size Page size for pagination (default: 200)
  • --token PAT token (if omitted, the tool will prompt)
  • --concurrency/-c Number of concurrent downloads (default: 4)

PAT token (Personal Access Token)

The API uses token-based authentication. The token must be passed in the Authorization header as:

Authorization: Token <your_token_here>

You can create and manage tokens in the NoCFO web app under Account Settings:

The CLI prompts for a token at startup if you do not provide --token.

Examples

Download attachments for business acme-corp to ./exports:

nocfo-dl acme-corp --output-dir ./exports

Use a custom API base URL:

nocfo-dl acme-corp --base-url https://api-prd.nocfo.io

Limit concurrency:

nocfo-dl acme-corp --concurrency 8

Development

python -m venv .venv
source .venv/bin/activate
pip install -e .

Run locally:

python -m nocfo_file_downloader <business_slug>

License

MIT

Metadata

Release files for nocfo-file-downloader 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nocfo-file-downloader 0.1.0
File Size Uploaded Provenance Actions
nocfo_file_downloader-0.1.0.tar.gz 13.9 kB Without provenance Details for nocfo_file_downloader-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nocfo-file-downloader 0.1.0
File Interpreter ABI Platform Actions
nocfo_file_downloader-0.1.0-py3-none-any.whl Python 3 none any Details for nocfo_file_downloader-0.1.0-py3-none-any.whl

Total release size: 20.9 kB

Release files / nocfo_file_downloader-0.1.0.tar.gz

Download URL nocfo_file_downloader-0.1.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
60b97be1d51fd49bee8f51d89d0544c8445119f900c193891f40647f96f0524e
BLAKE2b-256 checksum
How to use checksums
6c95db2d47c369f0e2a899dc753ccb735ce8f9f0366090a1f2521b48c988150c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.8 Darwin/24.0.0

Release files / nocfo_file_downloader-0.1.0-py3-none-any.whl

Download URL nocfo_file_downloader-0.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c6d95d5feda122933367261c472b7e73bbb457a2314b9438c091b543a39ba73
BLAKE2b-256 checksum
How to use checksums
9535dab859ead1c81d531f9128bab66b0fc916e3642c74dfa5804e0d956cda89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.8 Darwin/24.0.0

Security for nocfo-file-downloader 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page