Skip to main content

A Python module for Northern Electric Supply Company Limited (Nesco) 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-1.4.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nesco-1.4.0.tar.gz
Algorithm Hash digest
SHA256 ed0548368b4bfbf30ad1bdf02a2a06d68deeb6672f34dec68aae64f1e0d20e68
MD5 644228bc5d7ec89e8e56530c99f572aa
BLAKE2b-256 8bf0267f31a8e88f3ff30d55b9b40c8eaa344fdde2fc09b2cbac0fe9cd369c6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-1.4.0.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-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: nesco-1.4.0-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.13.7

File hashes

Hashes for nesco-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef4876b0bb9ef839ef8427e2ad6d095464b84d6e5355dbd005ab6be684f40b6e
MD5 0f6f1d4fadb1b80a6fa214767e197de4
BLAKE2b-256 c3c71abfb2a58c3b6dc6d428dc3bdc513177d9ad73a4bf1c9835cbbb4276f738

See more details on using hashes here.

Provenance

The following attestation bundles were made for nesco-1.4.0-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