Skip to main content

Premium Bond Checker

CI PyPI version PyPI downloads License Ruff codecov

Simple premium bond checker library that is built against NS&I.

Usage

Check the next draw date

You can check the next draw date, which is calculated from the first working day of the month.

from premium_bond_checker.client import Client

print(f"Next draw: {Client.next_draw()}")

Check the next draw date revealed by

Results are not always revealed when the results are drawn. It can take upto 3 additional days for this to happen.

from premium_bond_checker.client import Client

print(f"Next draw reveal by: {Client.next_draw_results_reveal_by()}")

Check results

Results can be checked either granular or on all data points.

from premium_bond_checker.client import Client

premium_bond_number = "your bond number"

client = Client()

# Check if you've won
result = client.check(premium_bond_number)
print(f"Winning: {result.has_won()}")

# More granular breakdown
result_this_month = client.check_this_month(premium_bond_number)
print(f"This Month Winning: {result_this_month.won}")
print(f"This Month Header: {result_this_month.header}")
print(f"This Month Tagline: {result_this_month.tagline}")

result_last_six_months = client.check_last_six_months(premium_bond_number)
print(f"This Month Winning: {result_last_six_months.won}")
print(f"This Month Header: {result_last_six_months.header}")
print(f"This Month Tagline: {result_last_six_months.tagline}")

result_check_unclaimed = client.check_unclaimed(premium_bond_number)
print(f"This Month Winning: {result_check_unclaimed.won}")
print(f"This Month Header: {result_check_unclaimed.header}")
print(f"This Month Tagline: {result_check_unclaimed.tagline}")

License

MIT

Metadata

Release files for premium-bond-checker 1.2.0

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

Source distribution (sdist)

Source distribution for premium-bond-checker 1.2.0
File Size Uploaded Provenance Actions
premium_bond_checker-1.2.0.tar.gz 3.8 kB With provenance Details for premium_bond_checker-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for premium-bond-checker 1.2.0
File Interpreter ABI Platform Actions
premium_bond_checker-1.2.0-py3-none-any.whl Python 3 none any Details for premium_bond_checker-1.2.0-py3-none-any.whl

Total release size: 9.3 kB

Release files / premium_bond_checker-1.2.0.tar.gz

Download URL premium_bond_checker-1.2.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b39d3ad742f547ea03f0e99013ad0879694a06c67ec9e6fb81f834c5253bb47f
BLAKE2b-256 checksum
How to use checksums
5c6c98ae3a60c697abd1e4cb61909db453be5ec5b35c9af393fcd5128195d824
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 3, 2026.

Transparency log

Release files / premium_bond_checker-1.2.0-py3-none-any.whl

Download URL premium_bond_checker-1.2.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3ad34313fd2ed1494c267ea911942e40fd66c920a819033208bb299482aa607
BLAKE2b-256 checksum
How to use checksums
107024ae5befd2f5a3ad239aaf56bc16b1d40331c1a08ba54685143626f1a68b
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 3, 2026.

Transparency log

Security for premium-bond-checker 1.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for premium_bond_checker-1.2.0.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 3, 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