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.1.tar.gz
(8.2 kB
view details)
Built Distribution
funfile-1.0.1-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file funfile-1.0.1.tar.gz
.
File metadata
- Download URL: funfile-1.0.1.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 | ecb3c49ee9cb6ceeb59191c6de5f0bdce8e0ff42a8487834129edc82bd5239a6 |
|
MD5 | aecda591b0ecd7999e6580d7ff211e75 |
|
BLAKE2b-256 | 1611f15d51804017063696101b7db1074bf47bba16b5452cf7ffdd1dcc530d93 |
File details
Details for the file funfile-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.1-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 | 9a3a824bd0c368232ef0401b22735deeb3024c42544077f881267d83e2de7f86 |
|
MD5 | 62ce5d42495736c1df828083ae4ce82f |
|
BLAKE2b-256 | 97a03c96d8e54f266b25c7e5a928e38c4b0e89c9fc2a084751fd06535ffa0062 |