Skip to main content

Open Financial Exchange (OFX) Tools for Python

CI tests status https://coveralls.io/repos/github/csingley/ofxtools/badge.svg?branch=master https://img.shields.io/badge/dependencies-None-green.svg https://badge.fury.io/py/ofxtools.svg Total PyPI downloads

ofxtools is a Python library for working with Open Financial Exchange (OFX) data - the standard format for downloading financial information from banks and stockbrokers. OFX data is widely provided by financial institutions so that their customers can import transactions into financial management software such as Quicken or GnuCash.

If you want to download your transaction data outside of one of these programs - if you wish to develop a Python application to use this data - if you need to generate your own OFX-formatted data… ofxtools is for you!

What is it?

ofxtools requests, consumes and produces both OFXv1 (SGML) and OFXv2 (XML) formats. It converts serialized markup to/from native Python objects of the appropriate data type, while preserving structure. It also handles Quicken’s QFX format, although it ignores Intuit’s proprietary extension tags.

In a nutshell, ofxtools makes it simple to get OFX data and extract it, or export your data in OFX format.

ofxtools takes a comprehensive, standards-based approach to processing OFX. It targets compliance with the OFX specification, specifically OFX versions 1.6 and 2.03.

ofxtools Coverage of the OFX Specification
  • Section 7 (financial institution profile)

  • Section 8 (service activation; account information)

  • Section 9 (email over OFX)

  • Section 10 (recurring bank transfers)

  • Section 11 (banking)

  • Section 12 (bill pay)

  • Section 13 (investments)

  • OFX tax extensions (1099 forms)

This should cover the great majority of real-world OFX use cases. A particular focus of ofxtools is full support of the OFX investment message set, which has been somewhat neglected by the Python community.

It’s currently a low priority to implement Section 14 (bill presentment) or the extensions contained in OFX versions beyond 2.03, but you’re welcome to contribute code if you need these.

Some care has been taken with the data model to make it easily maintainable and extensible. The ofxtools.models subpackage contains simple, direct translations of the relevant sections of the OFX specification. Using existing models as templates, it’s quite straightforward to define new models and cover more of the spec as needed (the odd corner case notwithstanding).

More than 10 years’ worth of OFX data from various financial institutions has been run through the ofxtools parser, with the results checked. Test coverage is high.

Where is it?

Full documentation is available at Read the Docs.

For ease of installation, ofxtools is released on PyPI.

Development of ofxtools is centralized at GitHub, where you will find a bug tracker.

Installation Dependencies

ofxtools requires Python version 3.10+, and depends only on the standard library (no external dependencies).

Metadata

Release files for ofxtools 1.1.2

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

Source distribution (sdist)

Source distribution for ofxtools 1.1.2
File Size Uploaded Provenance Actions
ofxtools-1.1.2.tar.gz 197.6 kB With provenance Details for ofxtools-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ofxtools 1.1.2
File Interpreter ABI Platform Actions
ofxtools-1.1.2-py3-none-any.whl Python 3 none any Details for ofxtools-1.1.2-py3-none-any.whl

Total release size: 435.9 kB

Release files / ofxtools-1.1.2.tar.gz

Download URL ofxtools-1.1.2.tar.gz
Size 197.6 kB
Tags Source
SHA-256 checksum
How to use checksums
53a172296866bb6b5f7c8cfc41b2f7b3a49f1c18e321c61e920d5c1828377f9d
BLAKE2b-256 checksum
How to use checksums
825aad13868b900dfd8804e6be1a8ed106dda8fade389a5d2cbcd0b27c34bb7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Release files / ofxtools-1.1.2-py3-none-any.whl

Download URL ofxtools-1.1.2-py3-none-any.whl
Size 238.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a26ee11af98ef9631333d681b4d8b76579f34ad1e60315e495e4593ef82b5cc
BLAKE2b-256 checksum
How to use checksums
3f52fe0a773d377b1e05bb7be037ae74d065ddfc6deb351aba340da930e830ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Security for ofxtools 1.1.2

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.

Select from 2 files

Attestation for ofxtools-1.1.2.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 22, 2026.

Transparency log

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

1.1.2 This release

2 release files Full 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