Skip to main content

provident (Python)

PyPI Python CI License: GPL-3.0-only

Unofficial Python client for the Provident (MeterConnex) utility metering portal: sign in, list your meters, and fetch consumption history and billing-period reports for electricity, water, heating, cooling, and gas.

It is a thin binding to the provident Rust crate, so both share one implementation and release version.

Not affiliated with or endorsed by Provident or QMC. The portal has no public API; this package talks to the same endpoints its web pages use, which may change without notice.

Installation

pip install provident

Wheels are prebuilt for CPython 3.11+ on Linux (x86_64, aarch64; glibc and musl), macOS (Apple Silicon, Intel), and Windows (x64), with TLS included. No Rust toolchain is needed.

Usage

from datetime import date, timedelta

from provident import Client, Utility

client = Client()

# Sign in once; the session is shared by every later call on this client.
client.auth.login("your-login", "your-password")

# Meters on the account.
meters = client.account.meters()
for meter in meters:
    print(meter.utility, meter.serial, meter.unit)

# Hourly electricity use for one day (ranges up to 7 days are hourly, longer ones daily).
meter = next(m for m in meters if m.utility is Utility.ELECTRICITY)
day = date(2026, 10, 18)
series = client.usage.series(meter, day, day + timedelta(days=1))  # end is exclusive
print(series[0].units, series[0].data)

# Start/end readings and totals for September, keyed by utility label.
report = client.usage.report(meters, date(2026, 9, 1), date(2026, 10, 1))
for utility, rows in report.items():
    for row in rows:
        print(utility, row.serial, row.total)

# Published rates for the account's location (¢/kWh; fees per 30 days).
client.rates.login("your-login", "your-password")
rates = client.rates.fetch()
print(rates.tou_on_peak.current, rates.admin_fee.current)

asyncio

AsyncClient has the same methods, each returning an awaitable:

import asyncio

from provident import AsyncClient


async def main() -> None:
    client = AsyncClient()
    await client.auth.login("your-login", "your-password")
    meters = await client.account.meters()
    print(meters)


asyncio.run(main())

Client releases the GIL while it waits, so it is safe to use from threads.

What's available

Area Calls
client.auth login(username, password, *, remember_me=False), verify()
client.account meters(), meter(id), meter_by_serial(serial), utilities(), location(node), details(), api_key(password)
client.usage series(meters, start, end, *, aggregate_groups=False), report(meters, start, end, *, aggregate_groups=False, include_deactivated=False)
client.rates login(username, password), fetch() → PublishedRates

meters/node arguments take a Meter, a TreeNode, or a node id string ("MP:692294", "GROUP:121497"); meters also takes an iterable of them. A group covers every meter below it. Client(base_url=..., rates_base_url=..., timeout=..., connect_timeout=..., user_agent=...) overrides the defaults (timeouts in seconds).

Results are read-only objects: Meter, TreeNode, Series, ReportRow, AccountDetails, PublishedRates (one RateEntry per plan period and fee, None when not published), and the Utility string enum. The package ships type hints.

Errors

Every exception derives from ProvidentError:

Exception When Attributes
LoginRejectedError Wrong username or password reason
PasswordRejectedError Wrong password for api_key reason
HTTPStatusError Non-2xx response, e.g. 401 without a session status, body
DecodeError Response in an unexpected shape status, body
TransportError Connection, TLS, or timeout failure status, timeout
InvalidMeterError A meter in the tree could not be read
RatesSessionRequiredError rates.fetch() without a (live) rates.login

Bad arguments (an unparsable node id, a negative timeout) raise ValueError/TypeError.

Things worth knowing

  • Rates. rates.login takes the same username and password as auth.login; it signs in to Provident's corporate site, a separate session. Rates are ¢/kWh, fees are per 30 days.

  • Time zones. Dates are calendar days with no zone. Hourly buckets for electricity behave like local time; water meters appear to use a fixed offset about two hours earlier in winter.

  • Missing readings. Hourly series report 0.0 for missing hours; report rows flag them with error and leave values None.

  • API key. A wrong password for api_key counts as a failed sign-in, and several in a row briefly lock the account out.

The Rust crate docs cover each endpoint in more depth.

License

GPL-3.0-only.

Metadata

Release files for provident 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for provident 0.3.1
File Size Uploaded Provenance Actions
provident-0.3.1.tar.gz 102.7 kB With provenance Details for provident-0.3.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for provident 0.3.1
File Actions
provident-0.3.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for provident-0.3.1-cp311-abi3-win_amd64.whl
provident-0.3.1-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for provident-0.3.1-cp311-abi3-musllinux_1_2_x86_64.whl
provident-0.3.1-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for provident-0.3.1-cp311-abi3-musllinux_1_2_aarch64.whl
provident-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for provident-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl
provident-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for provident-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl
provident-0.3.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for provident-0.3.1-cp311-abi3-macosx_11_0_arm64.whl
provident-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for provident-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 28.2 MB

Release files / provident-0.3.1.tar.gz

Download URL provident-0.3.1.tar.gz
Size 102.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5beac5f42ac12b507f63a499b525873e81b845f17937fd4ce5e4ef76d0ba012b
BLAKE2b-256 checksum
How to use checksums
077719b475e2afcfd968e86808504708a036f62979d0dd22befa3503a95ce01a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-win_amd64.whl

Download URL provident-0.3.1-cp311-abi3-win_amd64.whl
Size 2.2 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2dcefa7a038ecfcb3aff8de920c99a51b3e8872e22f5b1304efe0df1aa0b4595
BLAKE2b-256 checksum
How to use checksums
39efc8e73bbd121d1905ee1176469baa8acbf98a9465194a24bdbb45ecf66dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL provident-0.3.1-cp311-abi3-musllinux_1_2_x86_64.whl
Size 5.2 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
8e284bf5fc28ac13f6908133b0b417f860298624d3129fafb9a0e22df652fe0b
BLAKE2b-256 checksum
How to use checksums
180ec0810f141357fc07d953df54c51458e0a58c1908237903a92514224cf103
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL provident-0.3.1-cp311-abi3-musllinux_1_2_aarch64.whl
Size 5.6 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
3a82b65dc2ff7297c313e077f3a4a5ae9ed34907934fbe235847dfa2cc9a50cf
BLAKE2b-256 checksum
How to use checksums
6cf3a3f6f4896879b3524985140a5d7574e63af04b5b6ef66ebf41c24ae39bd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL provident-0.3.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 4.8 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
bf7eb9c14ab7251f37ed0f7c2408107a1dc11392960593cf936a907df63479a5
BLAKE2b-256 checksum
How to use checksums
50862a8271db2a9567068d51291b531d2845206701b9c5899fd6da05ce6a0586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL provident-0.3.1-cp311-abi3-manylinux_2_28_aarch64.whl
Size 5.5 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
08dfff32b336af29097046e7fd9f98053cd081a08297d85bff955ec1c0231488
BLAKE2b-256 checksum
How to use checksums
42f9a9612cb9df26b2278948f2ceb12e4936fe49b1b8fe9600d783daea7b73a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL provident-0.3.1-cp311-abi3-macosx_11_0_arm64.whl
Size 2.4 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
38b40860c56f3353e1cd626bf2bee92a5335cc19f8eabc30f4d73b4bf74a73bb
BLAKE2b-256 checksum
How to use checksums
ca838254953ddd46e5d97126013f590b4cb645742aa79be6479fa3250802379b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / provident-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL provident-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 2.4 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
290feb63b122da69bbb08053222d7a5248ad2104d8f034ef91f7662b0354c7c7
BLAKE2b-256 checksum
How to use checksums
a208c728f0e23d7c8295e67dd627c417961f8cfb199ee5abbf5f0e8e7ce6296b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for provident 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for provident-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page