Skip to main content

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


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

Uploaded Source

Built Distribution

funfile-1.0.5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: funfile-1.0.5.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

Hashes for funfile-1.0.5.tar.gz
Algorithm Hash digest
SHA256 34e207af2164df5b77733d9220de9972e004d5393a943c174c44e7f86dff7366
MD5 774f1a81ce172c030dff6aec3896a951
BLAKE2b-256 11b18caf35243bcb1719a17aa9c90beed60ef755040062976d04f210ea7440cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: funfile-1.0.5-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

Hashes for funfile-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a11791728e045721cf5cd51de816bcd10160c1ecb9625f5386654117fad49b5
MD5 ff5db1b8446f4d7cbb5151af63a1eebe
BLAKE2b-256 293e36b65f9a1e19bdca8ce0709e5e7a6be1a731319159afc90f31162905aeac

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