Skip to main content

debug

Project description

icecomet project

สารบัญ

มีอะไรในไลบราลี่นี้

icecomet project คือไลบราลี่ที่รวมโมดูลของคำสั่งที่ใช้งานบ่อย โดยประกอบด้วย 5 โมดูล ดังนี้:

1) icolor

icolor เป็นโมดูลที่ช่วยในการจัดการสีของข้อความในเทอร์มินัล (เช่น การทำข้อความเป็นสีแดง, เขียว, หรือสีอื่น ๆ) เพื่อช่วยในการสร้างข้อความที่ดูน่าสนใจหรือเพื่อเน้นความสำคัญ. โดยรวมแท็กพิเศษสำหรับหรับเปลี่ยนสีตัวอักษรไว้ในออบเจค color_text หรือ ct เช่น ct.red จะเก็บค่าของ '\033[91m' ซึ่งทำให้ข้อความเป็นสีแดง

2) iterText

iterText ใช้ในการขยับเคอร์เซอร์ ทำให้แก้ไขข้อความที่ถูกปริ้นออกมาบนเทอร์มินัลแล้วได้ ใช้หลักการเดียวกับ icolor โดยรวมแท็กที่ใช้ ไว้ในออบเจค cursor_control หรือ cc สามารถดูวิธีใช้ฉบับเต็มใด้ที่หัวข้อ - วิธีการใช้งานแต่ละโมดูล>iterText (เมื่อนำเข้าโมดูลนี้ ตัวออบเจค ct ที่อยู่ใน icolor จะถูกนำเข้ามาด้วย เนื่องจากมีการทำงานที่ใกล้เคียงกัน)

3) iprint

iprint จะเพิ่มคำสั่งที่ใช้บ่อยในการดีบั๊ก และจัดรูปแบบให้ใช้งานง่ายขึ้น เช่น ij('variable','t') ซึ่งเท่ากับ print(type('variable')) หรือ ij('variable','l') ที่เท่ากับ print(len('variable')) และนอกจากนี้ยังมีฟังก์ชั่นพิเศษที่ใช้ตรวจจับการรันโค้ด ว่าตอนนี้กำลังทำงานอยู่ที่จุดไหน ด้วยวิธีนี้ทำให้สามารถเช็คข้อมูลเกี่ยวกับตัวแปรหรือจุดที่มีปัญหาใด้อย่างรวดเร็ว สามารถดูวิธีใช้ฉบับเต็มใด้ที่หัวข้อ - วิธีการใช้งานแต่ละโมดูล>การใช้งาน iprint

4) ibotClick

ibotClick จะรวมฟังก์ชั่นเกี่ยวกับการทำงานอัตโนมัติ เช่นคำสั่ง คลิกขวาที่พิกัด(x,y) , กดปุ่ม(xxx) บนคีย์บอร์ด โดยใช้ Library pynput - วิธีการใช้งานแต่ละโมดูล>การใช้งาน ibotClick

5) ipandas

ipandas กำลังอยู่ระหว่างการพัฒนา ตอนนี้มีฟังก์ชั่นเดียวคือการแปลง dataframe ให้เป็น dictionary แบบที่ใช้ประกาศ dataframe

วิธีการใช้งานแต่ละโมดูล

1) icolor

โมดูล icolor ช่วยให้สามารถปรับแต่งสีของข้อความในเทอร์มินัลได้ตามต้องการ:

from icolor import icolor

# ตัวอย่างการใช้ icolor
icolor.red("ข้อความสีแดง")
icolor.green("ข้อความสีเขียว")

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

icecomet-3.1.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

icecomet-3.1.3-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file icecomet-3.1.3.tar.gz.

File metadata

  • Download URL: icecomet-3.1.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for icecomet-3.1.3.tar.gz
Algorithm Hash digest
SHA256 aacce2c3fd605172fe9eeff0784374dbe3766b9cc353b8b91cefb28ef9f83b3a
MD5 25d6d17ee09b5231428145740a8f2f59
BLAKE2b-256 9717b82ca11de982d4ba307451752e8cceaaff11f45e51c2c080d8d4b37bec27

See more details on using hashes here.

File details

Details for the file icecomet-3.1.3-py3-none-any.whl.

File metadata

  • Download URL: icecomet-3.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for icecomet-3.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 baa066c5ce1adce22f8c804dc74fae0c31cf2f24c9b31ed33ab9428cce3f4ada
MD5 28cb68f10f47397b71aaf5a05cefa290
BLAKE2b-256 125191ddacade2ce4831c9669635c708ef6dc82cbd25b6be78bf03c9d29cfa59

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