pypif.obj.common.file_reference module

class pypif.obj.common.file_reference.FileReference(relative_path=None, mime_type=None, sha256=None, md5=None, tags=None, **kwargs)

Bases: pypif.obj.common.pio.Pio

Information about a file.

__init__(relative_path=None, mime_type=None, sha256=None, md5=None, tags=None, **kwargs)

Constructor.

Parameters:
  • relative_path – String with the relative path (from the location of this file) of the file.
  • mime_type – String with the mime type of the file.
  • sha256 – String with the SHA-256 hash of the file.
  • md5 – String with the MD5 hash of the file.
  • tags – List of strings or numbers that are tags for this object.
  • kwargs – Dictionary of fields that are not supported.
md5
mime_type
relative_path
sha256