moshe / elasticsearch_loader

A tool for batch loading data files (json, parquet, csv, tsv) into ElasticSearch
MIT License
399 stars 83 forks source link

usage #90

Closed antoteo closed 3 years ago

antoteo commented 3 years ago

is it possible to import elasticsearch_loader like other libs without install it and call it inside python? i use os.system(command) but i want to use inside executable file

thanks

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity (14 days). It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.

moshe commented 3 years ago

You should be able to use load which covers most of the usage of the CLI.

from elasticsearch_loader import load
load([{"name": "esl"}], config)