fyle-bank-feed-parser-sdk-py
Bank feeds parsers collection.
Usage
To use the VCF parser, use the VCFParser class:
from card_data_parsers import VCFParser, ParserError
try:
with open(dir + '/input.vcf') as input_file:
result = VCFParser.parse(
file_obj=input_file,
account_number_mask_begin=4,
account_number_mask_end=4
)
print(result)
except ParserError as e:
print(f'Omg! error {e}')
Similarly, you can use AmexParser, CDFParser, S3DFParser and HappayParser for the right file types.
Development
pip install -r requirements.txt
Check implemented parsers for examples.
Run tests
chmod +x test.sh
./test.sh
Releasing a new version
To release new version to Pypi:
- Create a new release here. OR
- Create a git tag and push that tag(after merge) with version number like:
git tag v0.1.0 git push origin v0.1.0
Versioning semantics
The parse method is supposed to return a list of transactions. This is a list of python dict objects that looks like this:
[{"bank_name": "Test BANK", "vendor": "Test", "sync_type": "BANK FEED - VCF", "transaction_type": "debit", "currency": "EUR", "amount": "124.74", "transaction_date": "2018-11-30T10:00:00.000000Z", "account_number": "4142********6333", "transaction_dt": "2018-11-30T10:00:00.000000Z", "external_id": "b2a242d1d9814394b594044b77f36f2f"}]
If there is any non-backward compatible change to this structure e.g. a key is deleted, then bump up major number. Otherwise, bump up minor number.
Release files for card-data-parsers 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| card_data_parsers-0.12.0.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| card_data_parsers-0.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.6 kB
Release files / card_data_parsers-0.12.0.tar.gz
| Download URL | card_data_parsers-0.12.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e86ab3112d125155f6b5254b9184c7ebe9a14051a8beb4c5c66d1c0c47ab747c
|
|
BLAKE2b-256 checksum How to use checksums |
76552c39c24a3154ade9a7b2662786dc85d00c48d4fe6ac7e47cea8a07cd844e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / card_data_parsers-0.12.0-py3-none-any.whl
| Download URL | card_data_parsers-0.12.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4de91bc2315fe2061d156cd437dc3d26558075cce2811ecfa9dfd5410584e387
|
|
BLAKE2b-256 checksum How to use checksums |
a17ef27c3b0a1fc4734ae0266869afa5831a33c61aad6ec5cc04d8d1ee217543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|