#๐Ÿ”’ TimeZones

29 messages ยท Page 1 of 1 (latest)

shy seal
#

https://github.com/beggsbanner/GETTIME_API
If this is the wrong place let me know please, but looks like it is. I am learning python. I feel like i have a pretty decent grip on it after the last 8 hours of work on this thing. Can a few people see if this works for you, It is linux. and let me know if it is not working for you. i have tested on a few vm's just want to make sure i have a basic understanding of structure, coding, committing and releasing. Thanks

GitHub

A Flask API with a Tkinter GUI for retrieving time across US time zones. - beggsbanner/GETTIME_API

compact fulcrumBOT
#

@shy seal

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

fair spire
#

If this is a server-side application (a web server?), I think it's reasonable to just provide the instructions to get it working with Python and a venv. You could also provide a dockerfile if you want an isolation option with no manual steps

shy seal
#

Gotya. Thanks. I have some reading to do then.

fair spire
#

You could publish the project on PyPI or at least make it pip-installable from github

#

the debian dependencies only seem to include

python3, python3-tk, python3-venv

so the deb is probably not going to work if it's missing Flask and pytz

compact fulcrumBOT
#

gettime-api-deb/usr/bin/GETTIMEAPI.py lines 18 to 21

time_data = {}
for zone in us_time_zones:
    tz = pytz.timezone(zone)
    time_data[zone] = datetime.now(tz).strftime('%Y-%m-%d %H:%M:%S %Z')```
shy seal
#

Gotya. I just got fatigued. It should have both. I screwed it up the first 5 times and had to add them. So you are saying flask and pytz are still missing under dependencies? Ahhhh! Thanks

fair spire
#

As I said, I think a deb package is probably overkill

shy seal
#

Ok. I tried to go for what looked like the hardest one first

fair spire
#

If it's a more user-facing application, there are standards like flatpak and AppImage that don't require you to make 10 packages for 10 different distros

shy seal
#

Awesome

#

It is meant to be a desktop utility for people that have to know different time zones

#

I still have a ton to learn so I really do appreciate the information and you taking the time to look at it

#

Is it safe to say that I overcomplicated it?

fair spire
#

well, depends on your goals

shy seal
#

Just a desktop widget

fair spire
#

if you want Linux users to easily install the program, either make it pip-installable or package it with flatpak/appimage

shy seal
#

That max sense lol

fair spire
#

though if you only care about Ubuntu/Debian users, a deb is fine

shy seal
#

It was really a learning exercise for me because I have only ever dabbled in the alchemy of coding

mint nova
shy seal
#

See. I just used the first thing that made sense to me. Thanks for the pointer

compact fulcrumBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.