Skip to main content

Kasawa Modules

  • สวัสดีครับ โมดูลนี้เป็นโมดูลส่วนตัวที่เปิดให้คนทั้วไปสามารถใช้งานได้เลย
    • ซึ่งเราสามารถลงโมดูล ได้สองแบบเลยแบบแรกจะใช้ git ในการลง
    • สามารถพิมพ์ชื่อลงโมดูลได้ปกติ ซึ่งตอนนี้ยังใช้ได้แบบแรก

ใครที่ต้องการลงขั้นตอนแรกให้ทำการลง git กันก่อน

# windows os
https://git-scm.com/downloads

# linux os
sudo apt install git -y

# mac os
brew install git

Example Install Module

  • อันนี้จะเป็นคำสั่งสำหรับลงโมดูลของเรานะครับผม
# git install [work]
pip install git+https://github.com/x2super/kasawa.git

#pypi install [work]
pip install kasawa

Example coding

  • Wallet topup
    • รับเงินซองอั่งเปาของคุณแบบ อัติโนมัติ ใช้งานง่ายไม่ย่งยาก
from  kasawa  import  topup
# สามารถใส่ทั้งลิ้งค์อั่งเปาได้เลย มีระบบเช็คอัติโนมัติ
# ไม่ต้องกลัวว่าผู้ใช้จะส่งลิ้งค์ที่ผิดพลาด
money  =  topup("phone(เบอร์มือถือ)", "vouch(ลิ้งค์ซองอั่งเปา)")
print(money.json())

🟢 Successfully

{
  "status": true,
  "message": {
    "voucher": {
      "voucher_id": "54720433906870018",
      "amount_baht": "10.00",
      "redeemed_amount_baht": "10.00",
      "member": 1,
      "status": "active",
      "link": "xxxxxxxxxxxxxxxx",
      "detail": "",
      "expire_date": 1739702702858,
      "type": "F",
      "redeemed": 1,
      "available": 0
    },
    "owner_profile": {
      "full_name": "xxxx ***"
    },
    "redeemer_profile": {
      "mobile_number": "0000000000"
    },
    "my_ticket": {
      "mobile": "0000000000",
      "update_date": 1739616394250,
      "amount_baht": "10.00",
      "full_name": "xxxx ***",
      "profile_pic": null
    },
    "tickets": [
      {
        "mobile": "000000-000",
        "update_date": 1739616394250,
        "amount_baht": "10.00",
        "full_name": "xxxx ***",
        "profile_pic": "https://profile-images-cdn.truemoney.com/tmn.10043578308_0d14ec5919fa3bebc42dd754afeb5.jpg"
      }
    ]
  }
}

🔴 Failed

# ลิ้งค์ซองอั่งเปาผิด
{
	'status': False, 
	'message': 'INVALID_VOUCHER'
}

# เบอร์มือถือผิด
{
	'status': False, 
	'message': 'INVALID_PHONE'
}
# หรืออีกอย่างนึงถ้าหาก รันแล้ว รับซองช้ามาก ก็คือใช้ไม่ได้เหมือนกัน

Metadata

Release files for kasawa 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kasawa 0.0.5
File Size Uploaded
kasawa-0.0.5.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kasawa 0.0.5
File Interpreter ABI Platform
kasawa-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / kasawa-0.0.5.tar.gz

Download URL kasawa-0.0.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
acbf9269bb0ee682367ce56bfc9731f2c482bda0f4dd7e980bacf733544ef59b
BLAKE2b-256 checksum
How to use checksums
dc4ed2137c8c93d5aaf3750dac12f7df2474712346483106cffb2c28d8d9a931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / kasawa-0.0.5-py3-none-any.whl

Download URL kasawa-0.0.5-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b8f68f21f85b14d86d47002912abf5cc5e747ecb63d23913ab00935649b57c2
BLAKE2b-256 checksum
How to use checksums
26815c2ab5a7392b75fa213782784c1dee894f65f2a25e87d653c202b0696b5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page