Package wtf :: Package ext :: Module sharedance
[hide private]
[frames] | no frames]

Module sharedance

source code

This module implements a sharedance API implementation and connector.


Author: André Malo

Classes [hide private]
  SharedanceError
Sharedance communication error
  SharedanceConnectError
Sharedance connection error
  SharedanceCommandError
Sharedance command error
  SharedanceFormatError
The format of received extended data is broken
  Sharedance
Sharedance API
  _Connected
Separation of the socket handling out of the connection object
  SharedanceConnector
Sharedance connection abstraction
Functions [hide private]
str
escape(value)
Escape a value as a sharedance key
source code
Variables [hide private]
int DEFAULT_PORT = 1042
Sharedance default port
int FLAG_COMPRESSED = 1
Flag for compressed storage
int NO_FLAGS = -2
Bit mask for checking invalid flag bits
  __package__ = 'wtf.ext'
Function Details [hide private]

escape(value)

source code 

Escape a value as a sharedance key

The value will be Base64 encoded (but with a slightly modified alphabet)

Parameters:
  • value (str) - Value to escape
Returns: str
The escaped value