Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fylein/fyle-bank-feed-parser-sdk-py
https://github.com/fylein/fyle-bank-feed-parser-sdk-py
team-be
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fylein/fyle-bank-feed-parser-sdk-py
- Owner: fylein
- License: mit
- Created: 2021-08-12T10:48:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T11:49:50.000Z (10 months ago)
- Last Synced: 2024-08-09T02:23:47.669Z (5 months ago)
- Topics: team-be
- Language: Python
- Size: 155 KB
- Stars: 2
- Watchers: 10
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# fyle-bank-feed-parser-sdk-py
[![test](https://github.com/fylein/fyle-bank-feed-parser-sdk-py/actions/workflows/test.yml/badge.svg)](https://github.com/fylein/fyle-bank-feed-parser-sdk-py/actions/workflows/test.yml) [![pythonpublish](https://github.com/fylein/fyle-bank-feed-parser-sdk-py/actions/workflows/pythonpublish.yml/badge.svg)](https://github.com/fylein/fyle-bank-feed-parser-sdk-py/actions/workflows/pythonpublish.yml)
Bank feeds parsers collection.
## Usage
To use the VCF parser, use the VCFParser class:
```
from card_data_parsers import VCFParser, ParserErrortry:
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](https://github.com/fylein/fyle-bank-feed-parser-sdk-py/releases/new).
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.