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

what is the pillow ?

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

Python

Will give it a try, yhanks

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

Python

What is the best python liberaries for image processing softwares
Especially pixel to pixel comparison
and dimensions check or measurement
Which can work with live image generated from Ueye digital cameras

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

Python

Oh okay, I'm just asking, we're still in contact a little bit, right?

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

Python

Do you know the GitHub website?

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

Python

nothing wrong, with a web crawler project you will sharpen your algorithmics thinking and when you dive deeper you might learn how internet/http/web works, control flow with concurrency/parallelism, and many more. its always better in programming if you have/know- reason for using tools/library when you decided to use it, because thats a signal that you know what you're doing.
so, which library is the best? it depends on problem you want to solve

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

Python

I don't have idea how to do that?

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

Python

Someone shared me this code pls explain :
from flask import Flask, render_template, request, redirect, url_for, flash, session, abort
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextAreaField, SubmitField
from wtforms.validators import DataRequired, Length
from passlib.hash import bcrypt
from datetime import datetime

app = Flask(name)
app.config['SECRET_KEY'] = 'replace-this-with-a-secure-random-string'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///progsite.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

db = SQLAlchemy(app)

# ---------- Models ----------
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
password_hash = db.Column(db.String(255), nullable=False)
is_admin = db.Column(db.Boolean, default=False)

def verify_password(self, password):
return bcrypt.verify(password, self.password_hash)

class Problem(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(200), nullable=False)
statement = db.Column(db.Text, nullable=False)
sample_input = db.Column(db.Text, default='')
sample_output = db.Column(db.Text, default='')
created_at = db.Column(db.DateTime, default=datetime.utcnow)

class Submission(db.Model):
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
problem_id = db.Column(db.Integer, db.ForeignKey('problem.id'))
code = db.Column(db.Text, nullable=False)
verdict = db.Column(db.String(50), default='Pending')
created_at = db.Column(db.DateTime, default=datetime.utcnow)

user = db.relationship('User', backref='submissions')
problem = db.relationship('Problem', backref='submissions')

# ---------- Forms ----------
class RegisterForm(FlaskForm):
username = StringField('Username', validators=[DataRequired(), Length(min=3, max=80)])
password = PasswordField('Password', validators=[DataRequired(), Length(min=6)])
submit = SubmitField('Register')

class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
submit = SubmitField('Login')

class ProblemForm(Flask

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

Python

And what's the issue/problem?

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

Python

Hi everyone, in django

I have model class Teacher, subjects

I want to do make function to export excel data from database, subjects when I choose one teacher , their subjects will be added to excel

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

Python

In my opinion, it would be more efficient to go ahead and install VSCode or PyCharm. But if you insist try online-python.com.

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

Python

Rules in our groups are strictly enforced. It is strongly recommended to read our rules before engaging in any other activity!

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

Python

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

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

Python

I’m a beginner and I want to learn Python. Please tell me

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

Python

No, and it is not needed, code and output is text

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

Python

It's actually opencv-python, that is just the package name

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

Python

You can use cv2, it stores images as numpy arrays which is convenient.

if u need advanced algorithms you can find them in scikit-image

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

Python

What I meant is: there are places to talk about that or other casual stuff check offtopic group (link in the rules)

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

Python

Of course but remember this group is to talk about python only

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

Python

You mention Django and then say that you have no idea ? 🤔
Why pick Django then ?
If you know why read through the Django documentation and quick tutorial to work on implementation.

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

Python

For a web crawler project, which library is the best to use? Currently, I'm a beginner and it's hard for me to write the program independently without following the books. I'm currently using requests and BeautifulSoup. I'm worried that my learning method might be wrong, so I'm here to ask for advice.

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

Python

You may want to start reading flask documentation

Is not effective to just ask to explain a full program better to be more specific

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

Python

Please don't send useless messages. Also, please delete all those useless messages you have already sent! (rule #3)

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

Python

Python groups in other languages
(⚠️Not managed by us ‼️)

Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz

If you have an active and well managed group that you want to be listed there, ask in the Meta group, link in the rules page.

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

Python

You can download tonny IDE.
It's simple and easy to download

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

Python

All.. I have been searching on Google an "easy to use" python ide.. and I did download a few and tried using.. but did not find simple and so removed.. any here can suggest me a simple and easy IDE

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

Python

Hello Greetings to you. may peace, mercy and blessings of almighty be upon you. how are you doing guys

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

Python

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

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

Python

What have you tried to do, to solve that issue?
Show your code (read rule 5️⃣ first) and explain where, and why, you're stuck.

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

Python

in rule no.5 (screenshot not mentioned), so can i share screenshot too?
5️⃣ Code sharing

• Be considerate!
• Try to use markdown formatting!
• For many lines (5-10+) of code, use a pasting service:
• dpaste.org
• hastebin.com
• Don't ever attach photos or videos of your screen taken with your phone camera!

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