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

Uploaded Source

Built Distribution

funfile-1.0.6-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for funfile-1.0.6.tar.gz
Algorithm Hash digest
SHA256 1c79aeb120ef1edd65cb7cf5e2900bc0fa2bd9b083f27dae5922e8a9b95d1e1e
MD5 1a8d83ad3604791f7ecf99f0da13e3ca
BLAKE2b-256 84f71c2077000f0567c79447fb453863007013f265bc9e77ddc86e304a4492b0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for funfile-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eadf7c249f57dd0c77259bfcaafac5ac03751a879308b4078f836b749ac677ae
MD5 fa9f9c8aea0c0225693ceba6651f4a3c
BLAKE2b-256 7f7f6d90facc7d9430a135c9f5f9e38c68d31a3f5ec2cf630d2c7e57f24ab0be

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