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.3.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.3.0
File Size Uploaded Provenance Actions
premium_bond_checker-1.3.0.tar.gz 4.0 kB With provenance Details for premium_bond_checker-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.7 kB

Release files / premium_bond_checker-1.3.0.tar.gz

Download URL premium_bond_checker-1.3.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9e141d91eb65015645b9badc3248ade4918aa7d1b7b6e1db7e2b986d330c22ce
BLAKE2b-256 checksum
How to use checksums
1335b820ea55339d8e40f99ac3d538c678dc4420f98b6d6e687f86f70d9a841f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 31, 2026.

Transparency log

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

Download URL premium_bond_checker-1.3.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
322ec11744e3097c81969ddee7b7c7cf36c93eaea7ec970fe58b36071b107911
BLAKE2b-256 checksum
How to use checksums
4ad2deb68efb9259c1e2491296dd9d81988a3c59bb143097cbc5b0ff5a2d823b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 31, 2026.

Transparency log

Security for premium-bond-checker 1.3.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.3.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 31, 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