{"id":18300,"date":"2021-12-01T10:43:57","date_gmt":"2021-12-01T05:13:57","guid":{"rendered":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/?p=18300"},"modified":"2021-12-01T10:43:59","modified_gmt":"2021-12-01T05:13:59","slug":"python-oshash-module","status":"publish","type":"post","link":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/","title":{"rendered":"Get The Most Out of Python Oshash Module"},"content":{"rendered":"\n<p>Hello Geeks! How are you doing? I hope everything is fine. So today in this article we are going to discuss the oshash module. We will see how we can install it in our system and can use it. We will also see the performance measure of this algorithm in comparison to other <span style=\"text-decoration: underline;\"><strong><a href=\"https:\/\/www.pythonpool.com\/10-machine-learning-algorithms-for-beginners\/\" target=\"_blank\" rel=\"noreferrer noopener\">algorithms<\/a><\/strong><\/span>. After that, we look at some of its examples to get a clear understanding of that. So, Let&#8217;s get started,<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Hashing_and_Hash_Functions\" title=\"Hashing and Hash Functions\">Hashing and Hash Functions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Oshash_Module\" title=\"Oshash Module\">Oshash Module<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Installation\" title=\"Installation\">Installation<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Using_Oshash\" title=\"Using Oshash\">Using Oshash<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#In_Program_file\" title=\"In Program file\">In Program file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#In_Command_Line\" title=\"In Command Line\">In Command Line<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Working_of_Oshash\" title=\"Working of Oshash\">Working of Oshash<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Comparison_of_Oshash_with_other_methods_to_calculate_Checksum\" title=\"Comparison of Oshash with other methods to calculate Checksum\">Comparison of Oshash with other methods to calculate Checksum<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#FAQs\" title=\"FAQs\">FAQs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#Trending_Python_Articles\" title=\"Trending Python Articles\">Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-hashing-and-hash-functions\"><span class=\"ez-toc-section\" id=\"Hashing_and_Hash_Functions\"><\/span>Hashing and Hash Functions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Hashing means using some function or algorithm to map object data to some representative integer value. It is achieved in the form of a table having key-values pair. It works in the way that the value is fed to that hashing function and it returns a key also known as hash-keys\/hash-codes corresponding to the value. The hash code, which is an integer, is then mapped to the fixed size we have.<\/p>\n\n\n\n<p>From here we can deduce that a&nbsp;<strong>hash function<\/strong>&nbsp;is any&nbsp;function&nbsp;that can be used to map&nbsp;data&nbsp;of arbitrary size to fixed-size values. Those values returned by a hash function are called&nbsp;<em>hash values<\/em>,&nbsp;<em>hash codes<\/em>, or simply&nbsp;<em>hashes<\/em>. So, till now we understood about hashing now we can move on to the module i.e. &#8220;<strong>oshash&#8221;<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-oshash-module\"><span class=\"ez-toc-section\" id=\"Oshash_Module\"><\/span>Oshash Module<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Although there are several algorithms that work quite efficiently, <strong>&#8220;Oshash&#8221; <\/strong>tried some different approaches to achieve this. Unlike other algorithms, its primary goal is to achieve good speed where others are lagging. The main drawback which makes them slow is that they read the whole file all in once which isn&#8217;t a practice for &#8220;<strong>oshash&#8221;<\/strong>. Instead, it reads the file in parts. <\/p>\n\n\n\n<p>However, we didn&#8217;t have to worry much about its internal working and hash functions. We will focus more on its usage. Let&#8217;s see its installation first and then will move on to the example.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-installation\"><span class=\"ez-toc-section\" id=\"Installation\"><\/span>Installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>We can install it using pip with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install oshash<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-using-oshash\"><span class=\"ez-toc-section\" id=\"Using_Oshash\"><\/span>Using Oshash<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So, Once we are done with the installation, Let&#8217;s see how can we use it.<\/p>\n\n\n\n<p> We can use it in either of ways, the first one is in our program file or we can also use it through the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Command-line_interface\" target=\"_blank\" rel=\"noreferrer noopener\">command-line interface<\/a>. Let&#8217;s see an example for each.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-in-program-file\"><span class=\"ez-toc-section\" id=\"In_Program_file\"><\/span>In Program file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# let's first import oshash module using\n\nimport oshash\n\nfile_hash = oshash.oshash(&lt;path to video file&gt;)\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-in-command-line\"><span class=\"ez-toc-section\" id=\"In_Command_Line\"><\/span>In Command Line<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$ oshash &lt;path to file&gt;<\/code><\/pre>\n\n\n\n<p>It returns a hash file in both cases. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-working-of-oshash\"><span class=\"ez-toc-section\" id=\"Working_of_Oshash\"><\/span>Working of Oshash<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Although we haven&#8217;t encountered any such algorithm in the above example, in the background, a hash is computed as explained below.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfile_buffer = open(&quot;\/path\/to\/file\/&quot;)\n\nhead_checksum = checksum(file_buffer.head(64 * 1024))  # 64KB\ntail_checksum = checksum(file_buffer.tail(64 * 1024))  # 64KB\n\nfile_hash = file_buffer.size + head_checksum + tail_checksum\n<\/pre><\/div>\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-kilo monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-comparison-of-oshash-with-other-methods-to-calculate-checksum\"><span class=\"ez-toc-section\" id=\"Comparison_of_Oshash_with_other_methods_to_calculate_Checksum\"><\/span>Comparison of Oshash with other methods to calculate Checksum<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So, till now we understood the meaning of oshash, its time to see how this module is better than others. To see this let&#8217;s take a look at the graph comparison of different algorithms.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport os\nimport hashlib\nimport argparse\n\nimport oshash\n\nfrom pprint import pprint\nfrom timeit import timeit\n\ntry:\n    import matplotlib.pyplot as plt\nexcept ImportError:\n    plt = None\n\ntry:\n    import seaborn  # noqa\n    seaborn.set()\nexcept ImportError:\n    pass\n\n\nBLOCK_SIZE = 65536  # 64K: 64 * 1024\n\n\ndef hash_file(file_path, hash_func):\n    hasher = hash_func()\n\n    with open(file_path, &quot;rb&quot;) as f:\n        block_bytes = f.read(BLOCK_SIZE)\n\n        while len(block_bytes) &gt; 0:\n            hasher.update(block_bytes)\n            block_bytes = f.read(BLOCK_SIZE)\n\n    return hasher.hexdigest()\n\n\ndef main():\n    parser = argparse.ArgumentParser(description=&quot;OpenSubtitles Hash tool&quot;)\n\n    parser.add_argument(&quot;file_path&quot;, help=&quot;File path to test each algorithm&quot;)\n    parser.add_argument(&quot;-n&quot;, &quot;--number&quot;, type=int, help=&quot;How many times to execute each algorithm&quot;, default=1)\n\n    args = parser.parse_args()\n\n    file_path = os.path.expanduser(args.file_path)\n\n    algorithm_times = {\n        &quot;oshash&quot;: timeit(lambda: oshash.oshash(file_path), number=args.number)\n    }\n\n    for algorithm_name in hashlib.algorithms_guaranteed:\n        if algorithm_name.startswith('shake_'):\n                continue\n\n        hash_func = getattr(hashlib, algorithm_name, None)\n\n        algorithm_times&#x5B;algorithm_name] = timeit(lambda: hash_file(file_path, hash_func), number=args.number)\n\n    pprint(algorithm_times)\n\n    if plt is not None:\n        names, times = zip(*sorted(algorithm_times.items(), key=lambda x: x&#x5B;1]))\n\n        barlist = plt.bar(names, times)\n\n        barlist&#x5B;names.index(&quot;oshash&quot;)].set_color(&quot;red&quot;)  # mark oshash bar\n\n        file_size = os.path.getsize(file_path)\n        plt.title(&quot;{} ({})&quot;.format(file_path, oshash.utils.human_size(file_size)))\n\n        plt.show()\n\n\nif __name__ == '__main__':\n    main()\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/11\/big_buck_bunny_320p_comparison-1024x527.png\" alt=\"Comparison of Oshash with other methods to calculate Checksum\" class=\"wp-image-18543\" width=\"706\" height=\"363\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/11\/big_buck_bunny_320p_comparison-1024x527.png 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/11\/big_buck_bunny_320p_comparison-300x155.png 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/11\/big_buck_bunny_320p_comparison-768x396.png 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/11\/big_buck_bunny_320p_comparison.png 1299w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p>So, in the above code what we have done is first we imported all the required modules needed t do the comparisons and graph plotting. We also imported the oshash module along with the <span style=\"text-decoration: underline;\"><strong><a href=\"https:\/\/www.pythonpool.com\/python-hashlib\/\" target=\"_blank\" rel=\"noreferrer noopener\">hashlib module<\/a><\/strong><\/span> which provides the SHA-224, <span style=\"text-decoration: underline;\"><strong><a href=\"https:\/\/www.pythonpool.com\/python-sha256\/\" target=\"_blank\" rel=\"noreferrer noopener\">SHA-256<\/a><\/strong><\/span>, SHA-384, SHA-512 hash algorithms in addition to platform optimized versions of <span style=\"text-decoration: underline;\"><strong><a href=\"https:\/\/www.pythonpool.com\/python-md5\/\" target=\"_blank\" rel=\"noreferrer noopener\">MD5<\/a><\/strong><\/span> and SHA1. If OpenSSL is present all of its hash algorithms are provided.<\/p>\n\n\n\n<p>Now once we are done with importing, we defined a hash_file() function which creates a hash file corresponding to the given algorithm provided. Then, we defined a main() function. In the main function, we first provided the path of the file and then create a dictionary object whose key is the name of the algorithm and the value is the time required to create the hash file. <\/p>\n\n\n\n<p>In the above code, we first calculated the time using the lambda function for the oshash module. Once it is completed, we start calculating the values for other algorithms. To do that we make use of the hashlib module and iterate over each algorithm provided by the library and store the time to calculate the file in the dictionary. Once, all the algorithms are calculated we plotted the graph for them using the <span style=\"text-decoration: underline;\"><strong><a href=\"https:\/\/www.pythonpool.com\/category\/matplotlib\/\" target=\"_blank\" rel=\"noreferrer noopener\">matplotlib library<\/a><\/strong><\/span> and we defined the code for them.<\/p>\n\n\n\n<p>Once we got the graph we can easily see the differences in the time comparison from the oshash module and algorithms present in the hashlib module and oshash is way faster than other algorithms.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-beta monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-image\"><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/a><\/div><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending<\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\">[Fixed] nameerror: name Unicode is not defined<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-faqs\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1638152143645\"><strong class=\"schema-faq-question\">Can we use other hashes like SHA and MD5 using Oshash?<\/strong> <p class=\"schema-faq-answer\">No, we can&#8217;t use other hashes like SHA and Md5 using Oshash.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1638152278866\"><strong class=\"schema-faq-question\">What is the Block Size used in reading files using oshash?<\/strong> <p class=\"schema-faq-answer\">The size of the block for reading files is 65536 = 64*1024<\/p> <\/div> <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>So, today in this article we learned about the python <strong>&#8220;oshash module&#8221;<\/strong>. We also learned how can we use it for building subtitles files. <\/p>\n\n\n\n<p>Hope this article helped you. Thank you<\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Python_Articles\"><\/span>Trending Python Articles<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>Hello Geeks! How are you doing? I hope everything is fine. So today in this article we are going to discuss the oshash module. We &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Get The Most Out of Python Oshash Module\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/#more-18300\" aria-label=\"More on Get The Most Out of Python Oshash Module\">Read more<\/a><\/p>\n","protected":false},"author":25,"featured_media":18568,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4345],"tags":[4563,4562,4564],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v22.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get The Most Out of Python Oshash Module - Python Pool<\/title>\n<meta name=\"description\" content=\"In this article, we are going to discuss the oshash module. We will see how we can install it in our system and can use it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/python-oshash-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get The Most Out of Python Oshash Module\" \/>\n<meta property=\"og:description\" content=\"Hello Geeks! How are you doing? I hope everything is fine. So today in this article we are going to discuss the oshash module. We will see how we can\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-oshash-module\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-01T05:13:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-01T05:13:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rishav Raj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rishav Raj\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/\"},\"author\":{\"name\":\"Rishav Raj\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4\"},\"headline\":\"Get The Most Out of Python Oshash Module\",\"datePublished\":\"2021-12-01T05:13:57+00:00\",\"dateModified\":\"2021-12-01T05:13:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/\"},\"wordCount\":791,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png\",\"keywords\":[\"oshash\",\"python os hash\",\"python oshash\"],\"articleSection\":[\"Module\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-oshash-module\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/\",\"name\":\"Get The Most Out of Python Oshash Module - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png\",\"datePublished\":\"2021-12-01T05:13:57+00:00\",\"dateModified\":\"2021-12-01T05:13:59+00:00\",\"description\":\"In this article, we are going to discuss the oshash module. We will see how we can install it in our system and can use it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152143645\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152278866\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-oshash-module\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png\",\"width\":1200,\"height\":628,\"caption\":\"python oshash\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get The Most Out of Python Oshash Module\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4\",\"name\":\"Rishav Raj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/23ea47a45532b57ae2a81f274f5ae257?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/23ea47a45532b57ae2a81f274f5ae257?s=96&d=wavatar&r=g\",\"caption\":\"Rishav Raj\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152143645\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152143645\",\"name\":\"Can we use other hashes like SHA and MD5 using Oshash?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, we can't use other hashes like SHA and Md5 using Oshash.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152278866\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152278866\",\"name\":\"What is the Block Size used in reading files using oshash?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The size of the block for reading files is 65536 = 64*1024\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Get The Most Out of Python Oshash Module - Python Pool","description":"In this article, we are going to discuss the oshash module. We will see how we can install it in our system and can use it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/","og_locale":"en_US","og_type":"article","og_title":"Get The Most Out of Python Oshash Module","og_description":"Hello Geeks! How are you doing? I hope everything is fine. So today in this article we are going to discuss the oshash module. We will see how we can","og_url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/","og_site_name":"Python Pool","article_published_time":"2021-12-01T05:13:57+00:00","article_modified_time":"2021-12-01T05:13:59+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png","type":"image\/png"}],"author":"Rishav Raj","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Rishav Raj","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#article","isPartOf":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/"},"author":{"name":"Rishav Raj","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4"},"headline":"Get The Most Out of Python Oshash Module","datePublished":"2021-12-01T05:13:57+00:00","dateModified":"2021-12-01T05:13:59+00:00","mainEntityOfPage":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/"},"wordCount":791,"commentCount":0,"publisher":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage"},"thumbnailUrl":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png","keywords":["oshash","python os hash","python oshash"],"articleSection":["Module"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/","url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/","name":"Get The Most Out of Python Oshash Module - Python Pool","isPartOf":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage"},"image":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage"},"thumbnailUrl":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png","datePublished":"2021-12-01T05:13:57+00:00","dateModified":"2021-12-01T05:13:59+00:00","description":"In this article, we are going to discuss the oshash module. We will see how we can install it in our system and can use it.","breadcrumb":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152143645"},{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152278866"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#primaryimage","url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png","contentUrl":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/12\/oshash.png","width":1200,"height":628,"caption":"python oshash"},{"@type":"BreadcrumbList","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Get The Most Out of Python Oshash Module"}]},{"@type":"WebSite","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#website","url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/twitter.com\/pythonpool","https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#\/schema\/person\/025222e28182ecbb97e17f9f1bf15ac4","name":"Rishav Raj","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/secure.gravatar.com\/avatar\/23ea47a45532b57ae2a81f274f5ae257?s=96&d=wavatar&r=g","contentUrl":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/secure.gravatar.com\/avatar\/23ea47a45532b57ae2a81f274f5ae257?s=96&d=wavatar&r=g","caption":"Rishav Raj"}},{"@type":"Question","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152143645","position":1,"url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152143645","name":"Can we use other hashes like SHA and MD5 using Oshash?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, we can't use other hashes like SHA and Md5 using Oshash.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152278866","position":2,"url":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/python-oshash-module\/#faq-question-1638152278866","name":"What is the Block Size used in reading files using oshash?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The size of the block for reading files is 65536 = 64*1024","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/18300"}],"collection":[{"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=18300"}],"version-history":[{"count":25,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/18300\/revisions"}],"predecessor-version":[{"id":18575,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/18300\/revisions\/18575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/18568"}],"wp:attachment":[{"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=18300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=18300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=18300"}],"curies":[{"name":"wp","href":"https:\/\/web.archive.org\/web\/20240926033741\/https:\/\/api.w.org\/{rel}","templated":true}]}}