r/learnpython • • 6d ago

Beginners looking for final project ideas, want to build something useful for Austin with real city data

Hi all, my partner and I are in an intro to programming class and need ideas for our final project. The assignment is to build a "kit" in Python. Other groups are doing stuff like makeup kits, dating app kits, and budgeting kits.

We'd like to make something people could actually use, ideally for Austin, TX. We're interested in city services, sustainability, healthcare, or finance, but we're open to anything.

Where we're at:

- We know the basics: loops, functions, lists, dictionaries, reading and writing files

- We've never worked with APIs, databases, or real-world data before

- Austin has an open data portal (311 requests, housing, transit, restaurant inspections, etc.) that we'd like to use

- We're thinking about getting an API key to add an AI feature, like a chatbot or summaries

- We'd like a real interface instead of just a text menu in the terminal

Some questions:

  1. What would you build if you were in our spot? We want something realistic for two beginners with about a month.
  2. What should we learn or use to get there? (Streamlit? pandas? SQLite? Something else?)
  3. What would make it feel like a finished app rather than a homework assignment?
  4. Any beginner mistakes we should watch out for with APIs, API keys, or messy data?

Thanks for any advice!

4 Upvotes

5 comments sorted by

4

u/Asly97 6d ago

Restaurant inspections is the one I'd pick for two beginners and a month. The data is small, everyone gets what it means right away, and the app is obvious: type a restaurant name or zip code, see its recent scores, a little chart of how they've changed, and the lowest scoring places near you. A 311 version could work too (put in your zip, see what people reported nearby in the last 30 days and how long the city took to close it), but that dataset is a lot bigger and messier.

For the stack, pandas plus Streamlit is the right call. Streamlit gives you a real web page with search boxes, tables and charts in maybe 50 lines, and you can deploy it free on Streamlit Community Cloud so you have a link to show at the end. At this size you don't need SQLite.

Getting the data is easier than it sounds. The Austin portal runs on Socrata, so every dataset has an API button that gives you a URL like https://data.austintexas.gov/resource/<id>.json. You can load it straight into pandas with pd.read_json(url + "?$limit=50000"), or filter on their side by adding ?column_name=value. No key needed for small amounts.

What makes it feel finished: a clear title with one line saying what it does, a default view so something shows before anyone types, readable column names instead of raw ones, and a friendly message when a search finds nothing instead of a crash. Also put the data loading in a function with @st.cache_data so it doesn't redownload on every click.

Mistakes that catch most people:

  • The API returns only 1000 rows unless you set $limit. Everyone gets bitten by this once.
  • Values come back as text, so convert dates with pd.to_datetime and scores with pd.to_numeric before sorting or charting.
  • Names are messy (same place spelled a few ways), so search with str.contains(query, case=False) rather than exact matches.
  • Never put an API key in your code or push it to GitHub. Use .streamlit/secrets.toml and add that file to .gitignore.

For the AI part, I'd get the core app working first and add it in the last week, like a button that sums up a restaurant's inspection history in two sentences. Nice extra, but if it's the centerpiece you'll spend the month fighting prompts instead of learning pandas.

1

u/Adrewmc 6d ago edited 6d ago

I’m not sure what you’re going for is what the assignment is….makeup kit sounds a lot more like a pseudo non real world info.

but I like it anyway. Participant in your local activities love it, passion.

Really you have to see what the API: actually give you. Since you’re not in control of that part of the flow.

I agree with the other guy, add AI last as more of of take all the stuff we did and summarize, (that’s basically one request promoted with the info. Super easy)

I’d definitely choose a smaller scope than what you are saying. Find a an API, and really make it user friendly, don’t go too big since it’s a class assignment and you will need to finish.

As for non terminal….look at tkinker (built in bare bones) and QT (third party) pick one to make windows with buttons, text boxes and pictures and stuff, which is a whole thing but whatever.

1

u/EnvironmentalDot9131 6d ago

The final ideas are the best

1

u/Top-Cauliflower-1808 5d ago

The safest build is one small city data set with a Streamlit page that filters records and shows a simple table or map. Skip the chatbot because it will eat your month and add little value for a class project. Cache the download handle missing fields and open with real Austin examples so it feels finished.