A Python module for Dhaka Electric Supply Company Limited (Desco) Smart Meters
Project description
Desco Prepaid CLI
Collect information about Desco Prepaid Accounts over CLI
Installation
pip install desco
Usage
Usage: desco-cli [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
get-balance Get balance and consumption
get-customer-info Get customer info
get-monthly-consumption Get monthly consumption
get-recharge-history Get recharge history
Get Balance
$ desco-cli get-balance -a 987654321
----------------------- -------------------
accountNo 987654321
meterNo 667788990011
balance 1384.35
currentMonthConsumption 2020.49
readingTime 2022-07-19 00:00:00
----------------------- -------------------
Get Customer Info
$ desco-cli get-customer-info -a 987654321
------------------- --------------------------
accountNo 987654321
contactNo 01833000000
customerName MR. JOHN DOE
feederName Sector 11
installationAddress H-42, R-7, SEC-13, UTTARA
installationDate 2019-06-23 00:00:00
meterNo 667788990011
phaseType Single Phase Meter
registerDate 2019-06-23 00:00:00
sanctionLoad 6
tariffSolution Category-A: Residential
meterModel None
transformer None
SDName Turag
------------------- --------------------------
Get Recharge History
$ desco-cli get-recharge-history -a 987654321
rechargeDate totalAmount vat energyAmount
------------------- ------------- ------ --------------
2022-07-14 06:59:49 2000 95.24 1923.81
2022-07-09 16:35:34 1000 47.62 521.1
2022-05-30 19:31:52 3000 142.86 2665.31
2022-04-21 10:57:38 1980 94.29 1904.57
2022-04-08 23:29:45 1000 47.62 741.5
2022-03-31 10:02:25 500 23.81 480.95
2022-03-01 13:33:16 2000 95.24 1703.41
2022-02-22 12:25:31 2970 141.43 432.46
Get Monthly Consumption
$ desco-cli get-monthly-consumption -a 987654321
month consumedTaka consumedUnit maximumDemand
------- -------------- -------------- ---------------
2022-01 9 2.401 0
2022-02 162.45 43.323 2.08
2022-03 2204.92 390.8 2.69
2022-04 1260.25 238.501 2.924
2022-05 1292.47 243.864 3.764
2022-06 2222.68 393.6 3.57
2022-07 3901.46 564.81 2.546
2022-08 2891.26 463.185 3.302
2022-09 2032.6 363.622 2.69
2022-10 735.81 148.695 1.8
2022-11 1223.71 232.408 3.486
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 desco-0.1.0.tar.gz.
File metadata
- Download URL: desco-0.1.0.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 |
ccaf9ccf021ccf3af08003f74c3b97e80fbcca34bc7cad3f10ff1a37832d2982
|
|
| MD5 |
2a9f33da3c1fc836d16110ca87cb73ef
|
|
| BLAKE2b-256 |
92b4ca12ee96d407fef2e7317ab9fba05815549c8bd0ba40eaf94a65bc2142db
|
Provenance
The following attestation bundles were made for desco-0.1.0.tar.gz:
Publisher:
pypi.yml on mdminhazulhaque/python-desco
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
desco-0.1.0.tar.gz -
Subject digest:
ccaf9ccf021ccf3af08003f74c3b97e80fbcca34bc7cad3f10ff1a37832d2982 - Sigstore transparency entry: 183010410
- Sigstore integration time:
-
Permalink:
mdminhazulhaque/python-desco@6eb15698e0f9de2f2d5ab3ea564e3827602cb5ec -
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@6eb15698e0f9de2f2d5ab3ea564e3827602cb5ec -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file desco-0.1.0-py3-none-any.whl.
File metadata
- Download URL: desco-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 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 |
4d653a0e616903d0cdebab40a5daff4d83d2a4ae632ef2b6dd00179a4e4c595f
|
|
| MD5 |
81d3a1815477d60fb044eec81a20e9e0
|
|
| BLAKE2b-256 |
52d2f4f24936d72deaa477ab65e4edeb9339324ba271014ab28732328681a78e
|
Provenance
The following attestation bundles were made for desco-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on mdminhazulhaque/python-desco
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
desco-0.1.0-py3-none-any.whl -
Subject digest:
4d653a0e616903d0cdebab40a5daff4d83d2a4ae632ef2b6dd00179a4e4c595f - Sigstore transparency entry: 183010411
- Sigstore integration time:
-
Permalink:
mdminhazulhaque/python-desco@6eb15698e0f9de2f2d5ab3ea564e3827602cb5ec -
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@6eb15698e0f9de2f2d5ab3ea564e3827602cb5ec -
Trigger Event:
workflow_dispatch
-
Statement type: