semvec/pypi-packages huggingface dataset:
thk-py 0.1.2
python utils
License: Apache 2.0
Requires Python: >=3.8

# thk-py

Python utils. 

[History.](HISTORY.md)

## Install

```shell script
pip install thk-py

```

## Examples

### 1. Simplified example

```python
from datetime import date
from thk_py.simplified.datetime import date2str

assert date2str(date(2019, 10, 3)) == '2019-10-03'

```

### 2. Improved example

```python
from thk_py.improved.json import fast_dumps

fast_dumps([1, 2, 3])

```

### 3. Readable example

```python
from thk_py.readable import get_readable_size

assert get_readable_size(1024 * 1024) == "1.0MB"

```