semvec/pypi-packages huggingface dataset:
amortizer 0.0.4
Simple package for generating loan amortization table and summary
Requires Python: >=3.7

<div align="center">

[![ReadTheDocs](https://readthedocs.org/projects/amortizer/badge/?version=latest)](https://amortizer.readthedocs.io/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/amortizer)](https://pypi.org/project/amortizer/)
[![license](https://img.shields.io/github/license/vlntsolo/amortizer?label=license)][license]

</div>

# Amortizer - Simple loan amortization calculator

*Amortizer* is a simple amortization table generator which supports two common approaches: annuity payments and straight amortization. 


## Overview

*Amortizer* is basically a single python class which instantiates an object with several useful methods.

| Method | Description |
| ---- | --- |
| **.get_summary(method="annuity")** | Calculates amortization dataframe (methods: 'straight' or 'annuity') and returns a dictionary with summary statistics. |
| **.straight_amortization()** | Calculates amortization table with straight amortization and returns a dataframe. |
| **.annuity_amortization()** | Calculates amortization table with annuity payments and returns a dataframe. |
| **.to_html(method="annuity")** | Calculates amortization dataframe (methods: 'straight' or 'annuity') and returns results to a string with html markup. |
| **.to_json(method="annuity")** | Calculates amortization dataframe (methods: 'straight' or 'annuity') and returns results to a string with JSON object. |
| **.to_csv(path: str, method="annuity")** | Calculates amortization dataframe (methods: 'straight' or 'annuity') and exports results to the .csv file. |

Learn more about the methods above in the [Documentation][docs]

# Installation 

`Amortizer` supports python3.7 + environments.

```shell
$ pip install --upgrade amortize
```

or use **pipenv**

```shell
$ pipenv install --upgrade amortize
```


# Getting Started

## Minimal Example

```python
from amortizer.generator import Amortizer

# Instantiate new object with any suitable name and pass itinial parameters of the loan / mortgage
amortizer = Amortizer(amount=100000, period=18, interest_rate=6)

# Get summary statistics with annuity payments
amortizer.get_summary(method="annuity")
# >>> {'total_cost': 104817.06, 'average_interest_exp': 267.62, 'average_monthly_pmt': 5823.17, 'total_interest_exp': 4817.12}

# Export amortization payments table to csv file
amortizer.to_csv(path="/tmp/", method="straight")
#>>> Data was recorded to straight_amortization.csv at the following location: /tmp/

```

# Resources

- [**PyPi**](https://pypi.org/project/amortizer)
- [**Documentation**](https://amortizer.readthedocs.io/en/latest/)
- [**Issue tracking**](https://github.com/vlntsolo/amortizer/issues)


# Contributing

Feel free to send merge requests.


# If you've got questions

1. [Read the docs][docs].
2. [Look through the issues](https://github.com/vlnsolo/amortizer/issues).


# License

[MIT License](LICENSE).


[docs]: https://amortizer.readthedocs.io/en/latest/amortizer.html
Dict-search 0.0.1
查询单个单词/词组意思
Requires Python: >=3.6

# dictsearch
- 源自本人项目https://github.com/what-is-me/WordListEnquiry
## 各函数及用法
- 查询单个单词/词组的详细解释：
    `def search_word(word, choice=1):`
    
- 查询单词/词组列表，并生成[字典(dict)]：
    `def search_words_todict(wordlist, choice=1):`
    
- 查询单词/词组列表，并生成[列表(list)]：
    `def search_words_tolist(wordlist, choice=1, div=" : ", needword=True):`
    
    - div是输出的list里单词和意思之间的分隔符
        比如：`route` **:** `n.路线，航线；道路，公路；（交通工具的）固定路线；巡访；途径，渠道；递送路线；用于美国干线公路号码前;v.按特定路线发送，为……规定路线;`
        
    - needword为False则表示return纯解释列表
        比如：
        
        `needword = False`: `n.路线，航线；道路，公路；（交通工具的）固定路线；巡访；途径，渠道；递送路线；用于美国干线公路号码前;v.按特定路线发送，为……规定路线;`
        
        `needword = True`: `route`** : **`n.路线，航线；道路，公路；（交通工具的）固定路线；巡访；途径，渠道；递送路线；用于美国干线公路号码前;v.按特定路线发送，为……规定路线;`
    
- 上述3个函数中，默认查询源为“有道[英]”

- 帮助：
  `def help():`

## 各个查询源（使用choice选择）

- 英>>
    1. 有道
    2. 金山
    3. bing
    4. 海词
- 日>>
    5. 有道
- 法>>
    6. 有道
- 德>>
    7. 德语助手