pax_global_header 0000666 0000000 0000000 00000000064 13456561307 0014524 g ustar 00root root 0000000 0000000 52 comment=8a38869aacc8fcf13bca47ab184e14418b9fe847
woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/ 0000775 0000000 0000000 00000000000 13456561307 0022731 5 ustar 00root root 0000000 0000000 woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/modules/ 0000775 0000000 0000000 00000000000 13456561307 0024401 5 ustar 00root root 0000000 0000000 woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/modules/erehsbc/ 0000775 0000000 0000000 00000000000 13456561307 0026014 5 ustar 00root root 0000000 0000000 woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/modules/erehsbc/__init__.py 0000664 0000000 0000000 00000001516 13456561307 0030130 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Edouard Lambert
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see .
from .module import ErehsbcModule
__all__ = ['ErehsbcModule']
woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/modules/erehsbc/browser.py 0000664 0000000 0000000 00000001651 13456561307 0030054 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Edouard Lambert
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see .
from weboob.browser import AbstractBrowser
class ErehsbcBrowser(AbstractBrowser):
PARENT = 's2e'
PARENT_ATTR = 'package.browser.ErehsbcBrowser'
woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/modules/erehsbc/module.py 0000664 0000000 0000000 00000003237 13456561307 0027660 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Edouard Lambert
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see .
from weboob.tools.backend import AbstractModule, BackendConfig
from weboob.tools.value import ValueBackendPassword, Value
from weboob.capabilities.bank import CapBank
from .browser import ErehsbcBrowser
__all__ = ['ErehsbcModule']
class ErehsbcModule(AbstractModule, CapBank):
NAME = 'erehsbc'
DESCRIPTION = u'HSBC Épargne Salariale'
MAINTAINER = u'Edouard Lambert'
EMAIL = 'elambert@budget-insight.com'
LICENSE = 'LGPLv3+'
VERSION = '1.6'
CONFIG = BackendConfig(
ValueBackendPassword('login', label='Identifiant', masked=False),
ValueBackendPassword('password', label='Code secret', regexp='^(\d{6})$'),
Value('otp', label=u'Code de sécurité', default='', regexp='^(\d{6})$'))
BROWSER = ErehsbcBrowser
PARENT = 's2e'
def create_default_browser(self):
return self.create_browser(self.config, weboob=self.weboob)
woob-8a38869aacc8fcf13bca47ab184e14418b9fe847-modules-erehsbc/modules/erehsbc/test.py 0000664 0000000 0000000 00000002023 13456561307 0027342 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2015 Christophe Lampin
#
# This file is part of a weboob module.
#
# This weboob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This weboob module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this weboob module. If not, see .
from weboob.tools.test import BackendTest
class ErehsbcTest(BackendTest):
MODULE = 'erehsbc'
def test_bank(self):
l = list(self.backend.iter_accounts())
if len(l) > 0:
a = l[0]
list(self.backend.iter_history(a))