tariochbctools 1.5.1__py2.py3-none-any.whl → 1.5.3__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,8 @@ class MailAdapterImporter(Importer):
30
30
  for msg in mailbox.fetch():
31
31
  processed = False
32
32
  for att in msg.attachments:
33
+ if not att.filename:
34
+ continue
33
35
  with tempfile.TemporaryDirectory() as tmpdirname:
34
36
  attFileName = path.join(tmpdirname, att.filename)
35
37
  with open(attFileName, "wb") as attFile:
@@ -1,10 +1,11 @@
1
1
  import csv
2
2
  import logging
3
3
  import re
4
- from datetime import datetime, timedelta
4
+ from datetime import timedelta
5
5
  from decimal import Decimal
6
6
 
7
7
  import beangulp
8
+ import dateutil.parser
8
9
  from beancount.core import data
9
10
 
10
11
 
@@ -31,7 +32,7 @@ class Importer(beangulp.Importer):
31
32
  for row in reader:
32
33
  try:
33
34
  book_date_str, text, credit, debit, val_date, balance_str = tuple(row)
34
- book_date = datetime.strptime(book_date_str, "%Y-%m-%d").date()
35
+ book_date = dateutil.parser.parse(book_date_str).date()
35
36
  if credit:
36
37
  amount = data.Amount(Decimal(credit), self.currency)
37
38
  elif debit:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tariochbctools
3
- Version: 1.5.1
3
+ Version: 1.5.3
4
4
  Summary: Importers, plugins and price fetchers for Beancount
5
5
  Home-page: https://github.com/tarioch/beancounttools/
6
6
  Author: Patrick Ruckstuhl
@@ -13,7 +13,7 @@ tariochbctools/importers/cembrastatement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
13
13
  tariochbctools/importers/cembrastatement/importer.py,sha256=2vY7bBsVaYoluVO3iGbhcoP2N9eQMYSzjxFgLTCeLT0,3915
14
14
  tariochbctools/importers/general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  tariochbctools/importers/general/deduplication.py,sha256=5appwJTczAws2jQcN1Bk-nanOHAOtJf_WJzU7i3fIR0,433
16
- tariochbctools/importers/general/mailAdapterImporter.py,sha256=BHzO38YkWpJf7eB0VHdSr0VtKNuDn5WAI4Y9Edhhlcg,1771
16
+ tariochbctools/importers/general/mailAdapterImporter.py,sha256=Ap3QdQxn1J3WvbyugvN5DKz8STM6Fh7YXag06MURiYg,1845
17
17
  tariochbctools/importers/general/mt940importer.py,sha256=KkgA_lpSBeGKgBGCGaOPWfaThyrXpB4pGObCbKfSaFc,2204
18
18
  tariochbctools/importers/general/priceLookup.py,sha256=QjwhxOYuEATwtaHnJ9OKl3D6JcnDJQS_5Wo7dQmFDFM,865
19
19
  tariochbctools/importers/ibkr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -26,7 +26,7 @@ tariochbctools/importers/nordigen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
26
26
  tariochbctools/importers/nordigen/importer.py,sha256=lNAcuv-iDQfb82xVRi7--ApvCLCBLDGJLXX7awhDdvw,3953
27
27
  tariochbctools/importers/nordigen/nordigen_config.py,sha256=GHSdyBpjbAscn-Kob0n4Xrp2L0yjc7vExshwt7O60hM,6468
28
28
  tariochbctools/importers/postfinance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- tariochbctools/importers/postfinance/importer.py,sha256=PLBbnswb_tHt8wzd7yCC4UAWHoPn3WcJIXaOMewz6fc,2524
29
+ tariochbctools/importers/postfinance/importer.py,sha256=Tr5QD2WPKWWdafJ5qjveLRJxXO-2SBBklJPHE1jMI_c,2529
30
30
  tariochbctools/importers/quickfile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  tariochbctools/importers/quickfile/importer.py,sha256=HgS7lSi7egxkj-IWd77MS-vhepYNCRXZwVbeCornkzg,6479
32
32
  tariochbctools/importers/radicant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -53,9 +53,9 @@ tariochbctools/plugins/check_portfolio_sum.py,sha256=naJ2j6BFpQhJhT2c-gfjyIdcYe0
53
53
  tariochbctools/plugins/generate_base_ccy_prices.py,sha256=4CDzUosjMWCZfsBJMLrf-i5WNCHexI2rdm5vIDYW-AI,1314
54
54
  tariochbctools/plugins/prices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  tariochbctools/plugins/prices/ibkr.py,sha256=GYCjnlF-MK-ZFPEr0M6T4iO3Etq0tMmrMlsHGInXUO8,1405
56
- tariochbctools-1.5.1.dist-info/licenses/LICENSE.txt,sha256=VR2hkz3p9Sw4hSXc7S5iZTOXGeV4h-i8AO_q0zEmtkE,1074
57
- tariochbctools-1.5.1.dist-info/METADATA,sha256=ByXtYGQYJRS1tEQFArWce0cdpm13CHQmQBH-r7yJ8zY,2180
58
- tariochbctools-1.5.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
59
- tariochbctools-1.5.1.dist-info/entry_points.txt,sha256=bo7wO1u-PIDHNuqsTEekC56VCAmn2i2vTRcKXxqc770,158
60
- tariochbctools-1.5.1.dist-info/top_level.txt,sha256=CiA_NepCI6zDNsaORA55zmpuJFSnTvLESraIL13xiOQ,15
61
- tariochbctools-1.5.1.dist-info/RECORD,,
56
+ tariochbctools-1.5.3.dist-info/licenses/LICENSE.txt,sha256=VR2hkz3p9Sw4hSXc7S5iZTOXGeV4h-i8AO_q0zEmtkE,1074
57
+ tariochbctools-1.5.3.dist-info/METADATA,sha256=8syjW4Wql8arNUPXryirRwufVz34RHWtiQ5cr7nw_Qg,2180
58
+ tariochbctools-1.5.3.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
59
+ tariochbctools-1.5.3.dist-info/entry_points.txt,sha256=bo7wO1u-PIDHNuqsTEekC56VCAmn2i2vTRcKXxqc770,158
60
+ tariochbctools-1.5.3.dist-info/top_level.txt,sha256=CiA_NepCI6zDNsaORA55zmpuJFSnTvLESraIL13xiOQ,15
61
+ tariochbctools-1.5.3.dist-info/RECORD,,