A simple tool for converting a folder to a file and the other way around.
Project description
🎒 Backpack (bkpk
)
A super simple and lightweight zip alternative. No encryption, compression or anything, just a simple file packer and unpacker using the Python builtin pickle
. Supports files of pretty much any type.
Installation
Pip (recommended)
pip install bkpk
or
python -m pip install bkpk
Manual (advanced users only)
git clone https://github.com/nsde/bkpk.git
python bkpk
Please note that this won't create a shell command, so you need to write python /home/user/Downloads/bkpk/bkpk
(replace the example with your according values!) instead of just bkpk
. Linux users add rights to the bkpk.sh
using sudo chmod +x bkpk.sh
and copy the file using sudo cp bkpk.sh /usr/bin/bkpk
Commands
Zipping a folder / Creating a backpack
bkpk example/
This will create a example.bkpk
in your current directory.
Unzipping a backpack
bkpk example.bkpk
This will create all directories and files which are stored in the backpack.
Python API
import bkpk
bkpk.save('example/')
bkpk.load('example.bkpk')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file bkpk-0.2.27.tar.gz
.
File metadata
- Download URL: bkpk-0.2.27.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d674e51adb5099beda3ce602537af70dcd252037951a9a7d77946d1a0f1b1976 |
|
MD5 | 7997a09ee83528409c147ef17ba1ba93 |
|
BLAKE2b-256 | 6ffa60fb5aefa873840b6060c1afe5fe4b3c2846785028bed1f68a81e05d4203 |