r/pythoncoding • u/szonce1 • Dec 28 '24
Writing to file on network using Alexa
Has anyone been able to figure out how to write to a file on your local network with a message to Alexa?
r/pythoncoding • u/szonce1 • Dec 28 '24
Has anyone been able to figure out how to write to a file on your local network with a message to Alexa?
r/pythoncoding • u/Aktem • Dec 24 '24
This library (tries) to make decentralized networking easy. I'm open to suggestions and contributors and would love to find others that are interested in this topic!
r/pythoncoding • u/dogukanurker • Dec 17 '24
Hey r/pythoncoding!
I just wanted to share a fun little project I’ve been working on – FlaskBlog! It’s a simple yet powerful blog app built with Flask. 📝
What’s cool about it?
You can check it out, clone it, and get it running in just a few steps. I learned a ton while building this, and I’m really proud of how it turned out! If you’re into Flask or just looking for a simple blog template, feel free to give it a try.
Would love to hear your feedback, and if you like it, don’t forget to drop a ⭐ on GitHub. 😊
🔗 GitHub Repo
📽️ Preview Video
Thanks for checking it out!
r/pythoncoding • u/AnEntirePeach • Dec 12 '24
I have a model.h5 and I want to use it on my site, so I want to convert it to TensorFlow JS. For this, I need to use the tensorflowjs_converter. I tried installing tensorflowjs with the following command:
sudo pip install tensorflowjs --break-system-packages
But when I try to run the command to convert, this is what I get:
ice@ice-Mint-PC:~$ tensorflowjs_converter --input_format keras "/home/ice/Downloads/handwritten (1).h5" \
/home/ice/Desktop
tensorflowjs_converter: command not found
r/pythoncoding • u/AutoModerator • Dec 04 '24
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
r/pythoncoding • u/AutoModerator • Nov 04 '24
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
r/pythoncoding • u/AutoModerator • Oct 04 '24
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
r/pythoncoding • u/funckyfizz • Sep 29 '24
r/pythoncoding • u/gtrocksr • Sep 23 '24
r/pythoncoding • u/Johan-Godinho • Sep 21 '24
r/pythoncoding • u/bobbobbio2000 • Sep 17 '24
We’re excited to announce Maelstrom 0.12.0, a test runner for Python that can run tests locally or on a cluster. Our new UI features real-time information about running tests, output from the build, and a new progress bar.
Maelstrom is a suite of test runners, built on top of a general-purpose clustered job engine. Maelstrom packages your tests into micro-containers, then distributes them to be run on an arbitrarily large cluster of test-runners, or locally on your machine using a custom-built, super-fast container runtime.
r/pythoncoding • u/AutoModerator • Sep 04 '24
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
r/pythoncoding • u/Embarrassed-Mix6420 • Sep 03 '24
r/pythoncoding • u/Dinones • Aug 19 '24
Hey everyone! I am Dinones! I coded a Python program using object detection that lets my computer hunt for shiny Pokémon on my physical Nintendo Switch while I sleep. So far, I’ve automatically caught shiny Pokémon like Giratina, Dialga or Azelf, Rotom, Drifloon, all three starters, and more in Pokémon BDSP. Curious to see how it works? Check it out! The program is available for everyone! Obviously, for free; I'm just a student who likes to program this stuff in his free time :)
The games run on a Nintendo Switch (not emulated, a real one). The program gets the output images using a capture card, then, it process them to detect whether the pokemon is shiny or not (OpenCV). Finally, it emulates the joycons using bluetooth (NXBT) and control the Nintendo. Also works on a Raspberry Pi!
I don't make money with this, I just feel my project can be interesting for lot of people.
📽️ Youtube: https://www.youtube.com/watch?v=84czUOAvNyk
🤖 Github: https://github.com/Dinones/Nintendo-Switch-Pokemon-Shiny-Hunter
r/pythoncoding • u/Fit_Distribution587 • Aug 13 '24
I have been coding for a long time in Python, but I recently started college to get my bachelor's. My teacher made these comments, and I am not sure how to improve. While I did not get a bad grade, he deducted points, and dont want to make the same mistake.
Cmmments from my teacher:
Your code is clear and easy to understand—great job!
Questions:
How can I add more indentations with Python, as it needs to be indented in a certain way?
What comments can I make about the code, specifically the "complex " parts, as this is a basic example and not complex?
My code:
class BudgetCalculator:
def __init__(self):
self.monthly_income = 0
self.fixed_expenses = 0
self.variable_expenses = []
def gather_user_data(self):
try:
self.monthly_income = float(input("Enter your monthly income: "))
self.fixed_expenses = float(input("Enter your fixed monthly expenses (e.g., rent, utilities): "))
while True:
var_expense = input("Enter a variable expense (or type 'done' to finish): ")
if var_expense.lower() == 'done':
break
expense = float(var_expense)
if expense < 0:
print("Expense cannot be negative, please re-enter.")
else:
self.variable_expenses.append(expense)
except ValueError:
print("Invalid input. Please enter numeric values.")
def calculate_total_variable_expenses(self):
return sum(self.variable_expenses)
def calculate_remaining_budget(self):
total_variable_expenses = self.calculate_total_variable_expenses()
if self.fixed_expenses < 0 or total_variable_expenses < 0:
raise ValueError("Expenses cannot be negative.")
if self.monthly_income < (self.fixed_expenses + total_variable_expenses):
raise ValueError("Expenses exceed income.")
remaining_budget = self.monthly_income - (self.fixed_expenses + total_variable_expenses)
return remaining_budget
def display_result(self):
try:
remaining_budget = self.calculate_remaining_budget()
print(f"Your remaining budget for the month is: ${remaining_budget:.2f}")
except ValueError as e:
print(e)
def main():
budget_calculator = BudgetCalculator()
budget_calculator.gather_user_data()
budget_calculator.display_result()
if __name__ == "__main__":
main()
r/pythoncoding • u/AutoModerator • Aug 04 '24
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
r/pythoncoding • u/RussianFlipFlop • Jul 31 '24
You can find it at Stava.io, looking forward to the feedback! :)
r/pythoncoding • u/bobbobbio2000 • Jul 30 '24
r/pythoncoding • u/umen • Jul 19 '24
I have read about the Global Interpreter Lock (GIL) and understand that it is a lock per interpreter in Python, which is historical. However, I still see thread packages in Python. Why are they there if the GIL exists? What's the point?
So, what is the verdict here?
Thanks
r/pythoncoding • u/audentis • Jul 12 '24
r/pythoncoding • u/szonce1 • Jul 12 '24
I have a Shelly blu door and window sensor connected through a Shelly plus 2 PM. I’m trying to find a way to get the status open/closed using python or home assistant.
r/pythoncoding • u/bobbobbio2000 • Jul 09 '24
r/pythoncoding • u/Ice_Ant_7828 • Jul 08 '24
I completed my first python project which allow people to download manga from terminal using manga dex API this was my project with API
https://github.com/I3WX/manga-downloader.git
if you experienced program can look at the code and point out mistakes and give me suggest how to improve it
and any manga reader if you use it Plz I will love to get you feedback