A Python module for Bangladesh Railway's Ticketing System
Project description
python-bpdb
Overview
The python-bpdb is a Python module designed for reading and interacting with smart meters through an HTTP API. It provides a simple interface for retrieving consumer details and last recharge data.
Installation
pip install bpdb
CLI Usage
$ bpdb-cli send-otp 01710123456
OTP sent to 01710123456
$ bpdb-cli login 01710123456 123456
Logged in with phone number 01710123456
$ bpdb-cli recharge-info 01710123456 0120100112233
+---------------------+--------------+-------------+--------------------------+
| Date | Gross Amount | Energy Cost | Tokens |
+---------------------+--------------+-------------+--------------------------+
| 2024-05-01 16:15:04 | 5000 | 4662.19 | 1111-2222-3333-4444-5555 |
| 2024-10-01 17:47:27 | 5000 | 4281.47 | 1111-2222-3333-4444-5555 |
| 2025-01-01 23:41:46 | 5000 | 4785.47 | 1111-2222-3333-4444-5555 |
+---------------------+--------------+-------------+--------------------------+
$ bpdb-cli consumer-info
+------------------+--------------------+
| Division | Mymensingh |
| Meter Type | 1P |
| Account Type | Active (Prepaid) |
| S&D Division | S&D Kishoreganj |
| Sanction Load | 4 |
| Customer Name | MD. ABDUL HANNAN |
| Customer Address | BOTTIRISH |
| Tariff Category | Tariff : LT-A |
+------------------+--------------------+
Contributing
Contributions are welcome! If you have suggestions for improvements or find bugs, please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bpdb-0.0.1.tar.gz.
File metadata
- Download URL: bpdb-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
593cf0bf06a3867ee8af9745ca38db618ac3936a21b68ecfcd95107f70471179
|
|
| MD5 |
1f48b5970e1f65861e15bc2513ea05cc
|
|
| BLAKE2b-256 |
d3186ddc4f1f9d5930f813a54db16eb62d0dea3210e1efd4e6c4d8cd28583464
|
Provenance
The following attestation bundles were made for bpdb-0.0.1.tar.gz:
Publisher:
pypi.yml on mdminhazulhaque/python-bpdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bpdb-0.0.1.tar.gz -
Subject digest:
593cf0bf06a3867ee8af9745ca38db618ac3936a21b68ecfcd95107f70471179 - Sigstore transparency entry: 176508131
- Sigstore integration time:
-
Permalink:
mdminhazulhaque/python-bpdb@8193de3bacc7e949e3c97c55eda58de6d1fc57e3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mdminhazulhaque
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8193de3bacc7e949e3c97c55eda58de6d1fc57e3 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bpdb-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bpdb-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d182916d0af9065471e801d974fbba3cdc6140722aee0dbe84b86dec24cde65
|
|
| MD5 |
7bb7efbb76ccf539a3718c4dcbd2216f
|
|
| BLAKE2b-256 |
c59ecfcf8322e84e5dde2b3bf92424daa15a02f2228006c82010a80197833349
|
Provenance
The following attestation bundles were made for bpdb-0.0.1-py3-none-any.whl:
Publisher:
pypi.yml on mdminhazulhaque/python-bpdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bpdb-0.0.1-py3-none-any.whl -
Subject digest:
6d182916d0af9065471e801d974fbba3cdc6140722aee0dbe84b86dec24cde65 - Sigstore transparency entry: 176508138
- Sigstore integration time:
-
Permalink:
mdminhazulhaque/python-bpdb@8193de3bacc7e949e3c97c55eda58de6d1fc57e3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/mdminhazulhaque
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8193de3bacc7e949e3c97c55eda58de6d1fc57e3 -
Trigger Event:
workflow_dispatch
-
Statement type: