Skip to main content

A Python wrapper and GUI application for Tomb

Project description

mausoleum.png

travis coveralls dependency codacy pypiversion pypistatus pythonversion pypiformat license

Mausoleum consists of a command line application and GUI application wrapped around Tomb (the Crypto Undertaker). Both applications were created with the intention of making it easier for users to interact with Tomb.

screenshot.png

Installation

As Mausoleum is purely a wrapper for Tomb, it requires Tomb to be installed locally. For Tomb installation details, please see: https://www.dyne.org/software/tomb/. The Mausoleum GUI application requires PyQt5 to be installed locally. For PyQt5 installation instructions, please visit: https://www.riverbankcomputing.com/software/pyqt/download5.

With your environment set, the following command may be used to install Mausoleum:

$  pip install mausoleum

If you would rather install from source, run:

$  git clone https://github.com/mandeep/Mausoleum.git
$  cd Mausoleum
$  python setup.py install

GUI Application

To run the GUI application, simply run the following command in a terminal:

$  mausoleum-gui

The command will open a new window that includes tabs that group Tomb functions into separate tabs. The ‘Create’ tab receives information needed to create a new tomb container, the ‘Open’ tab allows the user to fill in information regarding the opening of an existing tomb container, and the ‘Close’ tab lets the user close opened tombs.

Command Line Application

With Mausoleum installed, the command line application can be invoked with the following commands and arguments:

usage: mausoleum [options] command [arguments]

commands:
    construct               Dig, forge, and lock a new tomb container
    enter                   Open an existing tomb container

positional arguments:
    name                    Name of the new or existing tomb container
    size                    The size in megabytes for the new tomb container
    key                     Name of the new or existing tomb key file

optional arguments:
    --open                  Used when wanting to open a tomb after creation

Example of creating a new tomb container and opening it thereafter:

$  mausoleum construct --open secret.tomb 100
Password:
Confirm password:

Example of opening an existing tomb:

$  mausoleum enter secret.tomb
Password:

Wrapper

Mausoleum may be imported as a module as seen in the following example:

import mausoleum.wrapper


def batch_create_tombs(names, size, password):
    """Take a list of names and batch create tomb containers."""

    for name in names:
        key = '{}.key' .format(name)
        mausoleum.wrapper.dig_tomb(name, size)
        mausoleum.wrapper.forge_tomb(key, password)
        mausoleum.wrapper.lock_tomb(name, key, password)

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

mausoleum-0.2.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

mausoleum-0.2.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file mausoleum-0.2.1.tar.gz.

File metadata

  • Download URL: mausoleum-0.2.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mausoleum-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3e8f535092d0b64bd4742f519488b2d5b98931879b28aaec5cc7802fe7cc4dd2
MD5 65734618354219f700ce6a16834c2c63
BLAKE2b-256 e3dd61982bdbf22393fe4ed35955aab1f5024d572332ef201c44a0bb816b86a1

See more details on using hashes here.

File details

Details for the file mausoleum-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mausoleum-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12472433e984fa7159cd3c293f83abef820855702ed5d1768daa5b7036ba5da1
MD5 e1e8249ef6da455523f3708a9851431a
BLAKE2b-256 219434366c2e2d45d5f108c88290d5c4c31a8a9bb60f6effdb35fb7ccb8e8b84

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