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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for funfile-1.0.11.tar.gz
Algorithm Hash digest
SHA256 cc41e48b076976611dc063bf76ca1c454cd3f944e57e4b9cb401081ab9f27931
MD5 11b08295052fdc17fb709e475d0d7616
BLAKE2b-256 cc39ee49c726e9d192c87bafe8b7a2341c8b01d25184fb56b365b7179b87c3b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for funfile-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d22da4e3eead2aa75e89986c3806e276d372e5e0f3b48fa14be3329ed299b139
MD5 776834a84a86c93dba4bd793f352a7b2
BLAKE2b-256 4060144e7f758b74650f5ff36857b862d896a4ac55d28735b2198a4745aa80fe

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