# FAIRSave-Utilities
FS-Utilities stores a python module wheel which contains all function to run the FS-Toolbox.
## Installation
The installation needs python version 3.10.
Install the module by executing the following command in command prompt: `pip3 install FAIRSave`
## App structure and functions
- kadi_search
- search_item_titles_kadi
- search_item_id_kadi
- search_record_from_file_kadi
- search_item_identifier_kadi
- search_files_kadi
- kadi_download
- download_files_kadi
- download_metadata_kadi
- kadi_record
- create_record_kadi
- record_add_links_and_edit_kadi
- record_add_tags_kadi
- record_add_metadata_kadi
- record_add_files_kadi
- record_link_collection_kadi
- kadi_instances
- get_instances_kadi
- create_instance_kadi
- read_operator_config
- write_operator_config
- kadi_identifier
- title_id_identifier_tuples_kadi
- get_vocpopuli_id
- new_identifier_kadi
- unused_identifiers_kadi
- is_valid_identifier_kadi
- Kadi_invalid_identifiers
- Kadi_replace_invalid_identifier
- kadi_template
- create_template_kadi
- kadi_json_writer
- create_list_from_dict
- tools
- comparison
- difference
- json_reader
- dict_to_list_all_keys
- key
- metadata
- validation
- suftheowl_json
## FAQ
### 1) List of records
I have a doubt regarding the helpers doc, which function would you recommend to pull the list of Records the user has? E.g. I was thinking on download_metadata_kadi() but I would have to retrieve latter the keys from the .txt document. My other idea was to use get_instances_kadi, but I'm not sure if that's what I'm looking for
**A:** Instance is the wording taken from the kadi-apy python module meaning the access to Kadi4Mat which consists of an host and a PAT. These instances are saved in the .kadi config file
download_metadata_kadi returns all information related to a record like title, author, creation time,... and extras which are the metadata of the process described in the record.
To show the record the user has you can simply use the Search_Items function with no args except instance and item:
Search_Items(instance='YOUR_INSTANCE_NAME', item='record')
### 2) Kadi4Mat config file
How do I get the config file? Because I got a token from Kadi4mat, but I didn't get any document downloaded. Also, for the Search_Items, the instance will be again the config file with the user's data?
**A:** The creation of a config file is described here: https://kadi-apy.readthedocs.io/en/stable/setup/configuration.html
You use the commands in the command prompt.
kadi-apy create config #creates config file
The other solution would be to just run the function create_instance_kadi from my functions. It will create config file if it doesn't exist already.
The instance from the config file will be used for every function accessing Kadi4Mat.
### 3) Operator config
How to setup an operator config which can be used to fill out the "General Info" metadata of a given record using the record_add_metadata_kadi function inside kadi_records.py?
**A:** TODO
## License
Apache 2.0
Raw data
{
"_id": null,
"home_page": "",
"name": "FAIRSave",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "Kadi4Mat,FAIR",
"author": "Malte Flachmann, Floriane Bresser, Ilia Bagov (Karlsruhe Institute of Technology)",
"author_email": "malte.flachmann@kit.edu",
"download_url": "",
"platform": null,
"description": "# FAIRSave-Utilities\r\n\r\n\r\n\r\nFS-Utilities stores a python module wheel which contains all function to run the FS-Toolbox.\r\n\r\n\r\n\r\n## Installation\r\n\r\n\r\n\r\nThe installation needs python version 3.10.\r\n\r\n\r\n\r\nInstall the module by executing the following command in command prompt: `pip3 install FAIRSave`\r\n\r\n\r\n\r\n## App structure and functions\r\n\r\n- kadi_search \r\n\r\n - search_item_titles_kadi \r\n\r\n - search_item_id_kadi \r\n\r\n - search_record_from_file_kadi\r\n\r\n - search_item_identifier_kadi\r\n\r\n - search_files_kadi\r\n\r\n- kadi_download \r\n\r\n - download_files_kadi \r\n\r\n - download_metadata_kadi \r\n\r\n- kadi_record \r\n\r\n - create_record_kadi \r\n\r\n - record_add_links_and_edit_kadi \r\n\r\n - record_add_tags_kadi \r\n\r\n - record_add_metadata_kadi \r\n\r\n - record_add_files_kadi \r\n\r\n - record_link_collection_kadi\r\n\r\n- kadi_instances \r\n\r\n - get_instances_kadi \r\n\r\n - create_instance_kadi \r\n\r\n - read_operator_config\r\n\r\n - write_operator_config\r\n\r\n- kadi_identifier\r\n\r\n - title_id_identifier_tuples_kadi\r\n\r\n - get_vocpopuli_id\r\n\r\n - new_identifier_kadi\r\n\r\n - unused_identifiers_kadi\r\n\r\n - is_valid_identifier_kadi\r\n\r\n - Kadi_invalid_identifiers\r\n\r\n - Kadi_replace_invalid_identifier\r\n\r\n- kadi_template\r\n\r\n - create_template_kadi\r\n\r\n- kadi_json_writer \r\n\r\n - create_list_from_dict \r\n\r\n- tools \r\n\r\n - comparison\r\n\r\n - difference\r\n\r\n - json_reader \r\n\r\n - dict_to_list_all_keys\r\n\r\n - key\r\n\r\n - metadata\r\n\r\n - validation\r\n\r\n - suftheowl_json\r\n\r\n\r\n\r\n\r\n\r\n## FAQ\r\n\r\n\r\n\r\n### 1) List of records\r\n\r\nI have a doubt regarding the helpers doc, which function would you recommend to pull the list of Records the user has? E.g. I was thinking on download_metadata_kadi() but I would have to retrieve latter the keys from the .txt document. My other idea was to use get_instances_kadi, but I'm not sure if that's what I'm looking for\r\n\r\n\r\n\r\n**A:** Instance is the wording taken from the kadi-apy python module meaning the access to Kadi4Mat which consists of an host and a PAT. These instances are saved in the .kadi config file\r\n\r\ndownload_metadata_kadi returns all information related to a record like title, author, creation time,... and extras which are the metadata of the process described in the record.\r\n\r\nTo show the record the user has you can simply use the Search_Items function with no args except instance and item: \r\n\r\nSearch_Items(instance='YOUR_INSTANCE_NAME', item='record')\r\n\r\n\r\n\r\n### 2) Kadi4Mat config file\r\n\r\nHow do I get the config file? Because I got a token from Kadi4mat, but I didn't get any document downloaded. Also, for the Search_Items, the instance will be again the config file with the user's data?\r\n\r\n\r\n\r\n**A:** The creation of a config file is described here: https://kadi-apy.readthedocs.io/en/stable/setup/configuration.html\r\n\r\nYou use the commands in the command prompt.\r\n\r\nkadi-apy create config #creates config file\r\n\r\nThe other solution would be to just run the function create_instance_kadi from my functions. It will create config file if it doesn't exist already.\r\n\r\n\r\n\r\nThe instance from the config file will be used for every function accessing Kadi4Mat.\r\n\r\n\r\n\r\n### 3) Operator config\r\n\r\nHow to setup an operator config which can be used to fill out the \"General Info\" metadata of a given record using the record_add_metadata_kadi function inside kadi_records.py?\r\n\r\n\r\n\r\n**A:** TODO\r\n\r\n\r\n\r\n## License\r\n\r\nApache 2.0\r\n\r\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Package to run the FAIR-Save toolbox",
"version": "0.0.6.14",
"project_urls": {
"Changelog": "https://gitlab.com/linked-tribological-data/fair-save/FAIR-Save-Utilities/-/blob/main/Changelog.md",
"GitLab": "https://gitlab.com/linked-tribological-data/fair-save/FAIR-Save_Utilities"
},
"split_keywords": [
"kadi4mat",
"fair"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d5b059fb04c0be31d4716a0aef6d2c134a969a242adb3b770633f5d55231d276",
"md5": "29092c9c836d93985ffd703c85f155e2",
"sha256": "208585934ebea1da9bbc909905a6ae578e411bbfd8141ffaa38ac9bc3991d56c"
},
"downloads": -1,
"filename": "FAIRSave-0.0.6.14-py3-none-any.whl",
"has_sig": false,
"md5_digest": "29092c9c836d93985ffd703c85f155e2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 41122,
"upload_time": "2023-11-17T13:16:03",
"upload_time_iso_8601": "2023-11-17T13:16:03.560563Z",
"url": "https://files.pythonhosted.org/packages/d5/b0/59fb04c0be31d4716a0aef6d2c134a969a242adb3b770633f5d55231d276/FAIRSave-0.0.6.14-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-17 13:16:03",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "linked-tribological-data",
"gitlab_project": "fair-save",
"lcname": "fairsave"
}