Mind.Knowledge
Classes, methods and functions marked with * aren’t for usual cases, they are made to help to the rest of the library.
Part of library for data saving.
-
Mind.Knowledge.data_bytes(data)[source]
Function that data(number, string...) converts to bytes.*
-
class
Mind.Knowledge.Knowledge(filename, ext='.knw')[source]
Class for all data in program.
| Parameters: |
- filename (str) – name of data file without extension
- ext (str) – extension of data file
|
-
save_data()[source]
Saves all data.
-
Mind.Knowledge.bytes_data(binary)[source]
Function that bytes converts to data(numbers, strings...).*
-
Mind.Knowledge.load(filename, ext='.knw')[source]
Function that loads saved data and returns Knowledge object.
| Parameters: |
- filename (str) – name of data file without extension
- ext (str) – extension of data file
|
| Returns: | data from file
|
| Return type: | Knowledge
|