A Python module for Bangladesh Power Development Board (BPDB) Smart Meters
Project description
🔌 BPDB Smart Meter CLI
Overview
The bpdb is a Python module designed for reading and interacting with Bangladesh Power Development Board (BPDB) smart meters through an HTTP API. It provides a simple interface for retrieving consumer details and recharge data.
Installation
pip install bpdb
CLI Usage
Send OTP
$ bpdb-cli send-otp 01710123456
OTP sent to 01710123456
Login
$ bpdb-cli login 01710123456 123456
Logged in with phone number 01710123456
Recharge Info
$ 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 |
+---------------------+--------------+-------------+--------------------------+
Consumer Info
$ 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-1.5.0.tar.gz.
File metadata
- Download URL: bpdb-1.5.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
427794339e2dc0676d6eb22add60c80d43104fac585269cc8b2730545b21a1b8
|
|
| MD5 |
d7efb9ec47d4085f8af9c32939876e33
|
|
| BLAKE2b-256 |
cf1bd8c0a71d51a79e304bb9332668c41cafe7e29c80119798729556b2a1bf21
|
Provenance
The following attestation bundles were made for bpdb-1.5.0.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-1.5.0.tar.gz -
Subject digest:
427794339e2dc0676d6eb22add60c80d43104fac585269cc8b2730545b21a1b8 - Sigstore transparency entry: 789493881
- Sigstore integration time:
-
Permalink:
mdminhazulhaque/python-bpdb@3c11e4be0e0b12da21f9ab9ff7a812fcdf56f9ff -
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@3c11e4be0e0b12da21f9ab9ff7a812fcdf56f9ff -
Trigger Event:
push
-
Statement type:
File details
Details for the file bpdb-1.5.0-py3-none-any.whl.
File metadata
- Download URL: bpdb-1.5.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db166956602e8b68c7e530fa756f45a43399fccc99c854668e0556e5486db7ab
|
|
| MD5 |
ffceca7858ec236583f9235f3ccb016f
|
|
| BLAKE2b-256 |
4c2889ab5d09b1fa4632fb1cdaf9a95c782b7ee429a099c687e8f0b3a49c41e8
|
Provenance
The following attestation bundles were made for bpdb-1.5.0-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-1.5.0-py3-none-any.whl -
Subject digest:
db166956602e8b68c7e530fa756f45a43399fccc99c854668e0556e5486db7ab - Sigstore transparency entry: 789493883
- Sigstore integration time:
-
Permalink:
mdminhazulhaque/python-bpdb@3c11e4be0e0b12da21f9ab9ff7a812fcdf56f9ff -
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@3c11e4be0e0b12da21f9ab9ff7a812fcdf56f9ff -
Trigger Event:
push
-
Statement type: