Skip to main content

manage secure archive containing sensative docs

Project description

Tar GnuPG

Manage a secure archive containing sensative docs.

Run Tests Build Standalone Apps Publish to Repositories

You might be thinking, "Hey there's already a gpgtar which seems to do exactly this, why don't I use that?", and you could be right, depending on your needs. The biggest difference is this package allows you to add files to an existing archive. (It technically creates a new one and overwrites your old one, but does it without you needing to worry about that). That's my biggest use case anyway. Also, I was bad at searching and didn't realize that program existed before writing this one (I had even initally given them the same name by coincidence).

Usage

usage: targpg [-h] [-V] [-v] [-q] [-c] [-p PASSFILE] [-o] [-n] [-f NEWFILE] [-d DIR] [-a [ADD ...]] [-u [UPDATE ...]] [-r [REMOVE ...]]
              [-e [EXTR ...]] [-l]
              archive

manage secure archive containing sensative docs

positional arguments:
  archive               tar file secured by gpg symetric password

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -v, --verbose         more verbose output
  -q, --quite           supress output
  -c, --create          create the file without confirmation if it does not exist
  -p PASSFILE, --passfile PASSFILE
                        file with archive password stored in it
  -o, --output          directory to extract files to
  -n, --newpass         change the password of the archive
  -f NEWFILE, --filename NEWFILE
                        file new password is stored in
  -d DIR, --directory DIR
                        when adding files, do it relative to this directory
  -a [ADD ...], --add [ADD ...]
                        add files to the archive
  -u [UPDATE ...], --update [UPDATE ...]
                        overwrite existing files if any being passed in match
  -r [REMOVE ...], --remove [REMOVE ...]
                        add files to the archive
  -e [EXTR ...], --extract [EXTR ...]
                        extract the files from the archive, if no files given a prompt will ask
  -l, --list            list the contents of the archive

newpass

Change the password of the archive, can be loaded from a file either from the --filename flag or user prompt. If no file is given, user is asked to type password.

create

Auto create the archive if it does not already exist.

passfile

Load the password of the archive from a file instead of stdin.

add

Add new files to the archive. --directory sets the working directory so files are added relative to that directory.

update

Update existing files in the archive. If they don't exist then an error will be raised. --directory sets the working directory so files are added relative to that directory.

remove

Remove existing files in the archive. If they don't exist then an error will be raised. --directory sets the working directory so files are added relative to that directory.

extract

Extract files from the archive. If the flag is used with no arguments, you will be asked which files you want to extract. The --output flag will set the directory to extract the files to.

list

List the contents of the archive.

Links

Contributing

Help is greatly appreciated. First check if there are any issues open that relate to what you want to help with. Also feel free to make a pull request with changes / fixes you make.

License

MIT License

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

targpg-1.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

targpg-1.1.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file targpg-1.1.0.tar.gz.

File metadata

  • Download URL: targpg-1.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for targpg-1.1.0.tar.gz
Algorithm Hash digest
SHA256 942e0c503c2046a134e6aecaa327394f1c0078d69222ea9f9ead60ede0402e5c
MD5 8072b70d3782bb6aad06d9dabf504a2b
BLAKE2b-256 98fc62d3068351f5b8842ccdf47d68069a9c2cda7be77cc638fbbe301957def3

See more details on using hashes here.

File details

Details for the file targpg-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: targpg-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for targpg-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3202602894f777ab6132aa8596ca5eeade4080696375830655d670c6f7f4cf91
MD5 9574507846a06ebcb937ecae1ce3c03f
BLAKE2b-256 8a7bda9aa878a8669502823d6051a7c4c3fbf40c9552724c0ec79fa7cdd37447

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