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

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.13.tar.gz (42.4 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Egg

ofxparse-0.13-py2.7.egg (65.6 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for ofxparse-0.13.tar.gz
Algorithm Hash digest
SHA256 847f0ff8841de114deb9990a3d9beccf81d1272143d15807d61064bcbb5aed10
MD5 8df7d84914dc4f12d842975785b82e6f
BLAKE2b-256 b72cf5a278109227c618205405b83ff2a53d669d56936c1f9ad30257eee011c6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ofxparse-0.13-py3.3.egg
Algorithm Hash digest
SHA256 480da4684bfe735cc24e59f2470cab3b7576c7f29b635f7c23daa9fb46fb7b70
MD5 3a6c25c7058afca9d78d4f425209b6d2
BLAKE2b-256 7ff84d03cd265c1958ab397f8db72ac5aecab24a12bd366a9b98e4341bcdbbdb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ofxparse-0.13-py2.7.egg
Algorithm Hash digest
SHA256 647baf3ddd32821498aa6c6c264245ad18a58160289859d816d1f586a168d70e
MD5 541b36efc39ec5b55ef89e3f0dbe6b63
BLAKE2b-256 f0add295d7d58a7c8143d978b67235e726fcba21f9cbb4472801af6fe344e57e

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