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.8.tar.gz
(8.9 kB
view details)
Built Distribution
funfile-1.0.8-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file funfile-1.0.8.tar.gz
.
File metadata
- Download URL: funfile-1.0.8.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.27
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad74f03b64ff762c1414c31dc108a0556696e5387290e55b8c257b85e2f680a |
|
MD5 | 8e8cc02224de442164083ba69fa3c295 |
|
BLAKE2b-256 | 2f50109084c51c0308479049da9223e98d59b957a7672f187a8c5aabc331a278 |
File details
Details for the file funfile-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.8-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.27
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1d3945731fd27b78c8829f4e43299a6231fb7ff85eb7c351952639bedfe68ed |
|
MD5 | d6b7fa96e9b8ca0cbe0babc815a9abf0 |
|
BLAKE2b-256 | 55554f92c4ee2d39e438c05b2865b59ea634b0b914704e22dc95a580612c75d8 |