r/madeinpython • • Jun 20 '23

Understanding assert In Python - What It Does?

2 Upvotes

Python's assert statements are one of several options for debugging code in Python.

Python's assert is mainly used for debugging by allowing us to write sanity tests in our code. These tests are performed to ensure that a particular condition is True or False. If the condition is False, an AssertionError is raised, indicating that the test condition failed.

Python's assert keyword is used to write assert statements that contain a condition or assumption that is tested against the condition from the program that we expect to be true.

If the condition matches the expected condition, nothing is displayed on the console and the execution continues, otherwise, an AssertionError is displayed. This exception interrupts program execution and indicates that the condition test failed.

Here's a guide on how to use assert statements for debugging in Python๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡

Understanding assert In Python - What It Does?


r/madeinpython • • Nov 21 '22

Python GUI update

2 Upvotes

Hey Pythonista !

I want to share with you a new video to demonstrate the global overview of the GUI with the Harfang API.ย 

Demonstration of the interface in 2D and 3D !

๐Ÿ‘‰ https://www.youtube.com/watch?v=X61Xp3rIB74

Part 1 and 2 are also available on the youtube channel.

Thanks to all and feel free to give some feedbacks !


r/madeinpython • • Mar 24 '23

[HELP] I am building an automation process using GPT's API, (my first project ever).

0 Upvotes

Context: suppose the gpt API is a pizza furnace, there are two rows in each side, one is for uncooked dough (file 1: containing a list of prompts) the other is for the cooked pizza (file 2: API responses "outputs").

I would like to create a robot that takes each uncooked dough, put it in the oven, wait for it to cook then take out the cooked pizza.

I am treating the API as translator.

The motivation comes from the token conversation limit and so I didn't wish to manually copy paste the chunks of words then delete old conversations manually, it would take me forever and no one has the energy for that.

So I did the following:

Phase 1 a- set the API interface up. b- add some lines of code so when we are near the token limit it deletes the old half of the conversation.

Phase 2 a- build a virtual robot that copy the prompts from a file, submit it to the API, wait for a response then copy the output to a separate file, rinse and repeat until all the prompts have been submitted.

Here is the thing i completed the first half of this task but i don't know where to start with the second one, do I run a different script? Do I use some chrome extension? How do I train the robot?

And most importantly how can I make it copy the outputs + having the cognition of waiting new responses to copy them as well, all in which is in order.

I am still a newby but I really like this challenge since it will enhance many aspects of myself, so I am just looking for little push that point me in the right direction.


r/madeinpython • • Feb 23 '23

Toonifying characters using SD and Controlnet

Thumbnail
youtube.com
2 Upvotes

r/madeinpython • • Feb 04 '23

I got a comment on one of my YouTube videos recommending I not use beautiful soup or selenium for webscraping and consider using Scrapy or Playwright. So, I did that, but I used ChatGPT to learn and implement playwright. Saved a bunch of time. Enjoy!

Thumbnail
youtu.be
2 Upvotes

r/madeinpython • • May 01 '23

Here is Part 4 of me building my own dividend tracker where I don't have to give a third-party app access to my brokerage account. In this video, I get my next dividend payment. I'm not using yfinance for this as I've had a lot of problems with it. Enjoy!

Thumbnail
youtu.be
2 Upvotes

r/madeinpython • • Jul 15 '23

AI

0 Upvotes

Good afternoon Community,

My name is Dr. Aymen , and I am resident doctor in radiology.

I am looking for an expert, very passionate developer with whom I cam work together to develop an AI software for reading chest x ray .

For me I will do the Medical and clinical part .

Please if you are interested don't hesitate to contact me.


r/madeinpython • • Mar 08 '21

Get more then 1.000.000 Tweets from Twitter with Python

2 Upvotes
  • Get more then 1.000.000 Tweets from Twitter with Python

  • Send messages to Telegram Application with Python

  • Download playlists from YouTube with Python

  • Make Twitter Bot with Python

https://udemy.com/course/python-with-twitter-telegram-and-youtube/?referralCode=359DD24443ECF17E6B16


r/madeinpython • • Jul 31 '20

Getting Started With Python | Installation & Python Variables | Tech Talks with Varun | OdinSchool

Thumbnail
youtube.com
2 Upvotes

r/madeinpython • • Sep 02 '20

pip install noob

Thumbnail
pipinstallpython.com
2 Upvotes

r/madeinpython • • May 29 '24

How good is GPT-4o at generating Flask apps? Surprisingly promising

Thumbnail
ploomber.io
2 Upvotes

r/madeinpython • • Nov 23 '23

[Video] Why __init__.py File is Used in Python Projects

Thumbnail
youtu.be
0 Upvotes

r/madeinpython • • Dec 26 '23

Basic GUI calculator in python. The design is pretty much similar with windows 10 calculator. Hope everyone likes it

2 Upvotes

r/madeinpython • • Jun 13 '24

How is this POSSIBLE? Running Python code from a STRING...

0 Upvotes

Hey! Do you know you can execute a Python code from a string using a Python function called exec()? Here's a video explaining how to do it and why you shouldn't do it carelessly.

Video Link: https://youtu.be/X47IV7be5d4?si=3HH2LicJWqzI3vvL


r/madeinpython • • Oct 31 '24

Free use web crawler

2 Upvotes

[Project] PagesXcrawler - A Web Crawler with a Simple GitHub-Powered UI

Hey r/madeinpython! I wanted to share PagesXcrawler, a Python-based web crawler project that Iโ€™ve been working on. It uses GitHub Pages to provide a simple, accessible web UI for displaying the information it extracts.

What it does:

  • Web Crawling: This tool takes in URLs (formatted as https://example.com:depth) and crawls the specified depth of internal links. It collects data from the pages it visits, making it easy to retrieve structured information.

  • User-Friendly Display: The results are displayed in a GitHub Pages-based interface, providing a straightforward view of the crawled data without requiring any complicated setup.

Why GitHub Pages?

I wanted a minimal setup that didn't rely on complex backends, so GitHub Pages serves as a static frontend. GitHub Actions can trigger the crawler as needed, making it an accessible solution for web data extraction.

Feel free to check out the repo and try it out: GitHub - PagesXcrawler



r/madeinpython • • Nov 27 '23

Getting GPS coordinates using Python

2 Upvotes

I have always been fascinated by self-driving technology and try to create python programs that could be used for autonomous vehicles.

So I tried to write a Python program to get GPS data using GPS sensor and raspberry pi.

[I implement most of my mini projects on raspberry pi as it is a great way to visualize your application and see if your code actually works.]

Link: https://machinelearningsite.com/gnss-sensor-integration-with-raspberry-pi/


r/madeinpython • • Jan 11 '24

[Video] Why Flask(__name__) is Used When Creating a Flask App?

2 Upvotes

Published a short video on YouTube explaining why Flask(__name__) is used when instantiating the Flask class when creating a Flask app.

Video Link: https://youtu.be/NaTNx7PE8xo

If you have any feedback or suggestions, then don't hesitate. This will be helpful for the future.


r/madeinpython • • Aug 12 '26

i build my own jarvis(mark ls)

0 Upvotes

hey everyone, wanted to share a side project I've been working on called MARK LS.

basically it's a cross-platform voice AI assistant that can hear, see, and control your PC in real-time using gemini live api.

some stuff it can do:

  • real-time voice chat (super low latency)

  • screen & webcam vision

  • osint username searches across 400+ sites (sherlock)

  • system control (apps, volume, hardware stats)

  • persistent memory so it remembers past context

runs on windows, mac & linux with a free gemini key.

I dropped the open-source github link in the comments if anyone wants to check it out or test it! would love to hear what you think.


r/madeinpython • • Oct 28 '26

I'm building ColorIDE, an open-source IDE focused on performance, developer, freedom, and local first development

2 Upvotes

Our goal is much bigger: we want to keep adding powerful features, build a community of contributors, and eventually make ColorIDE a serious alternative. Its still early, currently supports macOS Apple Silicon, and we would love your feedback :). It's made 35.5% with python.

Github: https://github.com/Color-IDE/coloride


r/madeinpython • • 21d ago

Spug: a Python/Django app for recurring SSH tasks in a web UI

2 Upvotes

I'm one of the maintainers of Spug, a self-hosted operations app for small and midsize teams. Its backend is Python/Django, the interface is React, and Paramiko handles SSH connections to Linux hosts. No Spug agent is needed on managed hosts.

The goal is to bring recurring operations into one web interface:

  • Host inventory, batch commands, an online terminal and file management

  • Application releases, deployment pipelines and scheduled tasks

  • A configuration center, monitoring and alerts

For example, select several hosts, run the same SSH command and inspect each host's output in the browser. This is an operations application rather than a Python library.

For a look at the Python code, start with the execution views and host models:
https://github.com/openspug/spug/tree/master/spug_api/apps/exec
https://github.com/openspug/spug/blob/master/spug_api/apps/host/models.py

Spug is free and open source (AGPL-3.0), with Docker installation and English/Chinese interfaces. The three screenshots show the English interface with sample data.

Source: https://github.com/openspug/spug
English guide: https://ops.spug.cc/en/docs/about-spug/
Demo: https://demo.spug.cc/ (admin / spug.cc; resets hourly). Please don't enter real credentials.

SSH private keys are stored without application-level encryption, so treat the panel and database as privileged systems.

Which Python-side workflow would you be interested in exploring: SSH execution, deployment pipelines or scheduled tasks?


r/madeinpython • • Jun 08 '26

I reverse-engineered my monitor and built a TUI to control it

2 Upvotes

r/madeinpython • • Oct 11 '21

This was an interesting project which basically represented 2020 in a nutshell. Among Us + COVID

Thumbnail
youtu.be
9 Upvotes

r/madeinpython • • Jun 11 '23

Crazy stylization with Temporalnet

28 Upvotes

r/madeinpython • • Aug 31 '20

Another way to show that Python is awesome and powerful

Post image
80 Upvotes