nebula3 package#
Subpackages#
Submodules#
nebula3.Config module#
- class nebula3.Config.Config#
Bases:
object- idle_time = 0#
- interval_check = -1#
- max_connection_pool_size = 10#
- min_connection_pool_size = 0#
- timeout = 0#
- class nebula3.Config.SSL_config#
Bases:
objectconfigs used to Initialize a TSSLSocket. @ ssl_version(int) protocol version. see ssl module. If none is
specified, we will default to the most reasonably secure and compatible configuration if possible. For Python versions >= 2.7.9, we will default to at least TLS 1.1. For Python versions < 2.7.9, we can only default to TLS 1.0, which is the best that Python guarantees to offers at this version. If you specify ssl.PROTOCOL_SSLv23, and the OpenSSL linked with Python is new enough, it is possible for a TLS 1.2 connection be established; however, there is no way in < Python 2.7.9 to explicitly disable SSLv2 and SSLv3. For that reason, we default to TLS 1.0.
- @ cert_reqs(int) whether to verify peer certificate. see ssl
module.
@ ca_certs(str) filename containing trusted root certs.
- @ verify_name if False, no peer name validation is performed
if True, verify subject name of peer vs ‘host’ if a str, verify subject name of peer vs given str
@ keyfile filename containing the client’s private key
- @ certfile filename containing the client’s cert and
optionally the private key
- @ allow_weak_ssl_versions(bool) By default, we try to disable older
protocol versions. Only set this if you know what you are doing.
- allow_weak_ssl_versions = False#
- ca_certs = None#
- cert_reqs = 0#
- certfile = None#
- keyfile = None#
- ssl_version = None#
- unix_socket = None#
- verify_name = False#
- class nebula3.Config.SessionPoolConfig#
Bases:
objectThe configs for the session pool @ timeout(int): the timeout of the session @ idle_time(int): the idle time of the session @ max_size(int): the max size of the session @ min_size(int): the min size of the session @ interval_check(int): the interval to check the idle time of the session
- idle_time = 0#
- interval_check = -1#
- max_size = 30#
- min_size = 1#
- timeout = 0#
nebula3.Exception module#
- exception nebula3.Exception.AuthFailedException(message)#
Bases:
Exception
- exception nebula3.Exception.ClientServerIncompatibleException(message)#
Bases:
Exception
- exception nebula3.Exception.EdgeNotFoundException(name)#
Bases:
Exception
- exception nebula3.Exception.IOErrorException(code=0, message=None)#
Bases:
Exception- E_ALL_BROKEN = 1#
- E_CONNECT_BROKEN = 2#
- E_NOT_OPEN = 4#
- E_TIMEOUT = 3#
- E_UNKNOWN = 0#
- exception nebula3.Exception.InValidHostname(message)#
Bases:
Exception
- exception nebula3.Exception.InvalidKeyException(message)#
Bases:
Exception
- exception nebula3.Exception.InvalidValueTypeException(message)#
Bases:
Exception
- exception nebula3.Exception.NoValidSessionException(message)#
Bases:
Exception
- exception nebula3.Exception.NotValidConnectionException#
Bases:
Exception
- exception nebula3.Exception.OutOfRangeException#
Bases:
Exception
- exception nebula3.Exception.PartNotFoundException(part)#
Bases:
Exception
- exception nebula3.Exception.SpaceNotFoundException(name)#
Bases:
Exception
- exception nebula3.Exception.TagNotFoundException(name)#
Bases:
Exception