(Karvy/Kfintech/CAMS) Consolidated Account Statement (CAS) PDF parser
Reason this release was yanked:
Incomplete package
Project description
CASParser
Parse Consolidated Account Statement (CAS) PDF files generated from CAMS/KFINTECH
Installation
pip install casparser
with faster PyMuPDF parser
pip install casparser[mupdf]
Note: Enabling this dependency could result in licensing changes. Check the License section for more details
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
License
CASParser is distributed under MIT license by default. However enabling the optional dependency
mupdf
would imply the use of PyMuPDF /
MuPDF and hence the licenses GNU GPL v3 and GNU Affero GPL v3
would apply. Copies of all licenses have been included in this repository. - IANAL
Changelog
0.3.0 - 2020-10-25
- Breaking Change:
folios
is a list instead of dict, so that the order is preserved during format conversion to other data types like json. - Added a second parser based on PyMuPDF / MuPDF - ~15-20x faster compared to pure-python pdfminer.
- Added AMC detection (accessible via
amc
property of folio) - CLI summary now includes the number of transactions processed.
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.0 - 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
Release history Release notifications | RSS feed
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.3.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for casparser-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4577cf00e343cecbb5d3073b2c2f4bff858181f4fc0b3f7ae94c302de711a922 |
|
MD5 | c535576a25688b2ce2fa24a85a0289ce |
|
BLAKE2b-256 | 0b73ea9a6aecbb8de38a70daac040f93fd1bfcc9b423ddc97fbd03988c901110 |