forked from ebridges/plaid2qif
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Description | ||
|
||
|
||
|
||
### Authenticating | ||
|
||
* Run a webserver on this directory and open `auth.html`. | ||
* Enter credentials for chosen institution & copy `public_token` from browser console. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docopt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import os | ||
from distutils.core import setup | ||
from setuptools import setup, find_packages | ||
|
||
with open('requirements.txt') as f: | ||
REQUIRED = [line.rstrip('\n') for line in f] | ||
|
||
__version__ = None | ||
with open('transaction_downloader/__init__.py') as f: | ||
for line in f: | ||
if(line.startswith('VERSION')): | ||
__version__ = line.strip().split('=')[1] | ||
|
||
|
||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
||
setup( | ||
name = "transaction-downloader", | ||
version = __version__, | ||
author = "Edward Bridges", | ||
author_email = "[email protected]", | ||
description = "Download financial transactions from financial institutions as QIF files.", | ||
license = "BSD", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
long_description=read('README.md'), | ||
install_requires=REQUIRED, | ||
entry_points={ | ||
'console_scripts': [ | ||
'transaction-downloader = transaction_downloader.transaction_downloader:main', | ||
] | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VERSION=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Transaction Downloader. | ||
Usage: | ||
transaction-downloader auth --public-token=<token> | ||
transaction-downloader -h | --help | ||
transaction-downloader --version | ||
Options: | ||
-h --help Show this screen. | ||
--version Show version. | ||
--public-token=<token> Public token. | ||
""" | ||
from docopt import docopt | ||
|
||
def main(): | ||
arguments = docopt(__doc__, version='Transaction Downloader 1.0') | ||
print(arguments) | ||
|
||
if __name__ == '__main__': | ||
main() |