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.2.tar.gz
(8.2 kB
view details)
Built Distribution
funfile-1.0.2-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file funfile-1.0.2.tar.gz
.
File metadata
- Download URL: funfile-1.0.2.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 | e6151494d0ea27cbb895dd543a44287e91e12cec042a6b137497b116a40439c8 |
|
MD5 | 8fa47e326b72581a84ff11376a025397 |
|
BLAKE2b-256 | cd4e6d6bb5c5610ac3180982cfc944ce24a3c094e7ccceb53f04d1d24ce27dd3 |
File details
Details for the file funfile-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: funfile-1.0.2-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 | b472a2648d7124360c1a7bf965c1ee991838a67a67c9622110bbdce0068c5d39 |
|
MD5 | f55761739ad6395b01a7bd406a595acf |
|
BLAKE2b-256 | e3c9afe403b43a03efa26a1956a3afa219d5575c9f2100c0bb805c9be48ec9dc |