Skip to main content

I Make module this for using for easy to work

Project description

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'
}
# หรืออีกอย่างนึงถ้าหาก รันแล้ว รับซองช้ามาก ก็คือใช้ไม่ได้เหมือนกัน

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

kasawa-0.0.5b0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

kasawa-0.0.5b0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file kasawa-0.0.5b0.tar.gz.

File metadata

  • Download URL: kasawa-0.0.5b0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for kasawa-0.0.5b0.tar.gz
Algorithm Hash digest
SHA256 b957904acdd3f5d010f453a72a9a5c0cac1394b1b5c8fc03b9f44d55e81443bd
MD5 39071848cf925df6dbf92593097f8f53
BLAKE2b-256 6178d0195b352c4549a3974a3e071e50353db986c21c20d347cb4d02d9536b24

See more details on using hashes here.

File details

Details for the file kasawa-0.0.5b0-py3-none-any.whl.

File metadata

  • Download URL: kasawa-0.0.5b0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for kasawa-0.0.5b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1ae6a2932d25e6b7d9656c28a56d944e78ce2c3ecd06d850d660415720537cb
MD5 1edcbe2db120b0d2afd538ddbebc70e1
BLAKE2b-256 b896bf3ef8a285c9e7a83a19b77ad8442c6a7bf1f86eacf89215dd1f99a7b6de

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