In this repo , i put some simple codes which are useful in day to day life of a developer .
The repo will be having code base of python codes .
####################### 1st .py file In this my first try is to put some basic's of connecting python(3.6) with mongodb secoundary db in server , many people face serious problem's in configuration .
This configuration.py file also contains basic mongo query operation , to pull data in various ways .
#################### 2nd .py file
In python_elastic_search.py file , i tried to do the below task ,
--> create index in server side elastic search one index using pyelasticsearch package .
--> tried to make a mapping for our index , before pushing data .
--> tried pushing data into elasticsearch index type by restful API's (GET & POST requests)
--> pull data from elastic search into local python console .
################### 3rd .py file
In Date_parser.py file , i had tried to include a awesome library from natty called as dateparser to parse textual dates like , yesterday , tomorrow , or any other format . It can extract dates from a string contain a date like below .
" my birthday was tomorrow " = It will extract tomorrow and give tomorrows date in datetime format
datetime.datetime(2018, 3, 14, 17, 9, 56)
I created two functions in this file , first(DateParsing(inp2)) to identify dates , secound is to compare is the asked date ispresent or past or future date (which_date() ) .