Skip to main content

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

desco-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

desco-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for desco-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ccaf9ccf021ccf3af08003f74c3b97e80fbcca34bc7cad3f10ff1a37832d2982
MD5 2a9f33da3c1fc836d16110ca87cb73ef
BLAKE2b-256 92b4ca12ee96d407fef2e7317ab9fba05815549c8bd0ba40eaf94a65bc2142db

See more details on using hashes here.

Provenance

The following attestation bundles were made for desco-0.1.0.tar.gz:

Publisher: pypi.yml on mdminhazulhaque/python-desco

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for desco-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d653a0e616903d0cdebab40a5daff4d83d2a4ae632ef2b6dd00179a4e4c595f
MD5 81d3a1815477d60fb044eec81a20e9e0
BLAKE2b-256 52d2f4f24936d72deaa477ab65e4edeb9339324ba271014ab28732328681a78e

See more details on using hashes here.

Provenance

The following attestation bundles were made for desco-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on mdminhazulhaque/python-desco

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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