Skip to main content

fund-my-watcard

Build Status PyPI PyPI - Python Version

This tool helps you add funds to your WatCard easily. I wrote this tool because I am too lazy to do it by hand everytime.

Installation

pip3 install --upgrade fund-my-watcard

Usage

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

Fund my WatCard: A tool that add funds to your WatCard easily.

optional arguments:
  -h, --help            show this help message and exit
  -c, --config          generate the config file
  -f FUND, --fund FUND  the amount to add into the WatCard
  -v, --version         show the version of fund-my-watcard
  -e, --encrypt         encrypt the config file with user defined password
  -d, --decrypt         decrypt the config file so you can edit it
  -r, --reset           reset the config file
  -va, --valid          check the config files for errors
  -t, --transactions    review the previous transactions

One important step before funding is to fill the config file .watcard_config, which is generated and stored under the user directory. Type watcard --config to initialize and edit the config file.

An example of .watcard_config:

{
  "userName": "WatIAM username",
  "password": "WatIAM password",
  "ordName": "Name on the credit card",
  "phoneNumber": "Phone number",
  "address1": "Home address 1",
  "address2": "Home address 2 (Blank if no address2)",
  "ordPostalCode": "Postal code",
  "ordCity": "City",
  "ordCountry": "Country (Canada by default)",
  "ordProvince": "Province (Ontario by default)",
  "ordEmailAddress": "Email address",
  "paymentMethod": "Payment method ('CC' for 'Credit Card')",
  "trnCardOwner": "Card owner",
  "trnCardType": "Card type ('VI' for 'Visa', 'MC' for 'Master Card', see more card types below)",
  "trnCardNumber": "Card number",
  "trnExpMonth": "Expiry month",
  "trnExpYear": "Expiry year",
  "trnCardCvd": "Card CVD (3 digit number on the back of the card)",
  "encrypted": "False"
}

An example of filled .watcard_config:

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

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).

After filling the config file, try watcard --fund 10 to add 10 dollars to your account. At the next time, no need to edit config file (unless you want to change some information), just use watcard --fund to fund your watcard easily, cheers!

Troubleshooting

If you run into errors while using watcard --fund, it might be caused by your config file.

Please use watcard --valid to check for errors in your config file.

If that doesn't work, just reset your config file with watcard --reset and fill in your information again.

Docker Image

We also maintain a docker image for fund-my-watcard:

https://hub.docker.com/r/faushine/fund-my-watcard

Pull image from docker-hub:

 docker pull faushine/fund-my-watcard:0.4.1

Create and edit .watcard_config (There is a template of .watcard_config in the folder docker, you may want to edit it directly).

Run container and mount configuration to the container:

docker run -it  -v /absolute/path/of/.watcard_config:/root/.watcard_config faushine/fund-my-watcard:0.3.1

Contributing

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

Plan

Check kanban board to see our future plan.

Metadata

Release files for fund-my-watcard 0.5.1

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

Source distribution (sdist)

Source distribution for fund-my-watcard 0.5.1
File Size Uploaded Provenance Actions
fund-my-watcard-0.5.1.tar.gz 11.3 kB Without provenance Details for fund-my-watcard-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fund-my-watcard 0.5.1
File Interpreter ABI Platform Actions
fund_my_watcard-0.5.1-py3-none-any.whl Python 3 none any Details for fund_my_watcard-0.5.1-py3-none-any.whl

Total release size: 35.7 kB

Release files / fund-my-watcard-0.5.1.tar.gz

Download URL fund-my-watcard-0.5.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d04943de5a7245c064b78cf4abc025c26afd485c3bd8b42bf430662517e8bcc1
BLAKE2b-256 checksum
How to use checksums
3c6a37f448f99626251a5bb1415f59a74439bb89e2673bdba31061e7f24af429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5rc1

Release files / fund_my_watcard-0.5.1-py3-none-any.whl

Download URL fund_my_watcard-0.5.1-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3fbbb8306ff89625d89e2a4a678ac9fd0f46d21206204f3aaf47d19e3dd9176
BLAKE2b-256 checksum
How to use checksums
0afb5fdfdebcd8ae248ef05c784eb4aaf2794ef664e01dfae3f85cbd46e835e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5rc1

Security for fund-my-watcard 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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