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.4.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.4-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: icecomet-3.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f051b9652287be239c52d281e574a4bd73751e61aa0b43ada468e415e3d8e0da
MD5 9e82ed0c7763baedd423af4eb42202ba
BLAKE2b-256 838cc2a4d8bff6276ddf34271555a30bc8a3a8acfb2506d682c9d65d427b20a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: icecomet-3.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3c26c7da20cdc2b869798054924c9a6e375217ef858a8da7c19dfee5e358acad
MD5 36158b4b0799cc37b92b0ebd204eb0b7
BLAKE2b-256 2ea8d7b7ab2ede04fdd982093c8c140af6f276aed860890cfdb89f6947aad708

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