{ "info": { "author": "Cody Collier", "author_email": "cody@telnet.org", "bugtrack_url": null, "classifiers": [], "description": "Netropy\n~~~~~~~\n\nNetropy is a python interface to the `NIST Randomness Beacon`_.\n\nAPI Quick Reference\n~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n\n # Get the current/latest record\n rec = beacon.current()\n\n # Retrieve the previous record for a given record\n rec_prev = beacon.previous(rec)\n\n # Retrieve the next record for a given record\n rec_next = beacon.next(rec)\n\n # Retrieve the last record in the chain\n rec_last = beacon.last()\n\n # Retrieve the first record in the chain\n rec_first = beacon.start_chain(rec)\n\n # Verify a record\n is_valid = record.verify_record(rec)\n\n # Verify two sequential records\n is_valid = record.verify_pair(rec1, rec2)\n\nExamples\n~~~~~~~~\n\nA record is a dictionary representation of the xml record returned from\nthe beacon:\n\n.. code:: python\n\n rec = beacon.current()\n pprint(rec)\n {'frequency': 60,\n 'outputValue': u'742B8591BF3C291C129E4C84AD01DF17EFAE5EC18ECE5299C33F23BE9F88ED77A277CA7F161237EDB69D06D683A6501D314B7DF79307400AECC4298D46588DF8',\n 'previousOutputValue': u'D52003A06C14F6CC7386B48F5CEBFE6BA583E2E6040E0698C26704AAFD6A7FC8F89D11B838E80255DB0FD9BB5DD48DC76A6C05A097B0D5E7537D65C7431E7A31',\n 'seedValue': u'016BDBDA1F9D5A20D2350755B9A27F81B4B295007F998856C2DC30D2431E9082E6CD1DE77C70FD55B71DBF8807830E69F946635CE70781C535D6DE14E62E550B',\n 'signatureValue': u'D309753214F976FB76E4325408FA5CA2EE1C514ABA7362C1A5CE1DB71078569DBF195F11F04CDAAB39B77318019A64BB5445F20D90EE8789F02E94BE7013F8D7DC70D5BBA8A310C469AA2E77175CAA4746C8385B7713B53BDD663A8940E8D55A514482EE2DD33883088F4B609351B2DBC4716FE4D047EA1BFC03D875A16B5B22ABF8AEE8BA341CABDB584E2A822196548CDA80D59DC6963B093BFBA316166E8331E66D984661957CBB68CCB8443362C75ACABB6B7407B41942CF9AB9CB17598E940298D4A7E7E5D6EF1945C77DF705496BEFDF13E3DC2C640462413094A0D6701CC9E3CAE6BA6A97EC9F67E07C49CFB64ECE9484B6F6DEA6AB531EF11F58201D',\n 'statusCode': u'0',\n 'timeStamp': 1396753680,\n 'version': u'Version 1.0'}\n\nGet the current record and print the random seed value:\n\n.. code:: python\n\n import beacon\n\n rec_current = beacon.current()\n random_value = rec_current['seedValue']\n print(random_value)\n E1DB9B9919DF258E21E3A04D2D52E9F320097710588F25472E87608BEA0C72D1295B1D5EA5F199AD4E87A227BB5A4939073EBFCD512137AAD371C31299896341\n\nGet the previous record:\n\n.. code:: python\n\n import beacon\n\n rec_current = beacon.current()\n rec_previous = beacon.previous(rec_current)\n random_value = rec_previous['seedValue']\n print(random_value)\n 299785EF23C8984459B6126222B6244E7AF0536C9EC5FF9A2D8105B0B7FB462CA0D691BCB99227D2E1337486AABF8169DE76F3D83FA2533AC9681174F926D9E3\n\nMisc\n~~~~\n\nExpects python 2.6 / 2.7\n\n.. _NIST Randomness Beacon: http://www.nist.gov/itl/csd/ct/nist_beacon.cfm", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/codycollier/netropy", "keywords": null, "license": "The MIT License (MIT)", "maintainer": null, "maintainer_email": null, "name": "netropy", "package_url": "https://pypi.org/project/netropy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/netropy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/codycollier/netropy" }, "release_url": "https://pypi.org/project/netropy/1.01/", "requires_dist": null, "requires_python": null, "summary": "Netropy is a python interface to the NIST Randomness Beacon", "version": "1.01" }, "last_serial": 1107360, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4a6986209093bd9d62991441e525c252", "sha256": "d3be666e249ad9aa435f666b5dcd6e00c7d89416802b3607db18d4bd0a0c407c" }, "downloads": -1, "filename": "netropy-1.0.macosx-10.5-fat3.exe", "has_sig": false, "md5_digest": "4a6986209093bd9d62991441e525c252", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 68130, "upload_time": "2014-05-29T01:45:52", "url": "https://files.pythonhosted.org/packages/ae/5e/bd270db178a7e4dff46052c3c8da4b5f0c35d6b6e6562bc716966192badf/netropy-1.0.macosx-10.5-fat3.exe" }, { "comment_text": "", "digests": { "md5": "ed13b5be9bb758360299853e0218663f", "sha256": "409a3d2bd782b842a27fbae05cd43d39b1c394f379e7269f3598550a9aed0d37" }, "downloads": -1, "filename": "netropy-1.0.tar.gz", "has_sig": false, "md5_digest": "ed13b5be9bb758360299853e0218663f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3597, "upload_time": "2014-05-29T01:45:49", "url": "https://files.pythonhosted.org/packages/ab/93/72a0daff0ff06e96e2f842751b562fab8d7578eb9e5f6f1c0897adae6b16/netropy-1.0.tar.gz" } ], "1.01": [ { "comment_text": "", "digests": { "md5": "d6b9e84e8a87d47c14e2a0bcf5429538", "sha256": "100e0ca88f8f8af0ebab455b6196eb7048687d8e6d56b5454109f8440656b807" }, "downloads": -1, "filename": "netropy-1.01.macosx-10.5-fat3.exe", "has_sig": false, "md5_digest": "d6b9e84e8a87d47c14e2a0bcf5429538", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 68498, "upload_time": "2014-05-29T02:12:08", "url": "https://files.pythonhosted.org/packages/c9/74/8a6d4d60875e8e776ea3928a607b47f42a9056d179eccffade6a3f394583/netropy-1.01.macosx-10.5-fat3.exe" }, { "comment_text": "", "digests": { "md5": "ede3f52160fdc05869b2fc3efb49f02a", "sha256": "fc592c620ffcdd6272703f0b4b9fbc76eb330be01eb17e8cdb2da416c8b69958" }, "downloads": -1, "filename": "netropy-1.01.tar.gz", "has_sig": false, "md5_digest": "ede3f52160fdc05869b2fc3efb49f02a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3619, "upload_time": "2014-05-29T02:12:03", "url": "https://files.pythonhosted.org/packages/da/f9/44ddc3666db622fbfc46f8d6b0a72cc7193f369a9315b08c0db4d97e65bb/netropy-1.01.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d6b9e84e8a87d47c14e2a0bcf5429538", "sha256": "100e0ca88f8f8af0ebab455b6196eb7048687d8e6d56b5454109f8440656b807" }, "downloads": -1, "filename": "netropy-1.01.macosx-10.5-fat3.exe", "has_sig": false, "md5_digest": "d6b9e84e8a87d47c14e2a0bcf5429538", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 68498, "upload_time": "2014-05-29T02:12:08", "url": "https://files.pythonhosted.org/packages/c9/74/8a6d4d60875e8e776ea3928a607b47f42a9056d179eccffade6a3f394583/netropy-1.01.macosx-10.5-fat3.exe" }, { "comment_text": "", "digests": { "md5": "ede3f52160fdc05869b2fc3efb49f02a", "sha256": "fc592c620ffcdd6272703f0b4b9fbc76eb330be01eb17e8cdb2da416c8b69958" }, "downloads": -1, "filename": "netropy-1.01.tar.gz", "has_sig": false, "md5_digest": "ede3f52160fdc05869b2fc3efb49f02a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3619, "upload_time": "2014-05-29T02:12:03", "url": "https://files.pythonhosted.org/packages/da/f9/44ddc3666db622fbfc46f8d6b0a72cc7193f369a9315b08c0db4d97e65bb/netropy-1.01.tar.gz" } ] }