python | Unsorted

Telegram-канал python - Python

135201

You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython

Subscribe to a channel

Python

Can I ask question about django ?

Читать полностью…

Python

Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.

Читать полностью…

Python

Depends on the target of backend

Читать полностью…

Python

how can i make run in background a coroutine with asyncio?

i tought to .gather but idk, suggestions?

Читать полностью…

Python

looks like you need an offtopic group, please delete the off-topic message(s) and continue this conversation at @pythonofftopic

Читать полностью…

Python

Have you tested it already

Читать полностью…

Python

Am not a developer yet so I don't know how useful this is to you but the design of website is so that all the boxes you made are too sharp if that makes sense?

Читать полностью…

Python

I didnt create that. I wish! I only use I copied it from Ai

Читать полностью…

Python

Absolutely, AI tools can be game-changers for research, especially for a creative mind like yours—gotta love the combo of tech and art!

Читать полностью…

Python

I wasn't trying to say it that way

Читать полностью…

Python

Either you succeed or d!e trying

Читать полностью…

Python

Well, I believe that you have to be at some level of intelligence to do what these guys are doing but it is not really far off.
It's a matter of wanting and taking the steps towards it.

I began my journey a few months ago, and I am telling you that you also can.
D!e trying brother 💯

Читать полностью…

Python

import can
from datetime import datetime


def sniff_can() -> None:
try:
bus = can.Bus(
interface="socketcan",
channel="can0"
)

print("Listening for CAN messages. Press Ctrl+C to stop.\n")

while True:
message = bus.recv(timeout=1.0)

if message is None:
continue

timestamp = datetime.now().strftime("%H:%M:%S.%f")[:-3]
can_id = f"{message.arbitration_id:08X}"
data = " ".join(f"{byte:02X}" for byte in message.data)

print(
f"{timestamp} | "
f"ID: {can_id} | "
f"DLC: {message.dlc} | "
f"DATA: {data}"
)

except KeyboardInterrupt:
print("\nCAN sniffing stopped.")

except can.CanError as error:
print(f"CAN error: {error}")

finally:
if "bus" in locals():
bus.shutdown()


if name == "main":
sniff_can()

Читать полностью…

Python

I don't be understanding nothing though

Читать полностью…

Python

Hey everyone! I've been learning Python for 3 months now and just finished my first real project - a mood tracker that saves entries to a file with automatic dates.
It's simple, but I'm proud of it. Any feedback or suggestions for improvement would be appreciated! 🙏


from datetime import datetime

try:
with open("mood.txt", "r", encoding="utf-8") as file:
for line in file:
line = line.strip()
if line:
history.append(line)
except FileNotFoundError:
pass

while True:
print("1. Add mood entry")
print("2. Show all entries")
print("3. Exit")
choice = input("Choose action: ")

match choice:
case "1":
mood = input("How are you feeling today? ")
today = datetime.now().strftime("%Y-%m-%d")
history.append(f"{today}: {mood}")
print("Entry added!")

case "2":
if history:
for record in history:
print(record)
else:
print("History is empty")

case "3":
with open("mood.txt", "w", encoding="utf-8") as file:
for record in history:
file.write(record + "\n")
print("Goodbye!")
break

case _:
print("Invalid choice. Please enter 1, 2, or 3.")

Читать полностью…

Python

Do you already have an event loop setup, or you want to run one-off task?
Here is a good article about asyncio and its usecases

https://realpython.com/async-io-python/

Читать полностью…

Python

Hello everyone, pleasure in meeting them, my name is Wendel, I am 18 years old and I am starting my career in programming, I am passionate in this area and I am seeking help, someone who can and has the desire to train me or give some tips!

Читать полностью…

Python

hello i use fastapi for backend is it good? or there are more better?

Читать полностью…

Python

This group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote and explain where and why you are stuck... as simple as that

Читать полностью…

Python

looks like you need an offtopic group, please delete the off-topic message(s) and continue this conversation at @pythonofftopic

Читать полностью…

Python

I hate roundness but i might reduce the boxes you are right 👍

Читать полностью…

Python

Is everyone here jusy starting?

Читать полностью…

Python

I am trying to minimize AI tho.
The only way I'd use it, is if it's my last resort.

Читать полностью…

Python

I have a question please guide me can a programmer use Ai tools like Gemini and ChatGpt for research

Читать полностью…

Python

But by saying these people are so smart to do these things, you undervalue thier hardwork and dedication.

Читать полностью…

Python

Exactly
D!e trying

Читать полностью…

Python

How do you memorize and understand what this is

Читать полностью…

Python

Hay anyone worked in any projected to connect to a vehicle? Any can sniffing?

Читать полностью…

Python

I just wish I can code

Читать полностью…

Python

Definitely not there yet but am confident

Читать полностью…
Subscribe to a channel