Skip to main content

MongoDB and ElasticSearch tools

Project description

Kerana

MongoDB and ElasticSearch tools

Description

Installation

Dependencies

This package requires elasticsearch and MongoDB for ES you can see https://github.com/colav/colasticsearch

Package

pip install Kerana

Usage

Example for SIIU

kerana --es_index siiu_project --mdb_name siiu --mdb_col project

Example for Scienti

kerana --es_index scienti_udea_2022_product --mdb_name scienti_udea_2022 --mdb_col product --bulk_size 100
kerana --es_index scienti_udea_2022_project --mdb_name scienti_udea_2022 --mdb_col project --bulk_size 100
kerana --es_index scienti_udea_2022_patent  --mdb_name scienti_udea_2022 --mdb_col patent  --bulk_size 100
kerana --es_index scienti_udea_2022_network --mdb_name scienti_udea_2022 --mdb_col network --bulk_size 100
kerana --es_index scienti_udea_2022_event   --mdb_name scienti_udea_2022 --mdb_col event   --bulk_size 100

Usage Completer

kerana_completer --entity person --es_user elastic  --es_pass mypass --es_index kahi_dev_person --mdb_name kahi_dev --mdb_col person --bulk_size 1000
kerana_completer --entity institution --es_user elastic  --es_pass mypass --es_index kahi_dev_institution --mdb_name kahi_dev --mdb_col affiliations --bulk_size 1000
kerana_completer --entity group --es_user elastic  --es_pass mypass --es_index kahi_dev_group --mdb_name kahi_dev --mdb_col affiliations --bulk_size 1000
kerana_completer --entity faculty --es_user elastic  --es_pass mypass --es_index kahi_dev_faculty --mdb_name kahi_dev --mdb_col affiliations --bulk_size 1000
kerana_completer --entity department --es_user elastic  --es_pass mypass --es_index kahi_dev_department --mdb_name kahi_dev --mdb_col affiliations --bulk_size 1000

TODO

  • selective fields from MongoDB to ES
  • Search text in ES and resolve from ids in MongoDB
  • parallel load to ES from mongo
  • restore/backup ES indexes
  • support for config input to execute flows

License

BSD-3-Clause License

Links

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

Project details


Download files

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

Source Distribution

kerana-0.0.2a0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kerana-0.0.2a0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file kerana-0.0.2a0.tar.gz.

File metadata

  • Download URL: kerana-0.0.2a0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for kerana-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 c60ce87a33a3fa8b2ba04775cdfac8b1e0b7fe9654563f62caa454cdff85e43e
MD5 818ad160ccd432dee154a7ce8198dfd8
BLAKE2b-256 5a11141be3c2e6b4a6f4c33fbae97d68bc8c2c8cd44adeacc02ee98930c8cb4c

See more details on using hashes here.

File details

Details for the file kerana-0.0.2a0-py3-none-any.whl.

File metadata

  • Download URL: kerana-0.0.2a0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for kerana-0.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 18f66339d377d53a291c2ebd0fea7dbdff5567093e8b5a72eee17702aa4b9660
MD5 94edc0cc57f5806d82c58f0fa5b0bb31
BLAKE2b-256 20afea1fd00b4e5cf3d8739b0bd87d8de0b1e4928d138b160556f1c463d85233

See more details on using hashes here.

Supported by

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