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.3.tar.gz
(8.2 kB
view details)
Built Distribution
funfile-1.0.3-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file funfile-1.0.3.tar.gz
.
File metadata
- Download URL: funfile-1.0.3.tar.gz
- Upload date:
- Size: 8.2 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 | e54cb5dc26e5ad54f777119e2058317f3293b4f04fef4463ad3866e111d47452 |
|
MD5 | 029e25243831d77c4e6b0358efcdfd80 |
|
BLAKE2b-256 | 94a5b218abf58626ec24a7423cc6193c62c9df649bfda73fef52368778bbcf63 |
File details
Details for the file funfile-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.3-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 | 99369ce05236ab81c2c48c1d2ad7df646c7aad6222c2a59f3249799e3f964a81 |
|
MD5 | 9b9a84b0c49d988bb5a7a20a18b42046 |
|
BLAKE2b-256 | a485556620fe164562597b75b26cf39bfbc2ad9470bb16174a4025729e251349 |