~aurelien-dumaine/+junk/ebicspy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
This is an open source Python library dealing with the EBICS protocole.


EXAMPLE :
=========

#Prototype : __init__(self, name, urlHost, urlPort, urlRoot, hostId, keysDirectory="keys") :
bank = Bank('testBank', 'https://server-ebics.webank.fr', 28103, '/WbkPortalFileTransfert/EbicsProtocol', 'EBIXQUAL')

#Prototype : __init__(self, name, partnerId, userId, keysDirectory="keys")
partner = Partner('testPartner', 'YUNTUX', 'YUNTUX')

# First init create the keys and the INI/HIA letters to send to teh bank
partner.init(bank)
# After the validation of the keys by the bank, the second init download the bank key
partner.init(bank)
# Further init just load the bank and partner keys

# Once you have downloaded the bank key, you can use the software normally with fileDownload and fileUpload functions

#Prototype : fileDownload(partner, bank, destination_path, start_date=None, end_date=None, fdl_type='camt.xxx.cfonb120.stm') 
fileDownload(partner, bank, '')

#Prototype : fileUpload(partner, bank, file_path, file_format, file_name)
fileUpload(partner, bank, 'file.xml', DirectDebit | CreditTransfert, "Ebics test")