Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr UnaryOpNot Call NameLoad NameLoad Str CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Delete AttributeDel NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body TryExcept body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call NameLoad NameLoad For NameStore NameLoad body If NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore NameLoad If CompareIn SubscriptLoad NameLoad Index Num TupleLoad Str Str body Expr Yield NameLoad orelse Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Expr Yield NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr Str Str kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Num Index Num orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list NameLoad decorator_list
N/A N/A File wrappers for use as exchange data between views and responses. __future__ absolute_import io BytesIO six.moves.urllib.parse urlparse django.core.files.base File django.utils.encoding force_bytes N/A requests django_downloadview.io BytesIteratorIO StorageFile N/A File N/A N/A A file in a Django storage.

    This class looks like :py:class:`django.db.models.fields.files.FieldFile`,
    but unrelated to model instance.

     __init__ N/A N/A self storage name file N/A None N/A N/A Constructor.

        storage:
          Some :py:class:`django.core.files.storage.Storage` instance.

        name:
          File identifier in storage, usually a filename as a string.

         N/A N/A self storage storage N/A N/A self name name N/A N/A self file file N/A _get_file N/A N/A self N/A N/A N/A Getter for :py:attr:``file`` property. N/A N/A N/A N/A hasattr self _file N/A N/A self _file None N/A N/A N/A self _file N/A N/A N/A self storage open N/A self name rb N/A N/A self _file N/A _set_file N/A N/A self file N/A N/A N/A Setter for :py:attr:``file`` property. N/A N/A self _file file N/A _del_file N/A N/A self N/A N/A N/A Deleter for :py:attr:``file`` property. N/A N/A self _file N/A N/A file N/A property _get_file _set_file _del_file open N/A N/A self mode N/A rb N/A N/A Retrieves the specified file from storage and return open() result.

        Proxy to self.storage.open(self.name, mode).

         N/A N/A N/A N/A self storage open N/A self name mode N/A save N/A N/A self content N/A N/A N/A Saves new content to the file.

        Proxy to self.storage.save(self.name).

        The content should be a proper File object, ready to be read from the
        beginning.

         N/A N/A N/A N/A self storage save N/A self name content N/A path N/A N/A self N/A N/A N/A Return a local filesystem path which is suitable for open().

        Proxy to self.storage.path(self.name).

        May raise NotImplementedError if storage doesn't support file access
        with Python's built-in open() function

         N/A N/A N/A N/A self storage path N/A self name N/A property delete N/A N/A self N/A N/A N/A Delete the specified file from the storage system.

        Proxy to self.storage.delete(self.name).

         N/A N/A N/A N/A self storage delete N/A self name N/A exists N/A N/A self N/A N/A N/A Return True if file already exists in the storage system.

        If False, then the name is available for a new file.

         N/A N/A N/A N/A self storage exists N/A self name N/A size N/A N/A self N/A N/A N/A Return the total size, in bytes, of the file.

        Proxy to self.storage.size(self.name).

         N/A N/A N/A N/A self storage size N/A self name N/A property url N/A N/A self N/A N/A N/A Return an absolute URL where the file's contents can be accessed.

        Proxy to self.storage.url(self.name).

         N/A N/A N/A N/A self storage url N/A self name N/A property accessed_time N/A N/A self N/A N/A N/A Return the last accessed time (as datetime object) of the file.

        Proxy to self.storage.accessed_time(self.name).

         N/A N/A N/A N/A self storage accessed N/A self name N/A property created_time N/A N/A self N/A N/A N/A Return the creation time (as datetime object) of the file.

        Proxy to self.storage.created_time(self.name).

         N/A N/A N/A N/A self storage created_time N/A self name N/A property modified_time N/A N/A self N/A N/A N/A Return the last modification time (as datetime object) of the file.

        Proxy to self.storage.modified_time(self.name).

         N/A N/A N/A N/A self storage modified_time N/A self name N/A property N/A VirtualFile N/A File N/A N/A Wrapper for files that live in memory. __init__ N/A N/A self file name url size N/A None None N/A N/A Constructor.

        file:
          File object. Typically an io.StringIO.

        name:
          File basename.

        url:
          File URL.

         N/A N/A N/A N/A super VirtualFile self __init__ file name N/A N/A self url url N/A N/A size None N/A N/A N/A self _size size N/A _get_size N/A N/A self N/A N/A N/A N/A N/A N/A self _size N/A N/A N/A AttributeError N/A N/A N/A N/A N/A self _size N/A N/A self file size N/A N/A N/A AttributeError N/A N/A N/A self _size N/A len N/A N/A N/A self file getvalue N/A N/A self _size N/A _set_size N/A N/A self value N/A N/A N/A N/A N/A N/A super VirtualFile self _set_size value N/A N/A size N/A property _get_size _set_size __iter__ N/A N/A self N/A N/A N/A Same as ``File.__iter__()`` but using ``force_bytes()``.

        See https://code.djangoproject.com/ticket/21321

         N/A buffer_ None N/A chunk N/A N/A self chunks N/A N/A chunk_buffer N/A BytesIO N/A force_bytes chunk N/A line chunk_buffer N/A N/A buffer_ N/A N/A line N/A buffer_ line N/A buffer_ None N/A N/A N/A line N/A -1 N/A N/A N/A N/A line N/A N/A buffer_ line N/A N/A buffer_ None N/A N/A N/A buffer_ N/A N/A HTTPFile N/A File N/A N/A Wrapper for files that live on remote HTTP servers.

    Acts as a proxy.

    Uses https://pypi.python.org/pypi/requests.

    Always sets "stream=True" in requests kwargs.

     __init__ N/A N/A self request_factory url name N/A N/A requests get kwargs N/A N/A N/A self request_factory request_factory N/A N/A self url url N/A N/A name None N/A N/A parts N/A urlparse url N/A N/A parts path N/A N/A N/A self name N/A N/A N/A N/A N/A N/A parts path strip / rsplit / 1 N/A -1 N/A N/A N/A self name N/A parts netloc N/A N/A N/A self name name N/A N/A kwargs N/A stream True N/A N/A self request_kwargs kwargs N/A request N/A N/A self N/A N/A N/A N/A N/A N/A self _request N/A N/A N/A AttributeError N/A N/A N/A self _request N/A N/A self request_factory N/A self url N/A self request_kwargs N/A N/A self _request N/A property file N/A N/A self N/A N/A N/A N/A N/A N/A self _file N/A N/A N/A AttributeError N/A N/A content N/A N/A N/A self request iter_content decode_unicode False N/A N/A self _file N/A BytesIteratorIO content N/A N/A self _file N/A property size N/A N/A self N/A N/A N/A Return the total size, in bytes, of the file.

        Reads response's "content-length" header.

         N/A N/A N/A N/A self request headers N/A Content-Length N/A property content_type N/A N/A self N/A N/A N/A Return content type of the file (from original response). N/A N/A N/A N/A self request headers N/A Content-Type N/A property N/A