from outwiker.core.attachment import Attachment from outwiker.core.notes import Note note = Note() attach = Attachment("path/to/file.txt") note.attachments.add(attach)
from outwiker.core.attachment import Attachment attach = Attachment("path/to/file.txt") print(attach.size) # prints the size of the file print(attach.mime_type) # prints the mime type of the filePackage Library: The outwiker.core.attachment module is a part of the OutWiker software which is developed in Python using the PyQt Graphical User Interface (GUI) framework. It is not a standalone package library.