Metadata-Version: 2.1
Name: mongoelastic
Version: 0.0.2
Summary: MongoDB to Elasticsearch. Through this you can import data from mongoDB to elasticsearch.
Home-page: https://github.com/naimmalek/mongoelastic
Author: Naim Malek
Author-email: naim@peerbits.com
License: MIT
Download-URL: https://pypi.org/project/mongoelastic/
Keywords: mongodb,elasticsearch import,import mongodb to elasticsearch,elasticsearch,import mogno to es,import big data elasticsearch
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: elasticsearch (>=7.6.0)
Requires-Dist: progress (>=1.5)
Requires-Dist: pymongo (>=3.10.1)

# mongoDB to elasticsearch


***mongoelastic*** stands for MongoDB to Elasticsearch. Through this you can import data from mongoDB to elasticsearch.

---

## Installation

### Install mongoelastic from PyPI: <br />
`pip install mongoelastic` <br />

## Usage




* Here is the sample code 
```shell
from mongoelastic.mongoelastic import MongoElastic

config = {
    'mongo_host': 'YOUR_MONGO_HOST',
    'mongo_port': YOUR_MONGO_PORT,
    'mongo_db_name': 'YOUR_MONGO_DB_NAME',
    'mongo_document_name': 'YOUR_MONGO_DOCUMENT_NAME',
    'es_host': ['YOUR_ES_HOST'], # in list
    'es_http_auth': ('ES_USER', 'ES_PASSWORD'), # in tuple
    'es_port': ES_PORT,
    'es_index_name': 'ES_INDEX_NAME',
    'es_doc_type': 'ES_DOC_TYPE_NAME',
}
obb = MongoElastic(config)
obb.start()


# You can also filter query MongoDB like:
m_filter = {'mongo_condition':{"_id" : "5d9740bc245fb21097e82c11"}}
obb.start(m_filter)  
```


## License

[![License](https://img.shields.io/github/license/naimmalek/mongoelastic.svg)](https://github.com/naimmalek/mongoelastic/blob/master/README.md)

***If you like the project, support by star***

