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.7.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

card_data_parsers-0.7.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: card_data_parsers-0.7.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for card_data_parsers-0.7.0.tar.gz
Algorithm Hash digest
SHA256 42ee5b3c0de396605146164212c7c681d875a45ea3eab7db843a774c3c2d3507
MD5 24d865d79411c7be5bde5e969437b735
BLAKE2b-256 8b135a474462ae4f8a79d2c55fa5ee51dc09fb30b2c86360b41dc20da4a1b442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: card_data_parsers-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for card_data_parsers-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad20ae70abd8fac2d0f6258f930155dc10d63d64eb5864a544457ebde5087f22
MD5 900c5e5ae6c0768e279b8b4ced8e0f06
BLAKE2b-256 eaea8bbbaee41b00fb6f6b151f233ceac28f8b9a91eeddef94737d76646943a5

See more details on using hashes here.

Supported by

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