Premium Bond Checker
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
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.
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.