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 text.sh

./test.sh

Releasing a new version

When a new version is ready for release, create a git tag 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:00Z", "account_number": "4142********6333", "transaction_dt": "2018-11-30T10:00:00Z", "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.1.0.tar.gz (13.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.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: card_data_parsers-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.7

File hashes

Hashes for card_data_parsers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1988ad6f572206ccdb3185271d2d378a52ff07232f1bed0c88f39ce4f63dee0c
MD5 c8ef7a4b29002193203b2ec54ed5d7ea
BLAKE2b-256 1fbc566781383ae966a17352ee85b54dc116eda80ae0d1f2dd6430b641733bc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: card_data_parsers-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.7

File hashes

Hashes for card_data_parsers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c540c595c2c1ad65dc8fb6e4df86df3e3737a666f1ad76642aeb7f8bb6e32746
MD5 075cb66b435ae8e032c8b45dfbb9a251
BLAKE2b-256 400adbc3e91589f0f9f6e61b6d0e3e52af296e3936096b2b3a519cd93418d393

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