Libosinfo.Loader¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.Loader(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a loader object
- Return type:
Create a new database loader
- get_db()¶
- Returns:
the database
- Return type:
Retrieves the database being populated
- process_default_path()¶
- Raises:
- process_local_path()¶
- Raises:
Loads data from the local path.
New in version 0.2.8.
- process_path(path)¶
- Parameters:
path (
str
) – the fully qualified path- Raises:
Loads data from the specified path. If the path points to a file, that will be loaded as XML Otherwise it can point to a directory which will be recursively traversed, loading all files as XML.
- process_system_path()¶
- Raises:
Loads data from the system path.
New in version 0.2.8.
- process_uri(uri)¶
- Parameters:
uri (
str
) – the data source URI- Raises:
Loads data from the specified URI. If the URI points to a file, that will be loaded as XML Otherwise it can point to a directory which will be recursively traversed, loading all files as XML.
- process_user_path()¶
- Raises:
Loads data from user path.
New in version 0.2.8.