mnemocards_essentials
append_to_property
AppendToProperty
Bases: PydanticTask
Append an item to a property of type list.
Provide a collection of pairs consisting of a name and its corresponding value, where the name represents the note property to which we wish to add the value.
Configuration example:
- task: AppendToProperty
note_property_list: value to append
another_not_property_list: another value to append
If the given property is not a list you will get an error.
Source code in src/mnemocards_essentials/append_to_property.py
directory
Directory
Bases: PydanticTask
Read a pipeline object from another directory.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path to the root directory in which the configuration file is. You can also specify a different configuration name. |
Source code in src/mnemocards_essentials/directory.py
git
pipeline
Pipeline
Bases: PydanticTask
Basic Mnemocards tasks that represents a sequence of tasks.
Attributes:
Name | Type | Description |
---|---|---|
name |
Optional[str]
|
Optional pipeline name. |
steps |
List[Task]
|
List of Mnemocards tasks included in this pipelines. |
Source code in src/mnemocards_essentials/pipeline.py
print
Print
Bases: task.Task
, pydantic.BaseModel
Print every processed note in the terminal.
Attributes:
Name | Type | Description |
---|---|---|
format_ |
PrintFormat
|
Format to use when printing the notes. |
sort_keys |
bool
|
Show note properties sorted alphabetically. |
ignore_regex |
Optional[Pattern]
|
If any note property match this regex it will not be included in the printed note. |
Source code in src/mnemocards_essentials/print.py
read_csv
ReadCsv
Bases: PydanticTask
Read a CSV file.
Comma-separated values (CSV) is a simple, text-based file format for
storing tabular data. Records are separated by newlines, and values within
a record are separated by comma ,
characters.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path (directory + filename) of the CSV file to read. |
options |
dict[str, Any]
|
Extra parameters to pass to the python |
Source code in src/mnemocards_essentials/read_csv.py
read_json
ReadJson
Bases: PydanticTask
Read a JSON file.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path (directory + filename) of the JSON file to read. |
Source code in src/mnemocards_essentials/read_json.py
read_toml
ReadToml
Bases: PydanticTask
Read a TOML file.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path (directory + filename) of the TOML file to read. |
options |
dict[str, Any]
|
Extra parameters to pass to the |
Source code in src/mnemocards_essentials/read_toml.py
read_tsv
ReadTsv
Bases: PydanticTask
Read a TSV file.
Tab-separated values (TSV) is a simple, text-based file format for storing tabular data. Records are separated by newlines, and values within a record are separated by tab characters.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path (directory + filename) of the TSV file to read. |
options |
dict[str, Any]
|
Extra parameters to pass to the python |
Source code in src/mnemocards_essentials/read_tsv.py
read_xml
ReadXml
Bases: PydanticTask
Read a XML file.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path (directory + filename) of the XML file to read. |
Source code in src/mnemocards_essentials/read_xml.py
read_yaml
ReadYaml
Bases: PydanticTask
Read a YAML file.
Attributes:
Name | Type | Description |
---|---|---|
path |
Path
|
Path (directory + filename) of the YAML file to read. |