OpenQuizz
Une application de gestion des contenus pédagogiques
Resource Class Reference
Inheritance diagram for Resource:
Collaboration diagram for Resource:

Public Member Functions

def as_stream (self)
 
def file_path (self)
 
def bytes (self)
 
def size (self)
 
- Public Member Functions inherited from ResourceBase
def __init__ (self, finder, name)
 

Static Public Attributes

 is_container
 

Additional Inherited Members

- Data Fields inherited from ResourceBase
 finder
 
 name
 

Detailed Description

A class representing an in-package resource, such as a data file. This is
not normally instantiated by user code, but rather by a
:class:`ResourceFinder` which manages the resource.

Member Function Documentation

◆ as_stream()

def as_stream (   self)
Get the resource as a stream.

This is not a property to make it obvious that it returns a new stream
each time.

◆ bytes()

def bytes (   self)

◆ file_path()

def file_path (   self)

◆ size()

def size (   self)

Field Documentation

◆ is_container

is_container
static

The documentation for this class was generated from the following file: