=============
The AI "THE-BOT" which is build using flask and Restful Api responsive, which gives you a Weather, Distance and Your_IP...(lot more coming up....)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
for more bleeding edge developement check out the /test
directory
- Requires python2.6+, or python3.0 +
- Required python packages: Flask,Flask-Restful, Requests , Geopy
A step by step series of examples that tell you have to get a development env running
Say what the step will be
The instruction helps you install in local machine
- Install Virtualenv (Virtual Environment)
~$ pip install virtualenv
- Create a project file
~$ mkdir project
~$ cd project
- Create Virtual Environment
~$ virtualenv The_Bot
~$ source The_Bot/bin/activate
Now your into the vrtual envirment and proceed with installing dependencies
4.Clone the THE-BOT project
~$ git clone https://github.com/ASH1998/THE-BOT
- Change directory into "THE-BOT" file
~$ cd THE-BOT
(THE_BOT)THE-BOT~$ pip install -r requirements.txt
Which intern download all Modules
- Finally Run the app
~$ python runserver.py
The bot is running into 5000 local port
The bot as multiple modules
- weather To run an weather app
curl http://127.0.0.1:5000/api/v1.0/w/<city_name>
The city_name could be any city
- Distance This module finds an distance between two point
To check the distance
curl http://127.0.0.1:5000/api/v1.0/d/<source>/<destination>
3.For Wikipedia Search
curl http://127.0.0.1:5000/api/v1.0/wiki/<query>
Add additional notes about how to deploy this on a live system
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We ❤️ pull requests! We even 💖 them if they contain well written commit messages!
Please write the first line of your commit message in the following style:
exercise-name: Change some things
Please try to follow the The seven rules of a great Git commit message like to capitalize the subject line and use the imperative mood. If there are more details to add, put those into the body of the commit message.
If you're interested, Tim Pope even has an entire blog post on good commit messages.
If you're new to Git, take a look at this short guide.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used
- Inspiration
- etc
Anyquery find us in