Skip to content

Commit 70f82ee

Browse files
committed
v0.4.4 - update README.md
1 parent da984df commit 70f82ee

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ csv_str = casparser.read_cas_pdf("/path/to/cas/file.pdf", "password", output="cs
7070
"rta": "string",
7171
"open": "number",
7272
"close": "number",
73+
"close_calculated": "number",
7374
"valuation": {
7475
"date": "date",
7576
"nav": "number",
@@ -136,13 +137,27 @@ Usage: casparser [-o output_file.json|output_file.csv] [-p password] [-s type] [
136137
137138
**Note:** `casparser cli` supports two special output file formats [-o _file.json_ / _file.csv_]
138139
1. `json` - complete parsed data is exported in json format (including investor info)
139-
2. `csv` - transactions with AMC, Folio and Scheme info are exported into csv format.
140+
2. `csv` - Summary info is exported in csv format if the input file is a summary statement or if
141+
a summary flag (`-s/--summary`) is passed as argument to the CLI. Otherwise, full
142+
transaction history is included in the export.
140143
3. any other extension - The summary output is saved in the file.
141144
142145
#### Demo
143146
144147
![demo](https://raw.githubusercontent.com/codereverser/casparser/main/assets/demo.jpg)
145148
149+
## ISIN & AMFI code support
150+
151+
Since v0.4.3, `casparser` includes support for identifying ISIN and AMFI code for the parsed schemes
152+
via the helper module [casparser-isin](https://github.com/codereverser/casparser-isin/). If the parser
153+
fails to assign ISIN or AMFI codes to a scheme, try updating the local ISIN database by
154+
155+
```shell
156+
casparser-isin --update
157+
```
158+
159+
If it still fails, please raise an issue at [casparser-isin](https://github.com/codereverser/casparser-isin/issues/new) with the
160+
failing scheme name(s).
146161
147162
## License
148163

casparser/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.3
1+
0.4.4

casparser/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,13 @@ def cli(output, summary, password, include_all, force_pdfminer, filename):
232232
if output_ext in (".csv", ".json"):
233233
if output_ext == ".csv":
234234
if summary or data["cas_type"] == CASFileType.SUMMARY.name:
235+
click.echo("Generating Summary CSV file...")
235236
conv_fn = cas2csv_summary
236237
else:
238+
click.echo("Generating Detailed CSV file...")
237239
conv_fn = cas2csv
238240
else:
241+
click.echo("Generating JSON file...")
239242
conv_fn = cas2json
240243
with open(output, "w", newline="", encoding="utf-8") as fp:
241244
fp.write(conv_fn(data))

0 commit comments

Comments
 (0)