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.5.tar.gz
(8.2 kB
view details)
Built Distribution
funfile-1.0.5-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file funfile-1.0.5.tar.gz
.
File metadata
- Download URL: funfile-1.0.5.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 | 34e207af2164df5b77733d9220de9972e004d5393a943c174c44e7f86dff7366 |
|
MD5 | 774f1a81ce172c030dff6aec3896a951 |
|
BLAKE2b-256 | 11b18caf35243bcb1719a17aa9c90beed60ef755040062976d04f210ea7440cb |
File details
Details for the file funfile-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.5-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 | 5a11791728e045721cf5cd51de816bcd10160c1ecb9625f5386654117fad49b5 |
|
MD5 | ff5db1b8446f4d7cbb5151af63a1eebe |
|
BLAKE2b-256 | 293e36b65f9a1e19bdca8ce0709e5e7a6be1a731319159afc90f31162905aeac |