tcpnetlock package

Submodules

tcpnetlock.common module

exception tcpnetlock.common.ClientDisconnected[source]

Bases: tcpnetlock.common.TcpNetLockException

class tcpnetlock.common.Counter[source]

Counter, just that. We don’t care about atomicity.

count
incr()[source]
exception tcpnetlock.common.InvalidClientIdError[source]

Bases: tcpnetlock.common.TcpNetLockException

Raised by the client if the provided client-id is not valid.

exception tcpnetlock.common.InvalidLockNameError[source]

Bases: tcpnetlock.common.TcpNetLockException

Raised by the client if the provided LOCK name is not valid.

exception tcpnetlock.common.TcpNetLockException[source]

Bases: exceptions.Exception

Base class for exceptions.

class tcpnetlock.common.Utils[source]
static valid_lock_name(lock_name)[source]

Returns True if the provided lock name is valid

static validate_client_id(client_id, accept_none=True)[source]

Raises InvalidClientIdError if client-id is invalid. Pass if it’s None

tcpnetlock.constants module

tcpnetlock.protocol module

Module contents

Top-level package for TcpNetLock.