Skip to main content

Parsing bank feed data files

Project description

fyle-bank-feed-parser-sdk-py

test pythonpublish

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

card_data_parsers-0.15.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

card_data_parsers-0.15.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file card_data_parsers-0.15.0.tar.gz.

File metadata

  • Download URL: card_data_parsers-0.15.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for card_data_parsers-0.15.0.tar.gz
Algorithm Hash digest
SHA256 edae5391b8d9e75bae45c6306b64eada02b34866d5d143c032c0248edda068fc
MD5 428fba56b7c9cc5ba7d394d8ff70b248
BLAKE2b-256 b306a1ede0d30bfd05dfa4df700562c69dc7b04da31b6161bcc250cd368d25af

See more details on using hashes here.

File details

Details for the file card_data_parsers-0.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for card_data_parsers-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c60aecf455d760957a33df17762e905a34d96a3561eaafe3dac41e69f7672af1
MD5 8b51abaa401f093b700a2afc4b630376
BLAKE2b-256 1f2c0e3b0ff580d2bf16ce95ae7e2b9e7bf6e25bd74902151920d5153fd0ebfe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page