Skip to main content

(Karvy/Kfintech/CAMS) Consolidated Account Statement (CAS) PDF parser

Project description

CASParser

code style: black GitHub PyPI - Python Version

Parse Consolidated Account Statement (CAS) PDF files generated from CAMS/KFINTECH

Installation

pip install casparser

Usage

import casparser
data = casparser.read_cas_pdf('/path/to/cas/pdf/file.pdf', 'password')

CLI

Usage: casparser [-o output_file.json] [-p password] [-s] CAS_PDF_FILE

Options:
  -o, --output FILE  Output file path (json)
  -s, --summary      Print Summary of transactions parsed.
  -p PASSWORD        CAS password
  --version          Show the version and exit.
  --help             Show this message and exit.
Demo

demo

Changelog

0.2.1 - 2020-10-23

  • read_cas_pdf now supports more input types
  • better cli summary output
  • fixed investor info parsing where mobile numbers don't have country code
  • updated dependencies

0.2 - 2020-10-15

  • removed support for python < 3.8 versions
  • Better investor info parser

0.1.2 - 2020-10-14

  • Support for parsing investor info

0.1.1 - 2020-10-14

  • Support for parsing folios without PAN

0.1.0 - 2020-10-11

  • Initial release

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

casparser-0.2.1.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

casparser-0.2.1-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

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