Skip to main content

ofxparse

ofxparse is a parser for Open Financial Exchange (.ofx) format files. OFX files are available from almost any online banking site, so they work well if you want to pull together your finances from multiple sources. Online trading accounts also provide account statements in OFX files.

There are three different types of OFX files. This library has been tested with BankAccount files. The other two types, CreditAccount and InvestmentAccount have not been tested. If you have a sample of these other types that could be used to help this project, please see the Help! section below.

Example Usage

Here’s a sample program:

from ofxparse import OfxParser

ofx = OfxParser.parse(file('file.ofx'))
ofx.accounts                        # An account with information
ofx.account.number                  # The account number
ofx.account.routing_number          # The transit id (sometimes called branch number)
ofx.account.statement               # Account information for a period of time
ofx.account.statement.start_date    # The start date of the transactions
ofx.account.statement.end_date      # The end date of the transactions
ofx.account.statement.transactions  # A list of account activities
ofx.account.statement.balance       # The money in the account as of the statement date
ofx.account.statement.available_balance # The money available from the account as of the statement date

Help!

I’m looking for different types of accounts to make this library more robust. I’m looking for sample credit account or investment account files. Please (anonymize first) and mail to jseutter dot ofxparse at gmail dot com.

Development

Prerequisites:: (Ubuntu) sudo apt-get install python-beautifulsoup python-nose (pip) pip install BeautifulSoup nose

Tests:: Simply running the “nose” command should run the tests. If you don’t have nose installed, the following might also work:

python -m unittest tests.test_parse

Homepage

http://sites.google.com/site/ofxparse

License

ofxparse is released under an MIT license. See the LICENSE file for the actual license text. The basic idea is that if you can use Python to do what you are doing, you can also use this library.

Release files for ofxparse 0.12

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

Source distribution (sdist)

Source distribution for ofxparse 0.12
File Size Uploaded
ofxparse-0.12.tar.gz 29.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ofxparse 0.12
File Interpreter ABI Platform
ofxparse-0.12-py3.3.egg Legacy Egg format - - Details
ofxparse-0.12-py2.7.egg Legacy Egg format - - Details

Total release size: 163.7 kB

Release files / ofxparse-0.12.tar.gz

Download URL ofxparse-0.12.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
37447eac85bb5b26746b845b67817bff76871101c551d88011b6aeb059dae1a6
BLAKE2b-256 checksum
How to use checksums
bbeacb0dfdda51de27bbb331aa12978ed0ce4f5189a4fc21b9cac64971140f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ofxparse-0.12-py3.3.egg

Download URL ofxparse-0.12-py3.3.egg
Size 66.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
deed21281261bda74749efe6135fd085d4918caf9dd3e45d957366ddca2ac9e4
BLAKE2b-256 checksum
How to use checksums
f5f614eeb0bbf9fd823aaf80a96f9d104a5b9d0b35a4a77cff267d92deb4bfb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ofxparse-0.12-py2.7.egg

Download URL ofxparse-0.12-py2.7.egg
Size 67.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
7e3184dc20cff7363389a377bf1e965ed9d5362c588243b4c7e0279c79924526
BLAKE2b-256 checksum
How to use checksums
2932678b18e026acada79da0370ae9990b472d199309229d4f818c4d491aae00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.21

1 release file

0.20

3 release files

0.19

3 release files

0.18

3 release files

0.17

2 release files

0.16

1 release file

0.15

3 release files

0.14

3 release files

0.13

3 release files

This release

0.12 This release

3 release files

0.11

2 release files

0.10

2 release files

0.9

2 release files

0.8

5 release files

0.7

4 release files

0.6

5 release files

0.5

5 release files

0.4

5 release files

0.3

4 release files

0.2

4 release files

0.1

4 release files

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