Utils for Kahi Impactu project.
Project description
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:
- Make sure you have Python installed on your system.
- Open a terminal or command prompt.
- Run the following command:
pip install kahi_impactu_utils
Usage
Split names example
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
from kahi_impactu_utils.Utils import lang_poll
print(lang_poll("Alguna frase en español")) ## returns "es"
Process DOIs example
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kahi_impactu_utils-0.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae6b27be4da801e21228bd84cc3a8700c009e424dda40246f0c973986f36d16d |
|
MD5 | 1b41cdaedd72b95cc8a918f950fc0bdf |
|
BLAKE2b-256 | 37a865adfdae451f4ebdac3e65b3c6d9093917925b73e1dd3542c30b739b7918 |
Hashes for Kahi_impactu_utils-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b671eb4956bd4d5e3b8d2ae08edbb76860176e11b9c2f1e3e3e10075366a9fd7 |
|
MD5 | 64ecb04b54a27062755935159cd1a370 |
|
BLAKE2b-256 | 807ddaa8cd7f27534f506252471a0176b70ace2177161b5da3f5e757593e51fc |