r/pythonforengineers • u/TaintedSynchro • May 03 '22
r/pythonforengineers • u/TommyNaruto • Mar 16 '22
Make Logo in Python (Easy)
In Python, we can create a logo in under 20 lines:
r/pythonforengineers • u/Krishnavani01 • Feb 11 '22
How does Python Flask handle database requests?
Python Flask supports database-powered applications called RDBS. A system like this requires the creation of a schema, which further requires piping of the schema.sql file into the sqlite3 command. Python developers are required to install the sqlite3 command to create or initialize the database in Flask.
Python Flask allows requests for a database in these ways:
before_request() – These are called before a request and pass no arguments.
after_request() – These are called after a request and pass the response which is sent back to the client.
teardown_request() – These are called in scenarios when an exception is raised and responses are not guaranteed. They are invoked after the response has been constructed. These methods aren’t allowed to change the request and their values are not considered.
r/pythonforengineers • u/CATSBILL • Dec 09 '21
Why is Python named Python?
I am sorry if this question seems stupid. I really would like to know why was it named Python?
r/pythonforengineers • u/UddinEm • Nov 27 '21
Read company names from a PDF file NSFW
How to read from PDF all company names ending with limited or Ltd and then bring them in an excel spreadsheet using python?
r/pythonforengineers • u/TommyNaruto • Nov 14 '21
A python module to use Wikipedia in your code
For those of you who are interested in using the Wikipedia API in python https://youtube.com/shorts/qZE9-5sYIEg?feature=share
r/pythonforengineers • u/Luzifer42 • Oct 26 '21
I love python
Just wanted to let everyone know. Also testing a bot :)
r/pythonforengineers • u/AutoModerator • Oct 16 '21
Happy Cakeday, r/pythonforengineers! Today you're 7
Let's look back at some memorable moments and interesting insights from last year.
Your top 10 posts:
"If you're reading this, please upvote to give my bot more freedom" by u/hate_wheatley
"Draw Pickachu Using Python Turtle - pforprograms.com" by u/99roxxy
"I released a Python module (PyWhatKit) for sending WhatsApp message and many other things." by u/Lost-Department2126
"this is why I like Python - list comprehension" by u/LantumoMatrixer
"Applying Software Engineering Principles To Your Data Science Tasks In P..." by u/boyzone87seo
r/pythonforengineers • u/8329417966 • Oct 05 '21
Rock, paper, Scissor game using python
We can learn python programming language by practicing more. Also by creating fun game such rock, paper, scissor and many more things. Always learn the things in fun way, so learning never becomes boaring it's become interesting.
r/pythonforengineers • u/ohussein1996 • Aug 13 '21
Setting up Virtual Python environment in Anaconda
r/pythonforengineers • u/Johan-Godinho • Jul 19 '21
Created a simple game using python. Feel free to check it out. Recommended !!
Link to video : https://www.youtube.com/watch?v=x5KOBZcv_2k
r/pythonforengineers • u/Johan-Godinho • Jul 19 '21
Created a great simple game for beginners using python. Feel free to check it out :D
Link to video : https://www.youtube.com/watch?v=x5KOBZcv_2k
r/pythonforengineers • u/moritz_PB • Jun 10 '21
stepper motor motion control (closed) loop
Hello,
i currently try to control a stepper motor to position a camera, to keep my face in the middle of the frame. The face detection is working, and my python program(on raspberry pi 3) can determin the offset between the detected face and the middle of the cameras frame i want to control the stepper motor to smoothly move the camera, so the face is mid frame
the problem: i tried using a pid controller to calculate speed and direction, but when the program starts moving the motor (connected via step direction), the face detection stops(because the program is stuck in the loop to switch the step pin high/low)
is there a way to run the face detection part of the program while the stepper is moving and adjust the speed "on the fly"?
thought about using an arduino via serial to handle the stepper, but i am not sure if the serial communication might cause short pauses in the motors motion
Help would be greatly appreciated Thanks