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.7.tar.gz
(8.9 kB
view details)
Built Distribution
funfile-1.0.7-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file funfile-1.0.7.tar.gz
.
File metadata
- Download URL: funfile-1.0.7.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 | b668b8c98ccf7d76406d866e1c6ac4eb14eda82e4ca86ca6cd160d87bd0a2065 |
|
MD5 | 5c82fbc7f66fd0b5cde45fb77fa3cef9 |
|
BLAKE2b-256 | 926abf3bc7e10711906cc66274380fca7717dac2e14e7a1cbbb20203d5fc1f3d |
File details
Details for the file funfile-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.7-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 | bc4e8cd1ef6bc38f761333fd3093dba83888def6eba5390cbc4afcdb84198286 |
|
MD5 | dffddf65843db413a476e70d41b93d60 |
|
BLAKE2b-256 | 943479621fc507422b87cb9f6204f4b36d3e13d1fbf5b6cb981bbd4416e57d1d |