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.account                         # 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.

Tests

Run the tests with python:

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.

Metadata

Release files for ofxparse 0.9

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.9
File Size Uploaded Provenance Actions
ofxparse-0.9.tar.gz 7.3 kB Without provenance Details for ofxparse-0.9.tar.gz

Built distribution (wheel)

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

Total release size: 23.3 kB

Release files / ofxparse-0.9.tar.gz

Download URL ofxparse-0.9.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6ac531181693c0e6ed8f696adf0aaa5241db5fe83cacd79c00e96ffa8af13d7d
BLAKE2b-256 checksum
How to use checksums
ebed8eccea67f696576ef2461a1d7746b03ca38b537a5a9f10c9779abf3a9b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL ofxparse-0.9-py2.7.egg
Size 16.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
40c374b051d9dd9b0879399d5510bfb68979563a08d82c3bc1b0fa5eec62f904
BLAKE2b-256 checksum
How to use checksums
4ecdf545a552c6b771fd366bec345fda333620911d91d61d248a7c7c80a44f34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ofxparse 0.9

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.

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