Skip to main content

Package to run the FAIR-Save toolbox

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

FAIRSave-0.0.6.14-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file FAIRSave-0.0.6.14-py3-none-any.whl.

File metadata

  • Download URL: FAIRSave-0.0.6.14-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for FAIRSave-0.0.6.14-py3-none-any.whl
Algorithm Hash digest
SHA256 208585934ebea1da9bbc909905a6ae578e411bbfd8141ffaa38ac9bc3991d56c
MD5 29092c9c836d93985ffd703c85f155e2
BLAKE2b-256 d5b059fb04c0be31d4716a0aef6d2c134a969a242adb3b770633f5d55231d276

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page