Skip to main content

a simple lib for make an archive file for a directory.

Project description

simple-dir-archive

a simple lib for make an archive file for a directory.

Installation

pip install simple-dir-archive

Usage

import simple_dir_archive

# load a folder into memory
folder_path = "test_data/test_folder"
data_dict = simple_dir_archive.load_dir_or_file_to_dict(folder_path)

# save the cached folder into new position
output_path = "test_data/copy_folder"
simple_dir_archive.save_dict_to_dir_or_file(data_dict, output_path)

print(
    simple_dir_archive.check_same(
        simple_dir_archive.load_dir_or_file_to_dict(folder_path),
        simple_dir_archive.load_dir_or_file_to_dict(output_path)
    )
)

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

simple_dir_archive-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_dir_archive-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file simple_dir_archive-0.1.0.tar.gz.

File metadata

  • Download URL: simple_dir_archive-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for simple_dir_archive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5fedda2ad8af16e15afcdca8889ede0ac6c4803dec0465981529d57bd84bc006
MD5 1b6369cddf48bba91b907ecb2399b2dc
BLAKE2b-256 2aac70d67c649b9db6ac14687fad621083c7fde1afceb52ea9555777905de4dd

See more details on using hashes here.

File details

Details for the file simple_dir_archive-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_dir_archive-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cc6858a145dc1896387a76139cbe26e71d3597dfb79cbd74cf939bd988bb74a
MD5 270a892347037ba1cc051e887c420c62
BLAKE2b-256 d2e3237c023ffd9b2f6afaea995a58fcb139d45cbbd4c1bc3b4b45a5b90d780e

See more details on using hashes here.

Supported by

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