{"id":16884029,"url":"https://github.com/inverse/python-premium-bond-checker","last_synced_at":"2025-10-25T21:30:22.678Z","repository":{"id":41129141,"uuid":"508436247","full_name":"inverse/python-premium-bond-checker","owner":"inverse","description":"Simple premium bond checker library","archived":false,"fork":false,"pushed_at":"2025-02-03T13:14:39.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T14:24:38.628Z","etag":null,"topics":["library","premium-bond","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inverse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-28T19:54:22.000Z","updated_at":"2025-02-03T13:14:41.000Z","dependencies_parsed_at":"2024-11-11T19:29:44.946Z","dependency_job_id":"0eb0a156-dae8-4213-96cf-8bf1c85420c4","html_url":"https://github.com/inverse/python-premium-bond-checker","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-premium-bond-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-premium-bond-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-premium-bond-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inverse%2Fpython-premium-bond-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inverse","download_url":"https://codeload.github.com/inverse/python-premium-bond-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238207659,"owners_count":19434095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","premium-bond","python"],"created_at":"2024-10-13T16:16:11.015Z","updated_at":"2025-10-25T21:30:22.673Z","avatar_url":"https://github.com/inverse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Premium Bond Checker\n\n![CI](https://github.com/inverse/python-premium-bond-checker/workflows/CI/badge.svg)\n[![PyPI version](https://badge.fury.io/py/premium-bond-checker.svg)](https://badge.fury.io/py/premium-bond-checker)\n![PyPI downloads](https://img.shields.io/pypi/dm/premium-bond-checker?label=pypi%20downloads)\n[![License](https://img.shields.io/github/license/inverse/cert-host-scraper.svg)](LICENSE)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/astral-sh/ruff)\n[![codecov](https://codecov.io/github/inverse/python-premium-bond-checker/graph/badge.svg?token=3IM22FJIJM)](https://codecov.io/github/inverse/python-premium-bond-checker)\n\n\nSimple premium bond checker library that is built against [Nsandi](https://www.nsandi.com/).\n\n## Usage\n\n### Check the next draw date\n\nYou can check the next draw date, which is calculated from the first working day of the month.\n\n```python\nfrom premium_bond_checker.client import Client\n\nprint(f\"Next draw: {Client.next_draw()}\")\n```\n\n### Check the next draw date revealed by\n\nResults are not always revealed when the results are drawn. It can take upto 3 additional days for this to happen.\n\n```python\nfrom premium_bond_checker.client import Client\nprint(f\"Next draw reveal by: {Client.next_draw_results_reveal_by()}\")\n```\n\n### Check results\n\nResults can be checked either granular or on all data points.\n\n```python\nfrom premium_bond_checker.client import Client\n\npremium_bond_number = 'your bond number'\n\nclient = Client()\n\n# Check if you've won\nresult = client.check(premium_bond_number)\nprint(f\"Winning: {result.has_won()}\")\n\n# More granular breakdown\nresult_this_month = client.check_this_month(premium_bond_number)\nprint(f\"This Month Winning: {result_this_month.won}\")\nprint(f\"This Month Header: {result_this_month.header}\")\nprint(f\"This Month Tagline: {result_this_month.tagline}\")\n\nresult_last_six_months = client.check_last_six_months(premium_bond_number)\nprint(f\"This Month Winning: {result_last_six_months.won}\")\nprint(f\"This Month Header: {result_last_six_months.header}\")\nprint(f\"This Month Tagline: {result_last_six_months.tagline}\")\n\nresult_check_unclaimed = client.check_unclaimed(premium_bond_number)\nprint(f\"This Month Winning: {result_check_unclaimed.won}\")\nprint(f\"This Month Header: {result_check_unclaimed.header}\")\nprint(f\"This Month Tagline: {result_check_unclaimed.tagline}\")\n```\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finverse%2Fpython-premium-bond-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finverse%2Fpython-premium-bond-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finverse%2Fpython-premium-bond-checker/lists"}