需要很多

utilsuneed的Python项目详细描述


模块实用程序帮助:

姓名 实用程序

文件 F:?obodobo\projects\utilities\u pack\utilsuneed\utilities.py

班级 通信 记录器 丝袜 矢量3

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

功能 解码为json(命令)

encode_to_json(command)

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
用于读取OBS写入的java打开文件   java使用XFire通过ssl使用Web服务   java如何查看幸存者空间中的对象   不使用ActionListener从按钮执行java代码   java仅当用户执行某个操作时,如何清除应用程序的历史记录?   json无法反序列化'java'的实例。lang.Long`out-of-START\u对象标记;在弹簧靴柱上   JavaPOJO到OpenApi定义   java时间戳格式不显示不同的值   java Android:如何从片段切换到主要活动?   用于步进计数器/健身应用程序的java循环进度条   java Log4j更改特定记录器实例的记录器级别   JAVA中实现连接的数据结构   java Mockito静态函数mock   未找到java辅助技术:org。侏儒。可访问性。阿特克拉珀   java仅当列表中没有类似项时才向ArrayList添加项   java如何使用docx4j在word中添加合并字段?