Skip to content

Commit

Permalink
Merge pull request #8 from zorroforever/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
zorroforever authored Jun 12, 2024
2 parents 774d8f2 + 54a782a commit 458a1ca
Show file tree
Hide file tree
Showing 7 changed files with 402 additions and 8 deletions.
34 changes: 28 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,41 @@
# 「人生、チョロかった!」

「人生、チョロかった!」
簡単に人生の使うお金を計算し、100歳になる。
<p align="center">
<img width="100px" src="/docs/hand-right-outline.svg" align="center" alt="jinseicyorokatta" />
<h2 align="center">「人生、チョロかった!」</h2>
<p align="center">簡単に人生の使うお金を計算し、100歳になる。</p>
<p align="center">
<a href="https://github.com/zorroforever/jinseicyorokatta/actions">
<img alt="Tests Passing" src="/docs/badge.svg" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/graphs/contributors">
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/zorroforever/jinseicyorokatta" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/zorroforever/jinseicyorokatta?color=0088ff" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/pulls">
<img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/zorroforever/jinseicyorokatta?color=0088ff" />
</a>
<br />
<br />
</p>
<p align="center">
<a href="/docs/readme_en.md">English </a>
·
<a href="/docs/readme_zh.md">简体中文</a>
</p>
</p>

## はじめに


普通のpy3.10環境を用意してください。

```
apt-get install python
```

### インストール


## インストール

config.jsonの設定

Expand Down
35 changes: 35 additions & 0 deletions docs/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/hand-right-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions docs/readme_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<p align="center">
<img width="100px" src="/docs/hand-right-outline.svg" align="center" alt="jinseicyorokatta" />
<h2 align="center">「Life is easy!」</h2>
<p align="center">Easily calculate the money you spend in your life,more than 100 years old.</p>
<p align="center">
<a href="https://github.com/zorroforever/jinseicyorokatta/actions">
<img alt="Tests Passing" src="/docs/badge.svg" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/graphs/contributors">
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/zorroforever/jinseicyorokatta" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/zorroforever/jinseicyorokatta?color=0088ff" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/pulls">
<img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/zorroforever/jinseicyorokatta?color=0088ff" />
</a>
<br />
<br />
</p>
<p align="center">
<a href="/docs/readme_zh.md">简体中文</a>
·
<a href="/docs/readme_ja.md">日本語</a>
</p>
</p>

## Start


Please prepare a normal py3.10 environment.

```
apt-get install python
```

## Install

setting the config.json

```
{
"language": "en", // Language
"currency": "USD", // Currency
"mark": "$", // Currency Symbol
"bank_rate": 1.2, // Bank interest rate
"initial_balance": 50000000, // Initial funding
"base_year": 2024, // the year start to calculate
"years":0, // how many years to calculate
"target_year": 2084, // the year end to calculate
"inflate_rate": 4.48, // Inflation Rate
"birth_year": 1983, // birthday
"retirement_age": 65, // retirement age
"cost": {
"monthly": {
"fixed": {
"house_fee" :1000,// house_fee
"eng_water_fee" : 50, // water fee
"eng_electricity_fee" : 200, // electricity fee
"eng_gas_fee": 50,// gas fee
"eng_network_fee" : 200, // network fee
"phone_fee" : 200, // phone fee
"insurance_fee" : 4000 // insurance fee
},
"variable": {
"traffic_fee" : 800, // traffic fee
"food_fee" : 3000, // food fee
"shopping_fee": 3000,// shopping fee
"travelling_fee" : 5000,// travelling fee
"vip_fee" : 400// vip fee
}
},
"annual": {
}
}
}
```

The monthly.fixed and monthly.variable settings are,
set according to your own needs.
You can add or remove additional items.

When you are done with the settings, run the following command.

```
python life.py path/to/config.json
```


## Contribution

..

## Versioning

..

## Author

* **haruka.moe** - *Initial work* - [Jinsei Cyorokatta](https://github.com/jinseicyorokatta)


## License

The license for this project is GPL v3.0 - [LICENSE.md](LICENSE.md)

## Thanks

* inspiration
* others
114 changes: 114 additions & 0 deletions docs/readme_ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<p align="center">
<img width="100px" src="/docs/hand-right-outline.svg" align="center" alt="jinseicyorokatta" />
<h2 align="center">「人生、チョロかった!」</h2>
<p align="center">簡単に人生の使うお金を計算し、100歳になる。</p>
<p align="center">
<a href="https://github.com/zorroforever/jinseicyorokatta/actions">
<img alt="Tests Passing" src="/docs/badge.svg" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/graphs/contributors">
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/zorroforever/jinseicyorokatta" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/zorroforever/jinseicyorokatta?color=0088ff" />
</a>
<a href="https://github.com/zorroforever/jinseicyorokatta/pulls">
<img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/zorroforever/jinseicyorokatta?color=0088ff" />
</a>
<br />
<br />
</p>
<p align="center">
<a href="/docs/readme_en.md">English </a>
·
<a href="/docs/readme_zh.md">简体中文</a>
</p>
</p>

## はじめに


普通のpy3.10環境を用意してください。

```
apt-get install python
```

## インストール




config.jsonの設定

```
{
"language": "ja", // 言語設定
"currency": "JPN", // 通貨設定
"mark": "¥", // 通貨記号設定
"bank_rate": 1.2, // 銀行の利率設定
"initial_balance": 50000000, // 初期資金設定
"base_year": 2024, // 基準年設定
"years":0, // 何年目か設定
"target_year": 2084, // 目標年設定
"inflate_rate": 4.48, // 通貨インフレーション率設定
"birth_year": 1983, // 誕生年設定
"retirement_age": 65, // 退職年齢設定
"cost": {
"monthly": {
"fixed": {
"house_fee" :1000,// 家賃
"eng_water_fee" : 50, // 水道料金
"eng_electricity_fee" : 200, // 電気料金
"eng_gas_fee": 50,// ガス料金
"eng_network_fee" : 200, // 通信料金
"phone_fee" : 200, // 電話料金
"insurance_fee" : 4000 // 保険料金
},
"variable": {
"traffic_fee" : 800, // 交通費
"food_fee" : 3000, // 食費
"shopping_fee": 3000,// 買い物料金
"travelling_fee" : 5000,// 旅費
"vip_fee" : 400// 各vip会員料金
}
},
"annual": {
}
}
}
```

monthly.fixedとmonthly.variableの設定は、
自分のニーズに合わせて設定してください。
追加項目を増やしたり、削除したりしても大丈夫です。

設定を終わったら、以下のコマンドで実行します。

```
python life.py path/to/config.json
```


## 貢献

..

## バージョニング

..

## 著者紹介

* **haruka.moe** - *Initial work* - [Jinsei Cyorokatta](https://github.com/jinseicyorokatta)


## ライセンス

このプロジェクトのライセンスは GPL v3.0 - [LICENSE.md](LICENSE.md)

## 謝辞

* インスピレーション
* その他
Loading

0 comments on commit 458a1ca

Please sign in to comment.