anvil.media Module

Classes

TempFile

Functions

from_file

Classes

TempFile

Create a temporary file initialised with the contents of the provided media, if any.

Constructor

TempFile([media])

Instance Methods

__enter__() → string

__exit__()


TempFile Attributes

__enter__ - __enter__

__exit__ - __exit__


Functions

from_file(filename, [mime_type], [name]) → anvil.Media instance

Creates a Media object from the given file.



anvil.media