Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobuhiro11/mfreport
https://github.com/bobuhiro11/mfreport
moneyforward
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bobuhiro11/mfreport
- Owner: bobuhiro11
- License: mit
- Created: 2022-08-24T08:36:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T00:55:12.000Z (almost 2 years ago)
- Last Synced: 2024-09-26T09:47:44.932Z (about 2 months ago)
- Topics: moneyforward
- Language: Python
- Homepage: https://pypi.org/project/mfreport/
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mfreport
[![test](https://github.com/bobuhiro11/mfreport/actions/workflows/test.yaml/badge.svg)](https://github.com/bobuhiro11/mfreport/actions/workflows/test.yaml)
[![License](https://img.shields.io/github/license/bobuhiro11/mfreport.svg)](https://github.com/bobuhiro11/mfreport/blob/main/LICENSE)
[![PyPI version](https://badge.fury.io/py/mfreport.svg)](https://badge.fury.io/py/mfreport)
[![Python Versions](https://img.shields.io/pypi/pyversions/mfreport.svg?logo=python&logoColor=white)](https://pypi.org/project/mfreport)
[![codecov](https://codecov.io/gh/bobuhiro11/mfreport/branch/main/graph/badge.svg)](https://codecov.io/gh/bobuhiro11/mfreport)mfreport retrieves a list of assets from moneyforward.com, formats and outputs it.
Please use this tool for personal purposes only.## Usage
```bash
$ 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
```bash
$ 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 0divMar 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.
```