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

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: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.6.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

card_data_parsers-0.6.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: card_data_parsers-0.6.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for card_data_parsers-0.6.0.tar.gz
Algorithm Hash digest
SHA256 1c9646794349513cbdd12175c9f1716dba25d8073821764495870ef59943bc67
MD5 d05daf5a056d2e40c5b522788c59b406
BLAKE2b-256 8429479cce24e060dce3438ad49d0ed34ae2c76484760e194d12202ba0a7c57f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: card_data_parsers-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for card_data_parsers-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc0fb54974c085cc4b8bc592e1c2ddc7545712cf783d609ab77ce2aecfe658b
MD5 2580232fe8af55dd48222b678c2f1b40
BLAKE2b-256 0fa74e0319cd0e789845189a1f4ae79446a55cf046f9603609eb8b68e7f2cc73

See more details on using hashes here.

Provenance

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