semvec/pypi-packages huggingface dataset:
featherhelper 0.0.5
Feather Helper is a concise interface to cache numpy arrays and pandas dataframes.
License: MIT
Requires Python: >=3.6

# Feather Helper

Feather Helper is a concise interface to cache and load numpy arrays and pandas dataframes. I use it with  [Pandoctools/Knitty](https://github.com/kiwi0fruit/pandoctools).


# Contents

* [Feather Helper](#feather-helper)
* [Contents](#contents)
* [Install](#install)
* [Usage example](#usage-example)


# Install

Via conda:

```
conda install -c defaults -c conda-forge featherhelper
```

Via pip:

```
pip install featherhelper
```


## Usage example

```py
import pandas as pd
import numpy as np
import featherhelper as fh
fh.setdir("~/feather/mydoc")  # (optional)
# fh.exc(1, 2)  # force raise exceptions for names (optional)

# %%
fh.name(1)  # can also be fh.name('id1'), default is 'default', 1 is the same as '1'
try:
    # raise fh.Err  # (optional)
    df, A, B = fh.pull()  # control length can be set: fh.pull(N)
except fh.Err:
    # calculate:
    print('push')  
    df = pd.DataFrame(np.random.random(16).reshape(4, 4))
    A = df.values
    B = np.random.random(16 * 3).reshape(4, 2, 2, 3)
    #
    fh.push(df, A, B)

print(df, '\n', A, '\n', B)
```

A shorter example:
```py
import numpy as np
import featherhelper as fh
# fh.exc()

# %%
try:
    A = fh.pull()
except fh.Err:
    A = np.random.random(16).reshape(4, 4)
    fh.push(A)
```
ZypUtility 0.1.3
zyputility contains readconfig & log
License: MIT

des：这是zhangyp自己的公用包，目前包含两个公用库ReadConfig（读取配置文件）、ZypLog（log类）
--ReadConfig
----读取配置文件，将配置文件信息转化成dict的形式，引用说明C = conf（），C['配置文件参数名']

--ZypLog
----将日志输出到控制台和保存在文件，设置如下
----def __init__(self, filename, level='info', when='D', back_count=3, fmt='''[时间]:%(asctime)s
[线程]:%(thread)s
[级别]:%(levelname)s
[路径]:%(pathname)s
[函数]:%(funcName)s
[行号]:%(lineno)d
[信息]:%(message)s
------------------
'''):
		"""
		:param filename: log名
		:param level: bug等级
		:param when: 时间间隔单位 S 秒、M 分、H 小时、D 天、W 星期、midnight 每天凌晨
		:param back_count: log保留个数，如果超过这个个数，就会自动删除，
		:param fmt: log格式化
		"""
----如此引用 Logger（'filename',level='info', when='D', back_count=3）