Skip to main content

A Python module for Dhaka Electric Supply Company Limited (Desco) Smart Meters

Project description

Nesco Prepaid CLI

A command-line interface (CLI) tool to collect information about Nesco Prepaid Accounts.

Installation

Install the package using pip:

pip install nesco

Usage

Get Balance

Retrieve the current balance for a specific account:

nesco-cli get-balance -c <customer_number>

Example:

$ nesco-cli get-balance -c 12345678
987.43

Get Recharge History

View the recharge history for a specific account:

nesco-cli get-recharge-history -c <customer_number>

Example:

$ nesco-cli get-recharge-history -c 12345678
  ID  Token                     Power    Amount    Via     Date                  Status
----  ------------------------  -------  --------  ------  --------------------  --------
   1  0183-4597-1724-6908-6354   957.12   1000     ROCKET  01-JAN-2025 11:00 AM   Success
   2  4815-9365-5179-7943-3266   258.65    400     BKASH   01-FEB-2025 11:00 PM   Success
   3  2265-9417-3127-5691-9994   134.45    400     BKASH   01-MAR-2025 11:00 PM   Success
   ...

Get Monthly Consumption

Retrieve monthly consumption details for a specific account:

nesco-cli get-monthly-consumption -c <customer_number>

Example:

$ nesco-cli get-monthly-consumption -c 12345678
  Year  Month        Recharge    Discount    Usage
------  ---------  ----------  ----------  -------
  2025  March            2000       -20    1875.22
  2025  February          500        -5     433.15
  2025  January          1000       -10     812.08
  ...

Replace <customer_number> with your actual account number to use the commands.

Get Customer Info

$ nesco-cli get-customer-info -c 12345678
Name                Address   Electricity Office  Feeder Name      Meter Number    Approved Load (kW)
------------------  --------  ------------------  -------------  --------------  --------------------
MD. MINHAZUL HAQUE  RAJSHAHI  Rajshahi S&D4       GREATER ROAD      12345678901                     2

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

nesco-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

nesco-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file nesco-0.0.1.tar.gz.

File metadata

  • Download URL: nesco-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nesco-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7b28d3e09fbd91b7971ef8ef5fa764642ff2c34792c8e27f5cffe3f9d029d6e7
MD5 0c444f47bb14a81043bbbc0d23b4325a
BLAKE2b-256 9adfd7377928bf0b5f79766c4c97fcd0badc8246291d6f681d7dee9628303082

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-0.0.1.tar.gz:

Publisher: pypi.yml on mdminhazulhaque/python-nesco

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

File details

Details for the file nesco-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: nesco-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nesco-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05ebf1b90aef3fc65f86174eb7d9c816adf168a062727ad566ddb02314236742
MD5 bce1a51924022a1d6279fb93472242cb
BLAKE2b-256 5276bc34b53286a76639ff87c7628b2ec9612f61a59dc1dc7f924f0a99a43f0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-0.0.1-py3-none-any.whl:

Publisher: pypi.yml on mdminhazulhaque/python-nesco

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