MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / __init__

Method __init__

pgpy/pgp.py:2680–2690  ·  view source on GitHub ↗

PGPKeyring objects represent in-memory keyrings that can contain any combination of supported private and public keys. It can not currently be conveniently exported to a format that can be understood by GnuPG.

(self, *args)

Source from the content-addressed store, hash-verified

2678
2679class PGPKeyring(collections_abc.Container, collections_abc.Iterable, collections_abc.Sized):
2680 def __init__(self, *args):
2681 """
2682 PGPKeyring objects represent in-memory keyrings that can contain any combination of supported private and public
2683 keys. It can not currently be conveniently exported to a format that can be understood by GnuPG.
2684 """
2685 super(PGPKeyring, self).__init__()
2686 self._keys = {}
2687 self._pubkeys = collections.deque()
2688 self._privkeys = collections.deque()
2689 self._aliases = collections.deque([{}])
2690 self.load(*args)
2691
2692 def __contains__(self, alias):
2693 aliases = set().union(*self._aliases)

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected