Skip to main content

mfreport

Project description

mfreport

test License PyPI version Python Versions codecov

mfreport retrieves a list of assets from moneyforward.com, formats and outputs it. Please use this tool for personal purposes only.

Usage

$ pip install mfreport
$ mfreport -h
usage: main.py [-h] [-u USER] [-p PASSWORD] [-o OTP] [-e]

options:
  -h, --help            show this help message and exit
  -u USER, --user USER  username
  -p PASSWORD, --password PASSWORD
                        password
  -o OTP, --otp OTP     one time password
  -e, --example         Use sample data instead of data downloaded from moneyforward

Example

$ mfreport -e
2022-09-05 18:54:23,097 mfreport started.
2022-09-05 18:54:23,097 Using example data.
2022-09-05 18:54:23,097 Done.
2022-09-05 18:54:23,098 Downloading from yfinance started. Please wait.
2022-09-05 18:54:23,099 Done.
──────────────────────────────────────────────────────────────────────────────────────────────────
        units    price  profit                        shortName  divTotal  divJan  divFeb  \
IBM        30  1080000  222222  International Business Machines     26707       0    6571
7203.T     50   100000   11111                     TOYOTA MOTOR      2550       0       0

        divMar  divApr  divMay  divJun  divJul  divAug  divSep  divOct  divNov  divDec
IBM          0       0    6611       0       0    6611       0       0    6915       0
7203.T    1350       0       0       0       0       0    1200       0       0       0
──────────────────────────────────────────────────────────────────────────────────────────────────
Total unrealized capital gain is 233,333 JPY.
──────────────────────────────────────────────────────────────────────────────────────────────────
            Monthly dividends (total annual dividend is 29,257 JPY)
   ┌──────────────────────────────────────────────────────────────────────┐
Jan┤                                                                      │
Feb┤███████████████████████████████████████████████████████████████████   │
Mar┤██████████████                                                        │
Apr┤                                                                      │
May┤███████████████████████████████████████████████████████████████████   │
Jun┤                                                                      │
Jul┤                                                                      │
Aug┤███████████████████████████████████████████████████████████████████   │
Sep┤█████████████                                                         │
Oct┤                                                                      │
Nov┤██████████████████████████████████████████████████████████████████████│
Dec┤                                                                         └┬────────────────┬─────────────────┬────────────────┬────────────────┬┘
    0.0           1728.5            3457.0           5185.5         6914.0
──────────────────────────────────────────────────────────────────────────────────────────────────
2022-09-05 18:54:23,104 mfreport finished.

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

mfreport-0.2.0.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

mfreport-0.2.0-py3-none-any.whl (9.1 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