10
submitted 11 months ago by xurxia@mander.xyz to c/python@programming.dev

I have developed a project in #python to follow #RSS feeds and send an email with daily news. It is more an excuse to practice python, git and design patterns than a real project, but feel free to use it if you find it useful. Suggestions, opinions and feedback are welcome.

https://github.com/xurxia/newswave

top 3 comments
sorted by: hot top controversial new old
[-] ExperimentalGuy@programming.dev 2 points 11 months ago

Omg this IS a real project

[-] MegaMacSlice@programming.dev 2 points 11 months ago

Skimming through code and looks good - some Python features I forgot had been added.

Curious to know if Output.status is always either -1 or 1. Is this just a holdover for a future where we have specific error codes and don’t want to do exception handling on Output.error?

[-] xurxia@mander.xyz 2 points 11 months ago

Yes, the idea is use in the future Output.status as a way to route to different pages depending of the model result. For example, when /list endpoint is called I could return 1 to show the feed list, and 2 to render a page with a message and suggestions when the feed list is empty. The same with negative numbers but for errors.

this post was submitted on 15 Dec 2023
10 points (100.0% liked)

Python

6347 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS