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)
| 2678 | |
| 2679 | class 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) |