Metadata-Version: 2.1
Name: Kahi_impactu_utils
Version: 0.0.6
Summary: Utils for Kahi Impactu project.
Home-page: https://github.com/colav/Kahi_impactu_utils
Author: Colav
Author-email: colav@udea.edu.co
License: BSD
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langid==1.1.6
Requires-Dist: lingua-language-detector==1.3.3
Requires-Dist: pycld2==0.41
Requires-Dist: langdetect==1.0.7
Requires-Dist: fastspell==0.8.0
Requires-Dist: iso639==0.1.4
Requires-Dist: unidecode


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

# Kahi impactu utils 
KAHI is a powerful ETL (Extract, Transform, Load) application designed to construct an academic database by merging databases and files from various sources. It simplifies the database construction process by offering a framework to define a workflow of sequential tasks using a plugin system that KAHI understands.

Kahi impactu utils is a package that contains a set of utils required for multiple plugins to work.
This package provide utils such as: name processing, laguage detection, data schemas for works, affiliations, persons, etc.

## Installation

To install Kahi impactu utils, follow these simple steps:

1. Make sure you have Python installed on your system.
2. Open a terminal or command prompt.
3. Run the following command:

```shell
pip install kahi_impactu_utils
```


# Usage
## Split names example
```python
from kahi_impactu_utils.Utils import split_names

name = "John Doe"
names = split_names(name)
print(names) ## {'names': ['John'], 'surenames': ['Doe'], 'initials': ['J.']}
```

## Detect language example
```python
from kahi_impactu_utils.Utils import lang_poll
print(lang_poll("Alguna frase en español")) ## returns "es"
```

## Process DOIs example
```python
from kahi_impactu_utils.Utils import doi_processor
doi = doi_processor("https://doi.org/10.1007/S11192-020-03647-4")
print(doi) ## returns "10.1007/s11192-020-03647-4"
```

## Check date format example
```python
from kahi_impactu_utils.Utils import check_date_format
date = "2020-01-01"
print(check_date_format(date)) ## returns 1577854800  (UTC-5) for this date
```


# License
BSD-3-Clause License 

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



