from outwiker.core.attachment import Attachment # Create a new attachment object attachment = Attachment("filename.txt") # Get the file name of the attachment print(attachment.file_name) # Output: filename.txt # Set the content of the attachment attachment.set_content("This is the content of the file.") # Get the size of the attachment print(attachment.size) # Output: 30The above code creates a new attachment object with the file name "filename.txt". It then sets the content of the attachment and retrieves its size. Package/library: OutWiker (part of Python Package Index)