Metadata-Version: 2.4
Name: mausoleum
Version: 0.13.3
Summary: A Python GUI, CLI, and wrapper for Tomb
Home-page: https://github.com/mandeep/Mausoleum
Author: Mandeep
License: GPLv3+
Keywords: Mausoleum
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: appdirs
Requires-Dist: click
Requires-Dist: pytoml
Requires-Dist: pyqt5
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-cov; extra == "tests"
Requires-Dist: pytest-qt; extra == "tests"
Requires-Dist: pytest-xvfb; extra == "tests"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

.. image:: https://raw.githubusercontent.com/mandeep/Mausoleum/master/mausoleum.png
   :alt: Mausoleum Logo

|build| |pypiversion| |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.

.. image:: https://raw.githubusercontent.com/mandeep/Mausoleum/master/screenshot.png
   :alt: Screenshot
   :align: center

************
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, the 'Open'
tab allows the user to fill in information regarding the opening of an existing tomb,
the 'Close' tab lets the user close opened tombs, the 'Resize' tab gives the user the ability
to resize an existing tomb, the 'List' tab displays all active tombs, and the 'Config' tab
allows the user to make configuration changes to the GUI.

************************
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 
        enter                   Open an existing tomb
        alter                   Resize an existing tomb
        mold                    Create a QR code from an existing tomb key
        etch                    Embed an existing tomb key inside a JPEG image
        resurrect               Print to stdout the tomb key embedded within the JPEG image

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

    optional arguments:
        --open                  Option that opens a tomb after creation or resizing

If a key is not supplied as a command line argument, the application will search for a key with
the name of the tomb with .key as the suffix.

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

    $  mausoleum construct --open secret.tomb 100
    Password:
    Repeat for confirmation:

Example of opening an existing tomb::

    $  mausoleum enter secret.tomb
    Password:

Example of resizing an existing tomb::

    $  mausoleum alter secret.tomb 200
    Password:


*******
Wrapper
*******

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

.. code:: python


    import mausoleum.wrapper


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

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


*************
Contributions
*************

All contributions are welcome! Feel free to submit a pull request for trivial
changes. For other changes, please open an issue on the repository's issue tracker.

.. |build| image::  https://img.shields.io/github/actions/workflow/status/mandeep/Mausoleum/python-tests.yml
    :target: https://github.com/mandeep/Mausoleum/actions
.. |pypiversion| image:: https://img.shields.io/pypi/v/mausoleum.svg 
    :target: https://pypi.org/project/mausoleum/
.. |pythonversion| image:: https://img.shields.io/pypi/pyversions/mausoleum.svg 
    :target: https://pypi.org/project/mausoleum/
.. |pypiformat| image:: https://img.shields.io/pypi/format/mausoleum.svg
    :target: https://pypi.org/project/mausoleum/
.. |license| image:: https://img.shields.io/pypi/l/mausoleum.svg
    :target: https://pypi.org/project/mausoleum/
