semvec/pypi-packages huggingface dataset:
dopt 0.0.6
Distributed Optimizer
Requires Python: >=3.6


### How to use
We'll be running `distributed_optimizer.py` to start the optimization.
  
`distributed_optimizer.py`  can be run in 2 modes: host mode and client mode. 
The host mode will call 2 processes: One that
 starts the  `Optimizer` of choice and One that connect with other machines (the clients) to run `distributed_optimizer.py` on client mode. 
 The client mode will run the user-specified MyWhateverTrainer.
 Host mode: `python3 distributed_optimizer.py` as host mode is the default.
 Client mode: `python3 distributed_optimizer.py --run_as=client` as client mode. You do *not* need to manually run client mode on each client machine as the host mode will do this. However, you can use it if you want to add client machines during optimization.

Essential parts of the script:
- The COMMANDS: A constant dictionary. The keys are machine categories, and values are the necessary commands to run `distributed_optimizer.py` on client mode on those different categories.

 - A MyWhateverTrainer that inherits the `Trainer` abstract class from 
 `src.trainer`, and implement the abstract method `get_observation`, in which the set of hyperparameters (candidate) given will be plugged into the objective function.
  
 - A `start_host()` function that will be used to call 2 processes: one that
 start the `Optimizer` and one that runs appropriate sequence of commands to run `distributed_optimizer.py` on client mode, i.e. start`Trainers` on respective machines using the following:
 `python3 distributed_optimizer.py --run_as=client`

- A `start_client()` function that will run MyWhateverTrainer, i.e. run objective function.

- A `main()` that parse command line input and switch between host and client mode, and specify further information needed to run objective function on target machines.
  
Check list:
 - Step 1: Create your specified `MyWhatever Trainer` that implements the `get_observation` method.
 - Step 2: Make sure the appropriate environment can be chosen through ssh tunneling. Try: `ssh [name]@[hostmachine] [YOUR COMMANDS]`
 - Step 3: Add the commands to the `COMMANDS` dictionary.
 - Step 4: Make sure you have a copy of the `distributed_optimizer.py` and related files on all of the machines you intend to use
kosis 0.1.5
KOSIS API
Requires Python: >=3.7

### KOSIS api

## Installing

```
pip install kosis
```

## Using kosis

- Get API Key from kosis.kr
https://kosis.kr/openapi/serviceUse/serviceUseUnityReg_01Detail.jsp

- Export environment variable KOSIS_API_KEY
export KOSIS_API_KEY={your key}

### Using ipython's autocompletion for easy navigation
```
from kosis import Kosis
ks = Kosis()
# press tab after typing "ks.main." to see the top most list.
# You can navigate every statistics data using autocompletion
ks.main.금융
```
### Using dir() to navigate items
```
from kosis import Kosis
ks = Kosis()
dir(ks.main)
dir(ks.main.금융)
```

### Getting statics data

```
from kosis import Kosis
ks = Kosis()
ks.main.금융.통화금융통계.통화_및_유동성지표.M2_광의통화_.M2_상품별구성내역_말잔_.M2_상품별_구성내역_말잔_계절조정계열_.data
```

output
```
                    TBL_NM              PRD_DE      TBL_ID                  ITM_NM                    ITM_NM_ENG          ITM_ID           UNIT_NM ORG_ID  UNIT_NM_ENG   C1_OBJ_NM    C1_OBJ_NM_ENG              DT PRD_SE            C1                      C1_NM                  C1_NM_ENG
0   M2 상품별 구성내역(말잔 계절조정계열)  202212  DT_101Y001  M2 상품별 구성내역(말잔 계절조정계열)  M2 By Type (End of SA)  13103134693999     십억원    301     Bil.Won     계정항목별       ACCOUNT      3750603.4      M       13102134693ACC_ITEM.BBGS00  M2(말잔 계절조정계열)   M2(End Of period SA)
1   M2 상품별 구성내역(말잔 계절조정계열)  202301  DT_101Y001  M2 상품별 구성내역(말잔 계절조정계열)  M2 By Type (End of SA)  13103134693999     십억원    301     Bil.Won     계정항목별       ACCOUNT      3795354.4      M       13102134693ACC_ITEM.BBGS00  M2(말잔 계절조정계열)   M2(End Of period SA)
2   M2 상품별 구성내역(말잔 계절조정계열)  202302  DT_101Y001  M2 상품별 구성내역(말잔 계절조정계열)  M2 By Type (End of SA)  13103134693999     십억원    301     Bil.Won     계정항목별       ACCOUNT      3802737.3      M       13102134693ACC_ITEM.BBGS00  M2(말잔 계절조정계열)   M2(End Of period SA)
3   M2 상품별 구성내역(말잔 계절조정계열)  202212  DT_101Y001  M2 상품별 구성내역(말잔 계절조정계열)  M2 By Type (End of SA)  13103134693999     십억원    301     Bil.Won     계정항목별       ACCOUNT       163052.4      M       13102134693ACC_ITEM.BBGS01           현금통화      Currency in Circulation
4   M2 상품별 구성내역(말잔 계절조정계열)  202301  DT_101Y001  M2 상품별 구성내역(말잔 계절조정계열)  M2 By Type (End of SA)  13103134693999     십억원    301     Bil.Won     계정항목별       ACCOUNT       161895.8      M       13102134693ACC_ITEM.BBGS01           현금통화      Currency in Circulation
5   M2 상품별 구성내역(말잔 계절조정계열)  202302  DT_101Y001  M2 상품별 구성내역(말잔 계절조정계열)  M2 By Type (End of SA)  13103134693999     십억원    301     Bil.Won     계정항목별       ACCOUNT       163942.1      M       13102134693ACC_ITEM.BBGS01           현금통화      Currency in Circulation
...

```