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.

Source Distribution

utilsuneed-0.0.5.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utilsuneed-0.0.5-py2-none-any.whl (7.3 kB view details)

Uploaded Python 2

File details

Details for the file utilsuneed-0.0.5.tar.gz.

File metadata

  • Download URL: utilsuneed-0.0.5.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.9

File hashes

Hashes for utilsuneed-0.0.5.tar.gz
Algorithm Hash digest
SHA256 fc4f7c047b2d5fc52a10a607f43c09cdc680d2ed7357ed27bcc9afc03cb82306
MD5 68baaef69a38394fb4a85d6ea3a98c0a
BLAKE2b-256 669eabaaff262be8e564fcc820fd58ab498927b6b02f87e9b7fd7ab29986109f

See more details on using hashes here.

File details

Details for the file utilsuneed-0.0.5-py2-none-any.whl.

File metadata

  • Download URL: utilsuneed-0.0.5-py2-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.1 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.9

File hashes

Hashes for utilsuneed-0.0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 3c9c28632aad62b06d83add97f42ffb54cd3a484426fddf2d4fd583eb67b917e
MD5 1dc64ac13a29f3045a34afe2819f63f9
BLAKE2b-256 635d46e72cb228b2993102eaeab814de1c146be716700c6e8b1f1d078ee186a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page