Skip to content

Pgpdecrypt

flowtask.components.PGPDecrypt

PGPDecrypt

PGPDecrypt(loop=None, job=None, stat=None, **kwargs)

Bases: FlowComponent

PGPDecrypt

Overview

 Decrypt a file encrypted with PGP.
TODO: Works with several files (not only one).

.. table:: Properties :widths: auto

+--------------+----------+-----------+-------------------------------------------------------+ | Name | Required | Summary | +--------------+----------+-----------+-------------------------------------------------------+ | apply_mask | Yes | This component uses a mask to identify specific bit patterns in a | | | | byte of data | +--------------+----------+-----------+-------------------------------------------------------+ | start | Yes | We initialize the component obtaining the data through the | | | | parameter type | +--------------+----------+-----------+-------------------------------------------------------+ | close | Yes | The close method of a file object flushes any unwritten data | | | | and closes the file object | +--------------+----------+-----------+-------------------------------------------------------+

Return the list of arbitrary days

Example:

```yaml
PGPDecrypt:
  filename: LETSTALKMOBILE_NDW_TRANSACTIONS_INFOQUEST_{today}.zip.gpg
  directory: /home/ubuntu/symbits/xfinity/files/ltm/transactions/
  decrypt:
    filename: LETSTALKMOBILE_NDW_TRANSACTIONS_INFOQUEST_{today}.zip
    directory: /home/ubuntu/symbits/xfinity/files/ltm/transactions/
  masks:
    '{today}':
    - today
    - mask: '%Y%m%d'
  delete_source: true
```