Skip to content

Commit

Permalink
PyPi preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbroere committed Apr 10, 2017
1 parent cb74180 commit fc29c9a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 11 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ ING Bank (NL), but extending it for similar CSV exports should be trivial.

```
Usage:
toledger.py <format>
toledger.py <format> <input>
toledger.py <format> [(-a | --append)] <input> <output>
toledger.py <format> [(-f | --from)] <input> <output>
toledger.py <format> [options]
toledger.py <format> [options] <input>
toledger.py <format> [options] <input> <output>
toledger.py (-h | --help)
Options:
-a --append Append to the output file if it exists.
-f --from Account to get balances from.
Default Equity:Unspecified:[IBAN]
-t --to Account to send transactions to.
Default Expenses:Unspecified:[IBAN]
-b --balance Ensure that all output is balanced.
Choose this option if the output must be a
standalone ledger file. These files should always
have a balance of 0 to be valid.
--from=<from> Account to get balances from.
Default Equity:[Unspecified | IBAN]
--to=<to> Account to send transactions to.
Default Expenses:[Unspecified | IBAN]
--name=<name> Account name. Default Assets:[IBAN]
-c --code Use the currency code, e.g. EUR
-s --symbol Use the currency symbol, e.g. €
-h --help Show the usage guidelines.
Expand Down
Empty file removed setup.cfg
Empty file.
32 changes: 32 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from setuptools import setup

def readme():
with open('README.md') as f:
return f.read()

setup(
name='ToLedger',
version='1.0',
description='Convert bank statements to Ledger',
long_description=readme(),
keywords=["ledger", "convert", "conversion", "bank", "ing", "nl", "accounting", "command", "commandline", "cli"],
packages=['toledger'],
url='https://github.com/bartbroere/toledger/',
license='MIT',
author='Bart Broere',
author_email='mail@bartbroere.eu',
install_requires=['docopt'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Office/Business :: Financial',
'Topic :: Utilities',
],
)
6 changes: 3 additions & 3 deletions toledger/toledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
Choose this option if the output must be a
standalone ledger file. These files should always
have a balance of 0 to be valid.
-f --from Account to get balances from.
--from=<from> Account to get balances from.
Default Equity:[Unspecified | IBAN]
-t --to Account to send transactions to.
--to=<to> Account to send transactions to.
Default Expenses:[Unspecified | IBAN]
-n --name Account name. Default Assets:[IBAN]
--name=<name> Account name. Default Assets:[IBAN]
-c --code Use the currency code, e.g. EUR
-s --symbol Use the currency symbol, e.g. €
-h --help Show the usage guidelines.
Expand Down

0 comments on commit fc29c9a

Please sign in to comment.