Skip to main content

A tool to fund WatCard in an easy way

Project description

fund-my-watcard

Build Status PyPI PyPI - Python Version

This is a convenient tool to fund your WatCard easily. I am too lazy to do it by my hand everytime, so I write this tool.

Installation

pip3 install fund-my-watcard

Usage

teachertian@v1040-wn-rt-c-83-249 ~/PycharmProjects/fundmywatcard: watcard
usage: watcard [-h] [-c | -f FUND | -v]

Fund my WatCard: A tool to fund WatCard easily.

optional arguments:
  -h, --help            show this help message and exit
  -c, --config          generate the config file
  -f FUND, --fund FUND  the fund amount to the WatCard
  -v, --version         show the version of fund-my-watcard

An example of .watcard_config:

{
  "userName": "s123zhang",
  "password": "1234567",
  "ordName": "San Zhang",
  "phoneNumber": "123 456 7890",
  "address1": "123 Queen Street West",
  "address2": "",
  "ordPostalCode": "A1B2C3",
  "ordCity": "Waterloo",
  "ordEmailAddress": "zhangsan@gmail.com",
  "paymentMethod": "CC",
  "trnCardOwner": "San Zhang",
  "trnCardType": "MC",
  "trnCardNumber": "1234567890123456",
  "trnExpMonth": "01",
  "trnExpYear": "25",
  "trnCardCvd": "123"
}

Payment Method should be "CC" (Credit Card). Do not support Interac Online.

Card Type can be "MC" (Mastercard), "VI" (Visa), "PV" (VISA Debit), "MD" (Debit Mastercard) or "AM" (AMEX).

Contributing

Please install dev-requirements.txt instead of requirements.txt. After that, run dev-init.sh to install the pre-commit hook to force PEP8 style checking.

Plan

  • Tests
  • Docker
  • Check the balance and fund automatically
  • More robust

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

fund-my-watcard-0.2.0.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.

fund_my_watcard-0.2.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file fund-my-watcard-0.2.0.tar.gz.

File metadata

  • Download URL: fund-my-watcard-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for fund-my-watcard-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a7216b9c5be9e00a14af5b821f30919f0e689397388f7d06d312cbbec52fc8d1
MD5 62a687d2c85a20e2e8a57c50e662f522
BLAKE2b-256 47368e2d930b3bb6f5974f0e25d226ebf5ee8af58f907073eca9e64be8fbcdc1

See more details on using hashes here.

File details

Details for the file fund_my_watcard-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fund_my_watcard-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for fund_my_watcard-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f436bf4c0d92e553c69efcfa564c91f75987959ed0e75bc0b203a4473ed06ad
MD5 3cd8c20d4ee776856e43c12aaedaefdf
BLAKE2b-256 1a7a0c32eaf6343382a6b972f859bd3a2a755179c30a9cbc4b18076f0c973489

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