Metadata-Version: 2.1
Name: Kahi_staff_affiliations
Version: 0.1.2b0
Summary: Kahi plugin staff_affiliations
Home-page: https://github.com/colav/Kahi_plugins
Author: Colav
Author-email: colav@udea.edu.co
License: BSD
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: kahi
Requires-Dist: pymongo
Requires-Dist: pandas
Requires-Dist: openpyxl

<center><img src="https://raw.githubusercontent.com/colav/colav.github.io/master/img/Logo.png"/></center>

# Kahi staff affiliations plugin 
Kahi will use this plugin to insert or update the affiliations information from institution's staff file

# Description
Plugin that reads the information from institution's staff file to update or insert the information of the faculties and departments in CoLav's database format.

# Installation
You could download the repository from github. Go into the folder where the setup.py is located and run
```shell
pip3 install .
```
From the package you can install by running
```shell
pip3 install kahi_staff_affiliations
```

## Dependencies
Software dependencies will automatically be installed when installing the plugin.
The user must have at least one file from staff's office for example: University of Antioquia.

# Usage
To use this plugin you must have kahi installed in your system and construct a yaml file such as:
```yaml
config:
  database_url: localhost:27017
  database_name: kahi
  log_database: kahi_log
  log_collection: log
workflow:
  staff_affiliations:
    databases:
      - institution_id: https://ror.org/03bp5hc83 #Universidad de Antioquia (could be any external id ex: ROR_ID, GRID_ID, etc)
        file_path: staff/Base de Datos profesores 2024_con_clasificación de Colciencias.xlsx
      - institution_id: https://ror.org/00jb9vg53 #Universidad del Valle
        file_path: staff/Maestro_empleado DOCENTES SEP 26_NORMALIZADO_univalle_2023.xlsx
      - institution_id: https://ror.org/05tkb8v92 #Universidad Autónoma Latinoamericana
        file_path: staff/UNAULA_Profesores regulares y ocasionales vige_NORMALIZADO.xlsx
      - institution_id: https://ror.org/02xtwpk10 # Universidad Externado de Colombia
        file_path: staff/Formato reporte de información docentes_2023_NORMALIZADO_uec.xlsx
    verbose: 5
```


# License
BSD-3-Clause License 

# Links
http://colav.udea.edu.co/



