home.social

#pythonanywhere — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythonanywhere, aggregated by home.social.

  1. Site is back online. Thanks for your patience! Also thank you to for jumping in with request-blocking assistance.

  2. I wish I'd started with a #VPS instead of shared web hosting. There's no easy way at my web host to migrate up either. All I want to do is run a simple #Python script every few hours. I'm fine with paying a few pounds/dollars - #Pythonanywhere etc. have too many restrictions at the free tier.

  3. Earlier today I posted about a spoof site of mine on , 𝐹º𝑛t 𝘔ⅸᵉ𝐫, which converts identifiers in ASCII to equivalent identifiers by randomly selecting Unicode points that normalize back to the original ASCII, and are therefore directly runnable, even though they look like a ransom note. Remember, builtins and all stdlib names can be denormalized this way.

    I went to check the web logs, and found that someone found another PA site of mine, ptmcg.pythonanywhere.com/pyrac...

  4. FastHTML - Modern web applications in pure Python

    Link
    📌 Summary:
    FastHTML 是一個 Python 函式庫,讓開發者能夠輕鬆建立網路應用程式。它使用熟悉的網路技術,如 HTTP、HTML、JS 和 CSS,為開發者帶來無限的可能性。FastHTML 是基於現代網路技術構建的,不依賴最新的趨勢,而是提供了一種簡單快捷的方式來建立任何類型的應用程式,包括簡單的儀表板、可擴展的網路應用程式、分析模型和互動報表、客製化的部落格和內容密集型網站等。

    🎯 Key Points:
    - FastHTML 是基於現代網路技術構建的,不依賴最新的趨勢。
    - 使用 FastHTML,只需要一份 Python 檔案就可以建立任何想像得到的應用程式。
    - FastHTML 提供全面的訪問權限,以 HTTP、HTML、JS 和 CSS,將網路的基礎帶給開發者。
    - FastHTML 應用程式非常快速和可擴展,並且可以輕鬆部署,因為它們可以使用任何支援 Python 的託管服務。
    - FastHTML 可以部署到任何支援 Python 的服務或伺服器,包括 Railway.app、Vercel、Hugging Face Spaces、Replit 和 PythonAnywhere。
    - FastHTML 與 FastAPI 有相似之處,FastAPI 是為了建立 API 而設計,FastHTML 則是為了建立 HTML(即「超媒體應用程式」)。
    - FastHTML 可以建立現代的單頁應用程式(SPA)應用程式,通過預設的路由返回輕量級的部分,可以直接更新 DOM,而不需要進行完整的頁面刷新。
    - HTMX 是一個小型的 JavaScript 函式庫,填補了網頁瀏覽器的缺失部分,也是將網頁瀏覽器的類似功能直接整合到未來瀏覽器中的候選者。
    - 使用 FastHTML 和 HTMX,可以大大增加所能實現的內容。
    - 開發者不需要知道 JavaScript,只需要使用 Python 就可以建立幾乎所有標準的網路應用程式,但使用一點 JavaScript 可以有所幫助。
    - FastHTML 應用程式通常比使用大型 JavaScript 函式庫的 JS 方式更快,因為它們可以非常輕量。

    🔖 Keywords:
    #FastHTML
    #Python
    #網路應用程式
    #基礎網路技術
    #現代網路應用程式
    #可擴展和高性能
    #輕量級
    #HTML + HTMX
    #無限可能
    #開發者友好
    #快速部署
    #PythonAnywhere
    #Vercel
    #Railway.app
    #Hugging Face Spaces
    #Replit
    #一鍵部署
    #建立任何想像得到的應用程式
    #使用熟悉的網路技術
    #基於現代網路技術
    #無限的可能性
    #單頁應用程式
    #輕量級部分
    #更新 DOM

  5. Oh yes, it was the latter. Drat, I've let that bot languish a bit. Must give it a poke.

    I think there were some server changes at #PythonAnywhere
    that broke my script. I should move it to self-hosted like my other stuff.

  6. I updated my personal site to use #FastAPI instead of #Flask and migrated that from #PythonAnywhere to #Railway

    If you're interested in what the deployment process looks like on Railway's platform, clone this repo: github.com/railwayapp-template

    & set up a new project on Railway at railway.app?referralCode=2ISez

    They're generous enough to allow one custom domain in their free tier, which is rare to see from a hosting platform 🤩

    #python

  7. Happy to launch my personal website www.geoscrub.org powered by and hosted on

  8. A bot that sends a random Wikipedia article to Mastodon once a day?

    No problem, all you need is Python (wikipedia and mastodon.py packages), PythonAnywhere and about 30 minutes of work...

    🇬🇧 @random_wiki
    🇨🇿 @random_cs_wiki

    #bot #mastodonbot #wikipedia #python #mastodon #wiki #wikipedia #pythonanywhere

  9. Bot, co jednou denně pošle na Mastodon náhodný článek z Wikipedie?

    Není problém, stačí Python (balíčky wikipedia a mastodon.py), PythonAnywhere a asi 30 minut práce...

    🇬🇧 @random_wiki
    🇨🇿 @random_cs_wiki

    #bot #mastodonbot #wikipedia #python #mastodon #wiki #wikipedia #pythonanywhere

  10. Hey @donwatkins What am I doing wrong. It’s not drawing my Pentagon. It works in Idle Python. Anyone have any ideas. I know it’s user error. Please help. #python #pythonanywhere #drawing #turtle #turtlepython

  11. Got around to installing #Flask on my own site (although I'll always have a warm spot in my heart for #pythonanywhere): apps.tegladwin.com/.

    I think I'm going to use this to build out making the computational semantic similarity scripts more practically accessible. It currently calculates the similarity between a target word and one versus another list of attribute words (potentially useful for IAT analyses).

  12. Looking at my legacy script hosting situation. I love the #pythonAnywhere service, but it's a bit of bother on free tier to refresh the script every couple of months.

    Then again, it does help with the forgetting-you-have-a-bot problem.

    Also seeing interesting things about pipedream.com which I'll also read up on.

    My needs are very light - no incoming queries, only a small handful of outgoing invocations per day. Well suited to free-tier hosting sites.

    Other suggestions welcomed.

  13. satoshi40.pythonanywhere.com/

    Develop the website locally and used GitHub to implement it on #Pythonanywhere. Running it on the server was really complicated. I needed to change a lot of codes.

    It looks better now. I need to check the views of the small screens later.

    #django

  14. Found @botwiki here! Gotta find some time to move my bot(s) over to Masto some time soon.

    I have a few fun bot implementations written in Python and hosting on the free level of #PythonAnywhere that provide some interesting content.

  15. @tek #admins #instanceadmin ‘s #Serveradmins
    Does #mastodon do web crawls? I have 2 web apps on #pythonanywhere which get very little traffic. Since I put links to them on my profile/about I’m seeing daily GET requests to their root directories from a wide variety of instances. Why not just HEAD? That’s what Twitter did. It’s neither good nor bad. I’m just curious. Always looking to learn.