Skip to main content

split large file into 1MB small files.

Project description

py_blk_hash_db

Project Overview

py_blk_hash_db is a Python library for file chunking, hash computation, and database management. It allows users to split large files into fixed-size chunks and compute SHA-256 hash values for each chunk. These chunks and hash values are stored in a specified database directory for easier file management and recovery.

Features

  • File Chunking: Split files into specified size chunks.
  • Hash Computation: Calculate SHA-256 hash values for each file chunk.
  • Data Storage: Store file chunks and hash values in a specified database directory.
  • File Recovery: Recover specified files from the database.

Installation

pip install py-blk-hash-db

Usage

Load Files into the Database

python3 -m py_blk_bash_db -d database_path -i file_path

Retrieve Files from the Database

python3 -m py_blk_bash_db -d database_path -s selected_json_filename -o output_file_path

Delete Unused File Chunks

python3 -m py_blk_bash_db -d database_path -r

Contribution

Contributions are welcome! Please submit Pull Requests on GitHub to contribute code or report issues.

License

This project is licensed under the GPLv3 license. Please refer to the LICENSE file for details.

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

py_blk_bash_db-0.0.1.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

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

py_blk_bash_db-0.0.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file py_blk_bash_db-0.0.1.tar.gz.

File metadata

  • Download URL: py_blk_bash_db-0.0.1.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for py_blk_bash_db-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0de258f530981111325b1369f58a53d18a35dd2907f6520f69a4bd776e74babf
MD5 a78b1a48c35266512bba539a5b9daec4
BLAKE2b-256 f0a8b6b9b9e00d933394e92bd955add85d67af1cf12a5f022abbcd9c82a92040

See more details on using hashes here.

File details

Details for the file py_blk_bash_db-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: py_blk_bash_db-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for py_blk_bash_db-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cba9af38133a733c7df71b77d5dae757cc3c05f8050d52c2cbc024bc8525dfb
MD5 41255ae4f0632df27c7b04c3f0575e4b
BLAKE2b-256 2e7cdf5af0230e2197eb47f965b67fdd9ec1f15c7e2ffa32a093078ed42a1070

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