Menu

Post image 1
Post image 2
1 / 2
0

I Built a Free Korean Astrology Site — Tech Stack and Lessons

DEV Community: flask·iambox leekyuha·3 days ago
#XzXOtoih
#dev#pythonanywhere#tier#korean#photo#article
Reading 0:00
15s threshold

Side project: built a free Korean Saju (4-pillar astrology) calculator. Sharing the tech stack and a few non-obvious gotchas. Stack Backend : Python 3.13, Flask Hosting : PythonAnywhere free tier Astronomy : Custom Meeus algorithm (no external library, 100s/day CPU limit) No database : Charts are pure functions of input Live site https://tarofortune.pythonanywhere.com/en Non-obvious lessons 1. Free tier CPU is precious PythonAnywhere free tier gives 100 CPU seconds per day. Each Saju calculation iterates a Newton-style solver for solar term timing. Without caching, ~30 chart computations would burn through the limit. from functools import lru_cache @lru_cache ( maxsize = 4096 ) def solar_term_jd ( year : int , term_idx : int ) -> float : # ... Enter fullscreen mode Exit fullscreen mode Solar terms repeat for the same (year, term) pair, so caching is essentially free. 2. Korean text on Windows console is hell Default code page on Windows is cp949.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More