wolframAlphaKnowledge
module use wolpframalpha
API in python
. This module receive questions or equations to resove with YARP
port, send request to Wolfram Alpha
server and publish results with YARP
port.
Documentation available on docs.
wolframAlphaKnowledge
requires text like input.
The process to running the program:
- Execute programs/wolframAlphaKnowledge.py, to start de program.
python wolframAlphaKnowledge.py
- Connect data source.
yarp connect /yourport/data:o /wolframAlphaKnowledge/data:i
NOTE:
- Data results are published on
/wolframAlphaKnowledge/data:o
wolframAlphaKnowledge
requires:
- Install YARP 2.3.XX+
- Install pip
- Install wolframalpha:
pip install wolframalpha
- Install ConfigParser:
pip install configparser
NOTE:
Input text it´s the same as Wolfram Alpha
web site but it´s recommended use []
characters instead of ()
characters.
Examples:
>> integrate x^2 sin^3 x dx
>> derivative of [x^4] sin x
>> spain capital
>> time
>> what is a dog
Tested on: windows 10
, ubuntu 14.04
, ubuntu 16.04
, ubuntu 18.04
, lubuntu 18.04
and raspbian
.