Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AskMe

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.

Example answers

$ 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.

Quick start

python app.py            # web UI  → http://localhost:8765
python app.py "150 lbs to kg"   # one-off answer in the terminal

Python 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.

What it can answer

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

How it works — the answer cascade

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:

Files

  • app.py — the whole backend (Python standard library only)
  • index.html — the web page

License

MIT — see LICENSE. Free to use, modify, and share.

About

Free, instant question-answering tool — Google Home style, no AI, no API keys.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages