xbr._userkey

Attributes

Classes

EmailAddress

Email address validator.

UserKey

Functions

_creator([yes_to_all])

for informational purposes, try to identify the creator (user@hostname)

_user_id([yes_to_all])

Module Contents

class EmailAddress[source]

Bases: click.ParamType

Email address validator.

convert(value, param, ctx)[source]

Convert the value to the correct type. This is not called if the value is None (the missing value).

This must accept string values from the command line, as well as values that are already the correct type. It may also convert other compatible types.

The param and ctx arguments may be None in certain situations, such as when converting prompt input.

If the value cannot be converted, call fail() with a descriptive message.

Parameters:
  • value – The value to convert.

  • param – The parameter that is using this type to convert its value. May be None.

  • ctx – The current context that arrived at this value. May be None.

name = 'Email address'[source]
class UserKey(privkey, pubkey, yes_to_all=True)[source]

Bases: object

__str__()[source]
_created_at = None[source]
_creator = None[source]
_load_and_maybe_generate(privkey_path, pubkey_path, yes_to_all=False)[source]
_privkey = None[source]
_privkey_hex = None[source]
_privkey_path[source]
_pubkey = None[source]
_pubkey_hex = None[source]
_pubkey_path[source]
key = None[source]
user_id = None[source]
_DEFAULT_EMAIL_ADDRESS[source]
_creator(yes_to_all=False)[source]

for informational purposes, try to identify the creator (user@hostname)

_user_id(yes_to_all=False)[source]