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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: funfile-1.0.10.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.10.tar.gz
Algorithm Hash digest
SHA256 7685b0df7228d8b388593d88958ab1c17e319efa99e9a437529b36182b7e129b
MD5 3f45a538d490896a745771b61029077e
BLAKE2b-256 e28e5e6068a282d13a2848491c561e4a3c3638ba6949732ebb464f8919040142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for funfile-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 44c8ec21aad77fd728b04767cc2188bdd58e29124ca31c3bfdfb5cc0b5f31e97
MD5 98cf01a675d627d2474f250d85a80f97
BLAKE2b-256 3a30aff3d039388909b3f63d5440a8c2f3761b96c7bdcf49dd6cbee879f0cd54

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