Re-organize directory structure (#4971)

See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
Ivan Levkivskyi
2021-01-27 12:00:39 +00:00
committed by GitHub
parent 869238e587
commit 16ae4c6120
1399 changed files with 601 additions and 97 deletions

View File

@@ -0,0 +1,3 @@
version = "0.1"
python2 = true
python3 = false

View File

View File

@@ -0,0 +1,109 @@
from typing import Any
string_types: Any
bytes_types: Any
LOST_STATES: Any
ENVI_VERSION: Any
ENVI_VERSION_KEY: Any
log: Any
class KazooClient:
logger: Any
handler: Any
auth_data: Any
default_acl: Any
randomize_hosts: Any
hosts: Any
chroot: Any
state: Any
state_listeners: Any
read_only: Any
retry: Any
Barrier: Any
Counter: Any
DoubleBarrier: Any
ChildrenWatch: Any
DataWatch: Any
Election: Any
NonBlockingLease: Any
MultiNonBlockingLease: Any
Lock: Any
Party: Any
Queue: Any
LockingQueue: Any
SetPartitioner: Any
Semaphore: Any
ShallowParty: Any
def __init__(
self,
hosts=...,
timeout=...,
client_id=...,
handler=...,
default_acl=...,
auth_data=...,
read_only=...,
randomize_hosts=...,
connection_retry=...,
command_retry=...,
logger=...,
**kwargs,
) -> None: ...
@property
def client_state(self): ...
@property
def client_id(self): ...
@property
def connected(self): ...
def set_hosts(self, hosts, randomize_hosts=...): ...
def add_listener(self, listener): ...
def remove_listener(self, listener): ...
def start(self, timeout=...): ...
def start_async(self): ...
def stop(self): ...
def restart(self): ...
def close(self): ...
def command(self, cmd=...): ...
def server_version(self, retries=...): ...
def add_auth(self, scheme, credential): ...
def add_auth_async(self, scheme, credential): ...
def unchroot(self, path): ...
def sync_async(self, path): ...
def sync(self, path): ...
def create(self, path, value=..., acl=..., ephemeral=..., sequence=..., makepath=...): ...
def create_async(self, path, value=..., acl=..., ephemeral=..., sequence=..., makepath=...): ...
def ensure_path(self, path, acl=...): ...
def ensure_path_async(self, path, acl=...): ...
def exists(self, path, watch=...): ...
def exists_async(self, path, watch=...): ...
def get(self, path, watch=...): ...
def get_async(self, path, watch=...): ...
def get_children(self, path, watch=..., include_data=...): ...
def get_children_async(self, path, watch=..., include_data=...): ...
def get_acls(self, path): ...
def get_acls_async(self, path): ...
def set_acls(self, path, acls, version=...): ...
def set_acls_async(self, path, acls, version=...): ...
def set(self, path, value, version=...): ...
def set_async(self, path, value, version=...): ...
def transaction(self): ...
def delete(self, path, version=..., recursive=...): ...
def delete_async(self, path, version=...): ...
def reconfig(self, joining, leaving, new_members, from_config=...): ...
def reconfig_async(self, joining, leaving, new_members, from_config): ...
class TransactionRequest:
client: Any
operations: Any
committed: Any
def __init__(self, client) -> None: ...
def create(self, path, value=..., acl=..., ephemeral=..., sequence=...): ...
def delete(self, path, version=...): ...
def set_data(self, path, value, version=...): ...
def check(self, path, version): ...
def commit_async(self): ...
def commit(self): ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_value, exc_tb): ...
class KazooState: ...

View File

@@ -0,0 +1,58 @@
from typing import Any
class KazooException(Exception): ...
class ZookeeperError(KazooException): ...
class CancelledError(KazooException): ...
class ConfigurationError(KazooException): ...
class ZookeeperStoppedError(KazooException): ...
class ConnectionDropped(KazooException): ...
class LockTimeout(KazooException): ...
class WriterNotClosedException(KazooException): ...
EXCEPTIONS: Any
class RolledBackError(ZookeeperError): ...
class SystemZookeeperError(ZookeeperError): ...
class RuntimeInconsistency(ZookeeperError): ...
class DataInconsistency(ZookeeperError): ...
class ConnectionLoss(ZookeeperError): ...
class MarshallingError(ZookeeperError): ...
class UnimplementedError(ZookeeperError): ...
class OperationTimeoutError(ZookeeperError): ...
class BadArgumentsError(ZookeeperError): ...
class NewConfigNoQuorumError(ZookeeperError): ...
class ReconfigInProcessError(ZookeeperError): ...
class APIError(ZookeeperError): ...
class NoNodeError(ZookeeperError): ...
class NoAuthError(ZookeeperError): ...
class BadVersionError(ZookeeperError): ...
class NoChildrenForEphemeralsError(ZookeeperError): ...
class NodeExistsError(ZookeeperError): ...
class NotEmptyError(ZookeeperError): ...
class SessionExpiredError(ZookeeperError): ...
class InvalidCallbackError(ZookeeperError): ...
class InvalidACLError(ZookeeperError): ...
class AuthFailedError(ZookeeperError): ...
class SessionMovedError(ZookeeperError): ...
class NotReadOnlyCallError(ZookeeperError): ...
class ConnectionClosedError(SessionExpiredError): ...
ConnectionLossException: Any
MarshallingErrorException: Any
SystemErrorException: Any
RuntimeInconsistencyException: Any
DataInconsistencyException: Any
UnimplementedException: Any
OperationTimeoutException: Any
BadArgumentsException: Any
ApiErrorException: Any
NoNodeException: Any
NoAuthException: Any
BadVersionException: Any
NoChildrenForEphemeralsException: Any
NodeExistsException: Any
InvalidACLException: Any
AuthFailedException: Any
NotEmptyException: Any
SessionExpiredException: Any
InvalidCallbackException: Any

View File

View File

@@ -0,0 +1,21 @@
from typing import Any
log: Any
class DataWatch:
def __init__(self, client, path, func=..., *args, **kwargs) -> None: ...
def __call__(self, func): ...
class ChildrenWatch:
def __init__(self, client, path, func=..., allow_session_lost=..., send_event=...) -> None: ...
def __call__(self, func): ...
class PatientChildrenWatch:
client: Any
path: Any
children: Any
time_boundary: Any
children_changed: Any
def __init__(self, client, path, time_boundary=...) -> None: ...
asy: Any
def start(self): ...