mailman_pgp.model package

Submodules

mailman_pgp.model.address module

Model for PGP enabled addresses.

class mailman_pgp.model.address.PGPAddress(address)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A PGP enabled address.

address
Returns:
Return type:mailman.model.address.Address
email
static for_address(address)[source]
Parameters:address
Returns:
Return type:PGPAddress|None
static for_email(email)[source]
Parameters:email
Returns:
Return type:PGPAddress|None
id
key
Returns:
Return type:pgpy.PGPKey
key_confirmed
key_fingerprint
key_path
Returns:
Return type:str

mailman_pgp.model.base module

Base class for all models.

mailman_pgp.model.db_key module

Database stored PGP key.

class mailman_pgp.model.db_key.DBKey(key=None)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Database stored PGP key.

id
key

mailman_pgp.model.fs_key module

Filesystem stored PGP key.

class mailman_pgp.model.fs_key.FSKey(keydir, keyfile, load=False)[source]

Bases: object

Filesystem stored PGP key.

delete()[source]
key
Return type:pgpy.PGPKey
key_path
load()[source]
lock_path
reload()[source]
save()[source]
shred()[source]

mailman_pgp.model.list module

Model for PGP enabled mailing lists.

class mailman_pgp.model.list.PGPMailingList(mlist)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A PGP enabled mailing list.

duplicate_sig_action
encrypt_outgoing
expired_sig_action
static for_list(mlist)[source]
Parameters:mlist (mailman.model.mailinglist.MailingList) –
Returns:
Return type:PGPMailingList|None
fs_key
id
inline_pgp_action
invalid_sig_action
key

The private part of the list’s keypair.

Returns:
Return type:pgpy.PGPKey
key_change_workflow
key_path

The path to this list’s key in the list_keydir.

Returns:List key path.
Return type:str
key_signing_allowed
list_id
mlist
Returns:
Return type:mailman.model.mailinglist.MailingList
nonencrypted_msg_action
pubkey

The public part of the list’s keypair.

Returns:
Return type:pgpy.PGPKey
revoked_sig_action
sign_outgoing
strip_original_sig
unsigned_msg_action

mailman_pgp.model.sighash module

class mailman_pgp.model.sighash.PGPSigHash(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

fingerprint
hash
static hashes(hashes)[source]

Module contents