Contents Menu Expand Light mode Dark mode Auto light/dark mode
miniscope-io 0.1.8 documentation
miniscope-io 0.1.8 documentation
  • Guide
    • Installation
    • Stream DAQ
  • API
    • Data
    • Devices
    • Formats
      • SDCard
      • Stream
    • io
    • Logging
    • Models
      • Buffer
      • Config
      • Mixins
      • Models
      • Stream
    • exceptions
    • Plots
      • Headers
    • Utils
    • Stream DAQ
    • Vendor
      • OpalKelly FrontPanel
  • Meta
    • Changelog
    • TODO
Back to top
Edit this page

Utils#

miniscope_io.utils.hash_file(path: Path | str) → str#

Return the sha256 hash of a file

Parameters:
  • path (pathlib.Path) – File to hash

  • hash (str) – Hash algorithm to use

Returns:

Hash of file

Return type:

str

References

https://stackoverflow.com/a/44873382

Next
Stream DAQ
Previous
Headers
Copyright © 2023, Jonny
Made with Sphinx and @pradyunsg's Furo
On this page
  • Utils
    • hash_file()