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.5.tar.gz (8.5 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.5-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icecomet-3.1.5.tar.gz
  • Upload date:
  • Size: 8.5 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.5.tar.gz
Algorithm Hash digest
SHA256 9b66b7305390fff8dda6c67c2fc91c1847f5531aa0504062aac06cc8f32e2aea
MD5 ad24ed8944110ce5c9f294a6f287ec89
BLAKE2b-256 2caffd831a00c6bd312bd023b826d639d6ecfebf322c2f48f7d9daeae8eb500b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: icecomet-3.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 961e4c70ed9b9036842ecba0bc2d9485e6bbb72ccd8963844e1d3101cfb29e7c
MD5 be21a57eb09ccca2da9bdf659dea41d2
BLAKE2b-256 f0867e41acb68fec39c79def8fbce6f19f897b8c67e70f06c2758e2eabf92279

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