A free, instant question-answering tool — works like a classic Google Home: answers come from lookups in free public data sources, not from an AI model. No API keys, no accounts, no installs beyond Python itself.
$ python app.py "weather in Mumbai"
Right now in Mumbai, India: 26°C (feels like 29°C), Light Rain, 94% humidity, wind 37 km/h.
$ python app.py "what time is it in Tokyo"
It's 3:14 PM in Tokyo, Japan (Friday, July 03).
$ python app.py "100 usd to inr"
100 USD is 9,539 INR (European Central Bank rates).
$ python app.py "define serendipity"
Serendipity (noun): A combination of events which have come together by chance to make a
surprisingly good or wonderful outcome.
$ python app.py "convert 10 km to miles"
10 km is 6.21 miles.
Each answer shows its source and response time — local lookups (math, units, clock) are instant; web-backed answers return in well under a second.
python app.py # web UI → http://localhost:8765
python app.py "150 lbs to kg" # one-off answer in the terminalPython 3.9+ and nothing else — standard library only. On Windows, py app.py also works.
The web UI keeps a session history, each answer tagged with its source and response time.
| Question type | Example | Source |
|---|---|---|
| Time & date | "what time is it", "time in London" | System clock / timeapi.io |
| Math | "what is 15% of 80", "125 * 8" | Built-in calculator |
| Unit conversion | "150 lbs to kg", "how many km in 26 miles" | Built-in converter |
| Currency | "100 USD to CAD" | Frankfurter (European Central Bank rates) |
| Weather | "weather in Mumbai" | wttr.in |
| Sports scores | "England vs DR Congo score", "did England win" | ESPN scoreboard |
| Upcoming fixtures | "when is Portugal's next match", "when does Brazil play next" | ESPN scoreboard (kickoff shown in your local time) |
| Definitions | "define serendipity", "what does ephemeral mean" | Free Dictionary API |
| People, places, facts | "who is Marie Curie", "capital of Peru" | Wikipedia |
| Anything else | falls back to a one-click Google search link | — |
The question runs through a list of handlers in order; the first one that has an answer wins. Local handlers (time, math, conversions) answer in ~0 ms; web sources typically answer in 0.3–1 s. If nothing matches, it falls back to a one-click Google search link. Sports scoreboards are cached for 60 seconds so repeated questions stay snappy.
All sources are free with no keys or accounts:
- wttr.in — current weather by city
- timeapi.io — current local time by coordinates
- Open-Meteo geocoding — turns a city name into coordinates
- Frankfurter — currency rates (European Central Bank)
- ESPN public scoreboard API — live/final scores and fixtures (World Cup, Premier League, Champions League, MLS, NBA, NHL, MLB, NFL)
- Free Dictionary API — definitions
- Wikipedia REST API — facts, people, places
app.py— the whole backend (Python standard library only)index.html— the web page
MIT — see LICENSE. Free to use, modify, and share.