Add your description here
Project description
安装
pip install funfile
使用
tafile 带进度条,用法和 tarfile 用法一致
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")
异步写入,适合多线程使用
from funfile import ConcurrentFile
with ConcurrentFile("a.txt", mode='w') as fw:
fw.write("hello,funfile.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
funfile-1.0.12.tar.gz
(9.0 kB
view details)
Built Distribution
funfile-1.0.12-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file funfile-1.0.12.tar.gz
.
File metadata
- Download URL: funfile-1.0.12.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6728e72069b68324622ca5961c34588dc4b36377cd6b7824d980337657c04358 |
|
MD5 | 74f3a3c7b1b97f9b0ecb53004c546494 |
|
BLAKE2b-256 | 32fe3c661dffd329eceb32e1fedb4d9b67c1276d47fc4ff16294944fcda08c36 |
File details
Details for the file funfile-1.0.12-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.12-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903eb8d3b3014203e53073b4ba270290941a55c8046f2c09dd17b49e87b67e14 |
|
MD5 | f25b94cf729a9ea893eb1bd3ba6cb677 |
|
BLAKE2b-256 | 930b03653a397b367556d2ea2d9a76ae03db2196383710a84ce6c3c7348e5750 |