Skip to main content

Library for working with Open Financial Exchange (OFX) data

Project description

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

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

ofxtools-1.1.1.tar.gz (196.0 kB view details)

Uploaded Source

Built Distribution

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

ofxtools-1.1.1-py3-none-any.whl (236.8 kB view details)

Uploaded Python 3

File details

Details for the file ofxtools-1.1.1.tar.gz.

File metadata

  • Download URL: ofxtools-1.1.1.tar.gz
  • Upload date:
  • Size: 196.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ofxtools-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b55803e622539e59d04209ec0a289338557973c331d86031e9868d84592912a6
MD5 0830efcdbe2a75e52d38dfa610644538
BLAKE2b-256 0d1512ce2de32fbdeb26ef20510f9d8dba1c5a408c3061e0a4cd20d28140ecb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ofxtools-1.1.1.tar.gz:

Publisher: publish.yml on csingley/ofxtools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ofxtools-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: ofxtools-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 236.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ofxtools-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c6a80cfd08d8a6ce7e791ce3bc317e203f36359a0961b20df667cf91a9560e9
MD5 75c9f30759f81af75bc830a6991e0894
BLAKE2b-256 0a122033cdcf76d05cd4cdab318074428e74c2be4536377bb62832148b034609

See more details on using hashes here.

Provenance

The following attestation bundles were made for ofxtools-1.1.1-py3-none-any.whl:

Publisher: publish.yml on csingley/ofxtools

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