Python supporter
Project description
python-supporter
https://pypi.org/project/python-supporter
pip install python-supporter
from python_supporter import logging
logging.basicConfig(logging.ERROR)
#logging.basicConfig(logging.INFO)
#logging.basicConfig(logging.DEBUG)
#logging.basicConfig()
#logging.basicConfig(logging.ERROR, filename='log.txt')
#logging.basicConfig(logging.INFO, filename='log.txt')
#logging.basicConfig(logging.DEBUG, filename='log.txt')
#logging.basicConfig(filename='log.txt')
logging.error('This is error message') #2023-03-19 22:36:47: ERROR: This is error message
logging.info('This is info message')
logging.debug('This is debug message')
import python_supporter
text = python_supporter.file.read_file(file)
python_supporter.file.write_file(file, text)
import python_supporter
chrome_debugger_address = "127.0.0.1:1001"
li = chrome_debugger_address.split(":")
remote_debugging_port = int(li[1])
remote_debugging_address = li[0]
port_opened = python_supporter.socket.check_port_open(remote_debugging_address, remote_debugging_port)
import os
import time
from python_supporter.change_ip import ChangeIp
base_directory = os.path.dirname(__file__) + "/platform-tools"
change_ip = ChangeIp(base_directory)
device = change_ip.connect_to_device()
if not device:
print(f"USB에 디바이스가 연결되지 않았습니다.")
exit()
print(f"연결된 디바이스: {device}")
print("모바일 데이터 해제")
change_ip.data_disable()
print("1초 쉬기")
time.sleep(1)
print("모바일 데이터 연결")
change_ip.data_enable()
ip = change_ip.check_ip()
print(f"PC IP: {ip}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python_supporter-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb5904e525fc2980675a769b43f5b8904f109c19d1955a677596678ab47025d |
|
MD5 | 65628eb56beaafc39cd6cba00f22f244 |
|
BLAKE2b-256 | 7d2a1f3ff2c0a17bad002031992888f946e0dd50624e1e13649afc486322d1d3 |