Skip to main content

Add your description here

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


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.7.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

funfile-1.0.7-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file funfile-1.0.7.tar.gz.

File metadata

  • Download URL: funfile-1.0.7.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for funfile-1.0.7.tar.gz
Algorithm Hash digest
SHA256 b668b8c98ccf7d76406d866e1c6ac4eb14eda82e4ca86ca6cd160d87bd0a2065
MD5 5c82fbc7f66fd0b5cde45fb77fa3cef9
BLAKE2b-256 926abf3bc7e10711906cc66274380fca7717dac2e14e7a1cbbb20203d5fc1f3d

See more details on using hashes here.

File details

Details for the file funfile-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: funfile-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for funfile-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4e8cd1ef6bc38f761333fd3093dba83888def6eba5390cbc4afcdb84198286
MD5 dffddf65843db413a476e70d41b93d60
BLAKE2b-256 943479621fc507422b87cb9f6204f4b36d3e13d1fbf5b6cb981bbd4416e57d1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page