No project description provided
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.4.tar.gz
(8.1 kB
view details)
Built Distribution
funfile-1.0.4-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file funfile-1.0.4.tar.gz
.
File metadata
- Download URL: funfile-1.0.4.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Linux/5.15.0-86-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c3515243ccbbc2a4620f78de8b6ba39bf552dbef9cc3441d701da23cd70cf1 |
|
MD5 | 0a81e3e53f96ce15d8506fea29638188 |
|
BLAKE2b-256 | 3756f962538c0f40a5731ffa77c8ea3cd534421537614bc2746e8fa4316c2047 |
File details
Details for the file funfile-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.4-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Linux/5.15.0-86-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8974cd96018c3d5713d09f33cea07faccf7cd8c56027addf25763e1d33c1622f |
|
MD5 | 350aab1a5c5f608d13921c55e02c9d20 |
|
BLAKE2b-256 | df795ea0fb2ce137e28c9fd0123f5da9f812968f005418331d1cbb43727ad6aa |