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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file casparser-0.2.1.tar.gz.

File metadata

  • Download URL: casparser-0.2.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for casparser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 eb033a9df24f3feae432446b402d2292b2f67587d16281323523f9acbc2c88a2
MD5 2d6ac5c8ae28fe83a73cef17c120c017
BLAKE2b-256 64fdfe8c8940ad6199a4c46c0124b191e0418a258b7734cf91e4f7ee1f7158f1

See more details on using hashes here.

File details

Details for the file casparser-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: casparser-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for casparser-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fd8e33c6fcbb0cc27baae2c6617a4475c03404c00810e301989e6e9d96751d
MD5 2d37f5d19cf0df5f51e7d40b2cc3112d
BLAKE2b-256 0b29763671ecd06acbd644033cb98a16563a44da3216a4375a68f817b92fb90d

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