Metadata-Version: 2.1
Name: funfile
Version: 1.0.2
Summary: 
Author: farfun
Author-email: 1007530194@qq.com
Requires-Python: >=3.7,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: tqdm (>=4.66.5,<5.0.0)
Description-Content-Type: text/markdown

## 安装

```python
pip install funfile
```

## 使用

### tafile 带进度条,用法和 tarfile 用法一致

```python
from funfile import tarfile
# 压缩
with tarfile.open("results.tar", "w|xz") as tar:
    tar.add("a.txt")

# 解压
with tarfile.open("results.tar", "r|xz") as tar:
    tar.extractall("local")
```

### 异步写入，适合多线程使用

```python
from funfile import ConcurrentFile
with ConcurrentFile("a.txt", mode='w') as fw:
    fw.write("hello,funfile.")
```

