semvec/pypi-packages huggingface dataset:
bopomo 0.0.8
This is a package to translate a chinese sentence into bopomofo letters
Requires Python: >=3

# bopomo

This is a package to translate a chinese sentence into bopomofo letters baesed on revised dictionary of Ministry of Education, segment corpus, artificial label data, and python package jieba and python-crfsuite.

```python
>>> import bopomo
>>> sent = '妹妹背著洋娃娃，走到花園來看花。'
>>> bopomo_sent = bopomo.bopomo_sent(sent)
>>> print(bopomo_sent.bopomo_tag())
[['妹妹背著洋娃娃', 'ㄇㄟˋ ˙ㄇㄟ ㄅㄟ ˙ㄓㄜ ㄧㄤˊ ㄨㄚˊ ˙ㄨㄚ'], ['走到花園來看花', 'ㄗㄡˇ ㄉㄠˋ ㄏㄨㄚ ㄩㄢˊ ㄌㄞˊ ㄎㄢˋ ㄏㄨㄚ']]

>>> sent = '如果薪水不到4萬8，可向老闆說你給的薪水太低了。'
>>> bopomo_sent = bopomo.bopomo_sent(sent)
>>> print(bopomo_sent.bopomo_tag())
[['如果薪水不到4萬8', 'ㄖㄨˊ ㄍㄨㄛˇ ㄒㄧㄣ ㄕㄨㄟˇ ㄅㄨˋ ㄉㄠˋ 4 ㄨㄢˋ 8'], ['可向老闆說你給的薪水太低了', 'ㄎㄜˇ ㄒㄧㄤˋ ㄌㄠˇ ㄅㄢˇ ㄕㄨㄛ ㄋㄧˇ ㄍㄟˇ ˙ㄉㄜ ㄒㄧㄣ ㄕㄨㄟˇ ㄊㄞˋ ㄉㄧ ˙ㄌㄜ']]


```
simple-portfolio 0.1.8
Simple portfolio metrics for Robinhood

# simple_metrics for Robinhood
Simple portfolio metrics applied to your Robinhood portfolio.

## example 1

```py
from simple_metrics import fetch, export

account = {
        'username': 'my username',
        'password': 'my password'}

#
# export stock trades to -> stock_orders.csv
#
stock_orders = fetch.stock_trades(account, {})
export.stock_orders(stock_orders, {})

#
# export -> option_orders.csv
#
option_orders = fetch.option_orders(account, {})
export.option_orders(option_orders, {})
```

## example 2

Run the `calculate_options.py` script  in the examples folder, it generates total and daily returns, as well as fetching greeks for open option positions.

![Options Example](examples/picture-calculate.png)


## install
```sh
pip install simple_metrics
```

## package api

Functionality includes:

- Fetch Stock order history
- Fetch Option order history
- Export Stock order history
- Export Option order history

## local development
Git clone this repo and run,
```bash
pip install . --process-dependency-links --editable
```

Adding `--editable` allows you to pull in code changes without
having to run `pip install`.