Skip to main content

Tools for working with the OFX (Open Financial Exchange) file format

Project description

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, called BankAccount, CreditAccount and InvestmentAccount files. This library has been tested with real-world samples of all three types. If you find a file that does not work with this library, please consider contributing the file so ofxparse can be improved. See the Help! section below for directions on how to do this.

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!

Sample .ofx files are very useful. If you want to help us out, please edit all identifying information from the file and then email it to jseutter dot ofxparse at gmail dot com.

Development

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

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

Test Coverage Report:

coverage run -m unittest tests.test_parse
coverage html
firefox htmlcov/index.html

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.

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

ofxparse-0.14.tar.gz (42.6 kB view details)

Uploaded Source

Built Distributions

ofxparse-0.14-py3.3.egg (66.6 kB view details)

Uploaded Egg

ofxparse-0.14-py2.7.egg (65.7 kB view details)

Uploaded Egg

File details

Details for the file ofxparse-0.14.tar.gz.

File metadata

  • Download URL: ofxparse-0.14.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ofxparse-0.14.tar.gz
Algorithm Hash digest
SHA256 d8c486126a94d912442d040121db44fbc4a646ea70fa935df33b5b4dbfbbe42a
MD5 4ad8a34e008d4893a61eadd593176f0f
BLAKE2b-256 2b525cdc42194b9c3059e948bc9cd09408b69189325c4071f132a06438d555b0

See more details on using hashes here.

File details

Details for the file ofxparse-0.14-py3.3.egg.

File metadata

  • Download URL: ofxparse-0.14-py3.3.egg
  • Upload date:
  • Size: 66.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ofxparse-0.14-py3.3.egg
Algorithm Hash digest
SHA256 4d2c425f9655e708207928427f67e12762be018fe13b6d0ec3ef543da289c864
MD5 08722ca1d4e7a92b559f9a29899fc934
BLAKE2b-256 7fd04672cf8ebccdb63e5d5340c1b6c4eaab5aac26bbdd79486ae12237a509d2

See more details on using hashes here.

File details

Details for the file ofxparse-0.14-py2.7.egg.

File metadata

  • Download URL: ofxparse-0.14-py2.7.egg
  • Upload date:
  • Size: 65.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ofxparse-0.14-py2.7.egg
Algorithm Hash digest
SHA256 f1b2a3243b386ba7a196cf4353ac1c78604fd7ddfad11ed0bad4c0ab0ec8da51
MD5 22ec809833fbfc7534e6ac7482e2a2e0
BLAKE2b-256 7a385f68734cfd62df9d22c3383240b48559caa7123262b5cfa39da838ca858f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page