Skip to main content

A need for many

Project description

Help on module Utilities:

NAME Utilities

FILE f:?obodobo\projects\utilities_pack\utilsuneed\utilities.py

CLASSES COMMS LOGGER SER_2_SOCK Vector3

class COMMS
 |  Methods defined here:
 |  
 |  CLIENT_CONNECT(self, host, port)
 |  
 |  CLIENT_RECV(self, buffer=3)
 |  
 |  CLIENT_SEND(self, command)
 |  
 |  CLIENT_order_synchronous(self, command)
 |  
 |  SERV_HOST(self, host, port)
 |  
 |  SERV_NEW_CLI(self)
 |  
 |  SERV_RECV(self, buffer=3)
 |  
 |  SERV_SEND(self, data)
 |  
 |  SERV_order_syncronous(self, command)
 |  
 |  recv_buff(sock, count)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  CLIENT = False
 |  
 |  SERVER = False
 |  
 |  client_connection = None
 |  
 |  sock = <socket._socketobject object>

class LOGGER
 |  Methods defined here:
 |  
 |  __init__(self, filename='LOGS/LOG_<timestamp>.csv')
 |  
 |  log_all(self, parameter_list, attempts=20)
 |      attempts = 0  // For infinite attempts , default attempts = 20

class SER_2_SOCK
 |  Methods defined here:
 |  
 |  CONNECT(self)
 |  
 |  SETUP(self)
 |  
 |  START_SERVICE(self)
 |  
 |  ser2sock(self, serial_h, socket_h)
 |  
 |  sock2ser(self, serial_h, socket_h)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  COMbaud = 115200
 |  
 |  COMport = 'COM9'
 |  
 |  buffSize = 4096
 |  
 |  host = 'localhost'
 |  
 |  port = 8001
 |  
 |  ser_err = 0
 |  
 |  serial_connect_timeouts = 1
 |  
 |  serverSocket = <socket._socketobject object>
 |  
 |  sock_err = 0
 |  
 |  socket_connect_timeouts = 1

class Vector3
 |  Methods defined here:
 |  
 |  Dot(self, v)
 |  
 |  __add__(self, v)
 |  
 |  __call__(self, x=0, y=0, z=0, multiprocessing=False)
 |  
 |  __init__(self, x=0, y=0, z=0, multiprocessing=False)
 |  
 |  __mul__(self, n)
 |      n = SCALAR ONLY
 |  
 |  __sub__(self, v)
 |  
 |  copy(self, vec)
 |  
 |  copy_mp(self, obj)
 |  
 |  from_list(self, list)
 |  
 |  list(self)
 |  
 |  vector(self)
 |      return Numpy instance of the vector3 format
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  x
 |  
 |  y
 |  
 |  z
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  multiprocessing = False
 |  
 |  x_MP = None
 |  
 |  y_MP = None
 |  
 |  z_MP = None

FUNCTIONS decode_to_json(command)

encode_to_json(command)

printE(name='', message='')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for utilsuneed, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size utilsuneed-0.0.5-py2-none-any.whl (7.3 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size utilsuneed-0.0.5.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page