{"id":22622579,"url":"https://github.com/urda/nistbeacon","last_synced_at":"2025-04-11T16:41:25.735Z","repository":{"id":56433876,"uuid":"46383147","full_name":"urda/nistbeacon","owner":"urda","description":"Python 3 Library to access the NIST Randomness Beacon","archived":false,"fork":false,"pushed_at":"2020-11-08T07:16:33.000Z","size":1813,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T12:51:16.938Z","etag":null,"topics":["nist","nist-randomness-beacon","python"],"latest_commit_sha":null,"homepage":"https://urda.github.io/nistbeacon/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/urda.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-17T23:53:32.000Z","updated_at":"2025-03-22T11:15:38.000Z","dependencies_parsed_at":"2022-08-15T18:40:22.996Z","dependency_job_id":null,"html_url":"https://github.com/urda/nistbeacon","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urda%2Fnistbeacon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urda%2Fnistbeacon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urda%2Fnistbeacon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urda%2Fnistbeacon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urda","download_url":"https://codeload.github.com/urda/nistbeacon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442153,"owners_count":21104130,"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":["nist","nist-randomness-beacon","python"],"created_at":"2024-12-08T23:16:46.764Z","updated_at":"2025-04-11T16:41:25.713Z","avatar_url":"https://github.com/urda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python NIST Randomness Beacon\n=============================\n\n**WARNING: DO NOT USE BEACON GENERATED VALUES AS SECRET CRYPTOGRAPHIC\nKEYS.**\n\nInstallation\n============\n\nPrerequisites\n-------------\n\nA required library :code:`pycryptodome` is used with :code:`nistbeacon`.\n\nUbuntu, and other Linux-based users should have :code:`python3-dev` installed.\n\n.. code:: bash\n\n    apt-get install python3-dev\n\nInstalling :code:`nistbeacon`\n-----------------------------\n\nTo install the beacon library, simply use :code:`pip`:\n\n.. code:: bash\n\n    pip install nistbeacon\n\nBeacon Usage\n============\n\nIt is easy to use the beacon. Most queries are performed through\n:code:`NistBeacon` which produces :code:`NistBeaconValue` objects.\n\nBeacon Sample Code\n------------------\n\n.. code:: python\n\n    from nistbeacon import NistBeacon\n\n    # In the examples below I will be using 1447873020\n    # as my \u003ctimestamp\u003e when required\n\n    # Current Record (or next closest)\n    # https://beacon.nist.gov/rest/record/\u003ctimestamp\u003e\n    record = NistBeacon.get_record(1447873020)\n\n    # Previous Record\n    # https://beacon.nist.gov/rest/record/previous/\u003ctimestamp\u003e\n    prev_record = NistBeacon.get_previous(1447873020)\n\n    # Next Record\n    # https://beacon.nist.gov/rest/record/next/\u003ctimestamp\u003e\n    next_record = NistBeacon.get_next(1447873020)\n\n    # First Record\n    # https://beacon.nist.gov/rest/record/1378395540\n    first_record = NistBeacon.get_first_record(download=True)\n\n    # Last Record\n    # https://beacon.nist.gov/rest/record/last\n    last_record = NistBeacon.get_last_record()\n\n    # Verify the record and the record chain\n    record_chain_result = NistBeacon.chain_check(1447873020)\n\nFurther Documentation\n=====================\n\nPlease refer to the\n`official documentation \u003chttps://urda.github.io/nistbeacon/\u003e`_\nto dive deeper into :code:`NistBeacon` and :code:`NistBeaconValue` objects.\n\nContributing\n============\n\nPlease refer to the\n`CONTRIBUTING \u003chttps://github.com/urda/nistbeacon/blob/master/.github/CONTRIBUTING.md\u003e`_\ndocument on GitHub\n\nProject Health\n==============\n\n+---------+-----------------+--------------------+----------------------+\n| Branch  | Linting Checks  | Testing Status     | Code Coverage Status |\n+=========+=================+====================+======================+\n| Master  | |MasterLint|    | |MasterTesting|    | |MasterCoverage|     |\n+---------+-----------------+--------------------+----------------------+\n\nReferences\n==========\n\n-  `NIST Randomness Beacon Homepage \u003chttps://beacon.nist.gov/home\u003e`_\n-  `NIST Beacon REST API \u003chttps://beacon.nist.gov/record/0.1/beacon-0.1.0.xsd\u003e`_\n\n.. |MasterCoverage| image::  https://codecov.io/gh/urda/nistbeacon/branch/master/graph/badge.svg?branch=master\n.. |MasterLint| image:: https://github.com/urda/nistbeacon/workflows/Linting%20Checks/badge.svg?branch=master\n.. |MasterTesting| image:: https://github.com/urda/nistbeacon/workflows/Comprehensive%20Testing/badge.svg?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furda%2Fnistbeacon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furda%2Fnistbeacon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furda%2Fnistbeacon/lists"}