pax_global_header 0000666 0000000 0000000 00000000064 13400741301 0014503 g ustar 00root root 0000000 0000000 52 comment=309ae667efa3c8f7192ef6b744c295fbb8a2d101
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/ 0000775 0000000 0000000 00000000000 13400741301 0023167 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/ 0000775 0000000 0000000 00000000000 13400741301 0024637 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque/ 0000775 0000000 0000000 00000000000 13400741301 0026620 5 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque/__init__.py 0000664 0000000 0000000 00000001445 13400741301 0030735 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Edouard Lambert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from .module import BtpbanqueModule
__all__ = ['BtpbanqueModule']
caisseepargne_browser.py 0000664 0000000 0000000 00000001660 13400741301 0033472 0 ustar 00root root 0000000 0000000 woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque # -*- coding: utf-8 -*-
# Copyright(C) 2017 Edouard Lambert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.browser import AbstractBrowser
__all__ = ['CaisseEpargneBrowser']
class CaisseEpargneBrowser(AbstractBrowser):
PARENT = 'caissedepargne'
PARENT_ATTR = 'package.browser.CaisseEpargne'
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque/cenet_browser.py 0000664 0000000 0000000 00000001733 13400741301 0032037 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Edouard Lambert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.browser import AbstractBrowser
__all__ = ['CenetBrowser']
class CenetBrowser(AbstractBrowser):
PARENT = 'caissedepargne'
PARENT_ATTR = 'package.cenet.browser.CenetBrowser'
BASEURL = 'https://www.entreprises.btp-banque.fr'
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque/module.py 0000664 0000000 0000000 00000004165 13400741301 0030465 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Edouard Lambert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.capabilities.bank import CapBank
from weboob.tools.backend import AbstractModule, BackendConfig
from weboob.tools.value import ValueBackendPassword, Value
from .proxy_browser import ProxyBrowser
__all__ = ['BtpbanqueModule']
class BtpbanqueModule(AbstractModule, CapBank):
NAME = 'btpbanque'
DESCRIPTION = u'BTP Banque'
MAINTAINER = u'Edouard Lambert'
EMAIL = 'elambert@budget-insight.com'
VERSION = '1.4'
LICENSE = 'AGPLv3+'
auth_type = {'weak' : "Code confidentiel (pro)",
'strong': "Sesame (pro)"}
CONFIG = BackendConfig(Value('auth_type', label='Type de compte', choices=auth_type, default="weak"),
ValueBackendPassword('login', label='Code utilisateur', masked=False),
ValueBackendPassword('password', label='Code confidentiel ou code PIN', regexp='\d+'),
Value('nuser', label="Numéro d'utilisateur (optionnel)", regexp='\d{0,8}', default=''))
PARENT = 'caissedepargne'
BROWSER = ProxyBrowser
def create_default_browser(self):
return self.create_browser(nuser=self.config['nuser'].get(),
username=self.config['login'].get(),
password=self.config['password'].get(),
domain='www.btp-banque.fr',
weboob=self.weboob)
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque/proxy_browser.py 0000664 0000000 0000000 00000001772 13400741301 0032125 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2017 Edouard Lambert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.browser.switch import SwitchingBrowser
from .caisseepargne_browser import CaisseEpargneBrowser
from .cenet_browser import CenetBrowser
class ProxyBrowser(SwitchingBrowser):
BROWSERS = {
'main': CaisseEpargneBrowser,
'cenet': CenetBrowser,
}
woob-309ae667efa3c8f7192ef6b744c295fbb8a2d101-modules-btpbanque/modules/btpbanque/test.py 0000664 0000000 0000000 00000002040 13400741301 0030145 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
# Copyright(C) 2016 Edouard Lambert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see .
from weboob.tools.test import BackendTest
class BtpbanqueTest(BackendTest):
MODULE = 'btpbanque'
def test_btpbanque(self):
l = list(self.backend.iter_accounts())
if len(l) > 0:
a = l[0]
list(self.backend.iter_history(a))
list(self.backend.iter_coming(a))