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

but remove th ignore

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

Python

why don't you do this exactly?

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

Python

So no.

It is about type hinting, you need to put the type of data you expect if you want to comply with type hints if not just skip the line with # type: ignore

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

Python

yaa its like saying data will be anything str, int, float or anthing thats why it say the problem will occurs

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

Python

See i was handling taking reqest by the fetch in the js to my Flask application, see what happens i write my fun like this,

@general_bp.route("/api/backend/save-song-info", methods=["POST"])
def save_song_info():
data = request.get_json() or {}
# Extract the fields sent from js fetch
song_id = data.get("id")
title = data.get("title")
image_url = data.get("image_url")
artist = data.get("artist")

Now the 'data' variable says that,
Type of "data" is partially unknown
  Type of "data" is "Any | dict[Unknown, Unknown]"PylancereportUnknownVariableType

As i know the data will be of dict of string only.
as a result all the another song_id, title,imae_url,artist all says it is unknown and i am not getting proper sugession and type hint to use. what is the best way to solve this thigns. please any sugession is appricated.

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

Python

"Hi", "hello" and all other socializing goes to @pythonofftopic! Feel free to chat there, and ask for help with Python code here. Don't forget to delete your message from this group!

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

Python

And file automation.. is obviously not only about file operation, that's too general, what are you going to process?

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

Python

That's different topics and unlikely being placed in a single course

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

Python

For most RPA scenes I don't think you'll need to take a course, because you simply operate a11y tree and perform UI automation
Just read the documentation of the most popular library

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

Python

Helllo Flask users,
See when i use Flask, i use like this below code a fun

@app.route("/video/<string:video_id>")
def xyz_fun_to_handle_this():
....

but see it accept any url/video/abc123, url/video/xyz123,

But how i can only accept the part of
url/video/youtube_video_link i.e.
url/video/any_link,

how i can do this take any link after the /video/any_https_link, how i can do say this?
so that when i will get the video/link i want this functuion will execute only. any idea for this, i want only valid https link to take by my flask function

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

Python

basics will be covered in a month

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

Python

Ohh that's great, thanks

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

Python

in my project have python, docker files and json

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

Python

👋 I agree with clouded. You must effort in code. I can help you develop your own project.

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

Python

Ohh
But python is easy isn't it?

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

Python

data :dict[str,str] = request.get_json() or {} # type: ignore

Yaa just it solved this thanks🙏

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

Python

# type: ignore

i tried this, but as a result but all the other key _value that is song_id, title,image_url, artist all going to say type hint issue of unknown 😅

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

Python

mabye thats why data says unknown, but i want to solve this that it will be dict[str,str]

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

Python

Do you understand pylance errors? i mean the puprose of it

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

Python

thought maybe u say i need to use regex inside the .routes()?
owo but i discovered something inside the fun i checked if the video_id starts with https then treat it as a valid else say user this is wrong format 💜
but now i think using regex would be better but not a easy choice 😅

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

Python

Simple string parsing or regex 🤷‍♂

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

Python

To make your life easier, try xlwings or simply write scripts to execute inside the Microsoft Office, if you'd sure your user have the latest Microsoft 365 installed

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

Python

I meant Python Software Automation  for instance file automation ,excel automation , API automation and more.....

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

Python

Hi guys, can anyone suggest a python course for automation?

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

Python

The fastest way to learn Python is to get started right away. And if you are confused about something, feel free to ask here. Try a book.

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

Python

How can I learn Python quickly? I feel like it’s really difficult and confusing, and there are so many things to learn.

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

Python

Let's say, within a month or so?

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

Python

Is it necessary to create a venv even if the project is finished and was working fine?

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

Python

Comparatively perhaps. But doesn't mean you'll become a good developer over night. It's effort nonetheless. I'd rather say Python is pretty and versatile.

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

Python

I understand the desire to get things done, but this particular group is about learning Python. Not commanding LLMs.

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