From csv into Elasticsearch
🔨 Installation
$ sudo pip3 install elasticfeed
🕹 Commandline
elasticfeed --help
elasticfeed --host 127.0.0.1 --port 9200 --username username --password password <full filepath>
🕹 Python Module
from elastic_feeder.controller import FeedElastic
fe = FeedElastic(
host="hostname or ip address",
port="port",
filename="<full path>",
index="index name",
http_auth=('username', 'password'),
properties={
"some-name": {
"type": "some-type",
},
"some-name": {
"type": "some-type",
},
"some-name": {
"type": "some-type",
}
fe.run()
Supported OS
Linux, MacOS
🌱 Contributing
Feel free to open issue and send pull request.