Skip to content

Commit 404dc9a

Browse files
committed
v0.5.4: update dependencies
1 parent e335112 commit 404dc9a

File tree

5 files changed

+360
-361
lines changed

5 files changed

+360
-361
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.2.0
5+
rev: v4.1.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/pycqa/flake8
12-
rev: '3.9.2'
12+
rev: '4.0.1'
1313
hooks:
1414
- id: flake8
1515
- repo: https://github.com/ambv/black
16-
rev: stable
16+
rev: 22.1.0
1717
hooks:
1818
- id: black
19+
language_version: python3.8

CHANGELOG.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 0.5.4 - 2022-02-01
4+
- bug fix in CAS summary statement parser
5+
36
## 0.5.3 - 2021-08-21
47
- support for generating csv files for capital gains in 112A format for income tax filing
58
- various bug fixes
@@ -29,11 +32,11 @@
2932
- Minor bug fixes in summary-statement parser.
3033
- cli now uses [rich](http://rich.readthedocs.io/) for console output.
3134
- Use poetry for dependency management and deployment.
32-
- **BREAKING CHANGE**: Table output choices have been removed.
35+
- **BREAKING CHANGE**: Table output choices have been removed.
3336
`-s/--summary` is a flag and doesn't accept any additional arguments.
3437
- Support for folios without PAN (#28).
35-
- add support for new style dividend transactions after IDCW renaming.
36-
- improved parser for transaction entries.
38+
- add support for new style dividend transactions after IDCW renaming.
39+
- improved parser for transaction entries.
3740

3841
## 0.4.6 - 2021-04-04
3942

@@ -49,7 +52,7 @@
4952

5053
- CSV output fixes
5154
- better csv output format for summary CAS statements.
52-
- option to output only summary information for detailed statements
55+
- option to output only summary information for detailed statements
5356
(`-s fancy_grid -o output.csv`)
5457

5558
## 0.4.3 - 2021-01-30
@@ -62,11 +65,11 @@
6265
- supports negative scheme balances
6366
- better scheme name parsing
6467
- fixes dividend transaction parsing
65-
68+
6669

6770
## 0.4.1 - 2021-01-13
6871

69-
- hotfix for parsing folios without KYC details
72+
- hotfix for parsing folios without KYC details
7073

7174
## 0.4.0 - 2021-01-08
7275

@@ -112,13 +115,13 @@
112115

113116
## 0.3.1 - 2020-10-26
114117

115-
- re-release 0.3.0 : Minor bug fix
118+
- re-release 0.3.0 : Minor bug fix
116119

117120
## 0.3.0 - 2020-10-25
118121

119-
- **Breaking Change**: In order to preserve the order of entries, during format
120-
conversion to other data types like json., `folios` is a list instead of dict.
121-
- Added a second parser based on [PyMuPDF](https://github.com/pymupdf/PyMuPDF) /
122+
- **Breaking Change**: In order to preserve the order of entries, during format
123+
conversion to other data types like json., `folios` is a list instead of dict.
124+
- Added a second parser based on [PyMuPDF](https://github.com/pymupdf/PyMuPDF) /
122125
[MuPDF](https://mupdf.com/) - ~15-20x faster compared to pure-python pdfminer.
123126
- Added AMC detection (accessible via `amc` property of folio)
124127
- CLI summary now includes the number of transactions processed.
@@ -137,7 +140,7 @@
137140

138141
## 0.1.2 - 2020-10-14
139142

140-
- Support for parsing investor info
143+
- Support for parsing investor info
141144

142145
## 0.1.1 - 2020-10-14
143146

casparser/parsers/mupdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def cas_pdf_to_text(filename: Union[str, io.IOBase], password) -> PartialCASData
194194
except Exception as e:
195195
raise CASParseError("Unhandled error while opening file :: %s" % (str(e)))
196196

197-
if doc.needsPass:
197+
if doc.needs_pass:
198198
rc = doc.authenticate(password)
199199
if not rc:
200200
raise IncorrectPasswordError("Incorrect PDF password!")
@@ -203,7 +203,7 @@ def cas_pdf_to_text(filename: Union[str, io.IOBase], password) -> PartialCASData
203203
investor_info = None
204204

205205
for page in doc:
206-
text_page = page.getTextPage()
206+
text_page = page.get_textpage()
207207
page_dict = text_page.extractDICT()
208208
blocks = extract_blocks(page_dict)
209209
if file_type == FileType.UNKNOWN:

0 commit comments

Comments
 (0)