Skip to content

Commit

Permalink
skeletal program
Browse files Browse the repository at this point in the history
  • Loading branch information
ebridges committed Jun 26, 2017
1 parent a3837b9 commit ded0c62
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
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.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docopt
34 changes: 34 additions & 0 deletions setup.py
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',
]
},
)
1 change: 1 addition & 0 deletions transaction_downloader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION=1.0
20 changes: 20 additions & 0 deletions transaction_downloader/transaction_downloader.py
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()

0 comments on commit ded0c62

Please sign in to comment.