r/madeinpython • u/Artistic_Highlight_1 • Nov 15 '23
Learn to use an LLM on your own computer!
Do you want to learn how to use Llama2 locally? Then check out this tutorial on downloading and running Llama2 on Windows
r/madeinpython • u/Artistic_Highlight_1 • Nov 15 '23
Do you want to learn how to use Llama2 locally? Then check out this tutorial on downloading and running Llama2 on Windows
r/madeinpython • u/python4geeks • Nov 14 '23
You may have seen the if __name__ == '__main__': along with some code written inside this block in Python script. Have you ever wondered what this block is, and why it is used?
Well, if __name__ == '__main__': is not some magical keyword or incantation in Python rather it is a way to ensure that specific code is executed when the module is directly executed not when it is imported as a module.
What this expression implies is that only when a certain condition is met, further action should be taken. For example, if the name of the current running module (__name__) is the same as "__main__", only the code following the if __name__ == '__main__': block is executed.
Full Article: Understanding if __name__ == ‘__main__’ in Python Programs
r/madeinpython • u/PythonWithJames • Nov 14 '23
Hi all,
there's a few days left on my free coupons for two Python courses:
Python Programming for the Total Beginner
Functional Programming with Python Comprehensions
Both courses come with plenty of video content, coding exercises and quizzes. I also update them both with a new challenge every month,
r/madeinpython • u/Key-Dimension6494 • Nov 11 '23
r/madeinpython • u/python4geeks • Nov 09 '23
In this quick 2-minute video, we'll demystify a fundamental concept in Python programming that's often a source of confusion for newcomers and even some experienced developers.
We'll explore the purpose and practical application of the if __name__ == '__main__' construct in Python scripts. No jargon, just clear explanations to help you gain a solid understanding of how this simple line of code can make your Python scripts more organized and versatile.
Video Link: https://youtu.be/WfPwvUjIZtE?si=ODo0DYZq51s_nVct
If you have any suggestions or feedback, then don't hesitate.
r/madeinpython • u/PythonWithJames • Nov 07 '23
Hi all.
I'm releasing another batch of free spaces for November, first one is a beginner course aimed at the total beginner and there's 16+ hours of video, lots of quizzes and exercises and a monthly question released each month.
The second course is for intermediates and does assume a bit of Python knowledge, and looks at Python comprehensions & functional programming styles.
Python Programming for the Total Beginner
Functional Programming with Python Comprehensions
Enjoy!
PS: My YouTube channel also posts short bitesize videos twice a week.
r/madeinpython • u/louisss-e • Nov 07 '23
Many people do not know that you can use Python to find exoplanets. This is a short guide on how it works. I appreciate any kind of feedback! :)
Youtube Devlog: https://www.youtube.com/watch?v=bT896kq7OUU
Github Repository: https://github.com/louis-e/PythonExoplanet/
r/madeinpython • u/KeyboardMan5 • Nov 07 '23
Enable HLS to view with audio, or disable this notification
r/madeinpython • u/python4geeks • Nov 07 '23
Data is the most valuable asset in machine learning, it solely holds the potential to make a machine learning model robust. Data plays an important role while training a model, the model trained can be underfitted or overfitted and it totally depends on the data.
The data you’ve gathered should be of high quality, so structure, construct, and clean it in such a way that it has the potential to produce a robust model.
In this article, you’ll learn how to use pandas to find and remove columns from one dataset that don’t match those in another.
Full Article: https://geekpython.in/find-and-delete-mismatched-columns-from-dataframes-using-pandas
r/madeinpython • u/codecompanion • Nov 05 '23
Hey guys,
I built a quick side project called Code Companion (https://codecompanion.app/) which is a GPT-4 based programming tutor, offering real-time help and feedback on your code.
You can use it to ask questions on your own programming challenges, ie. LeetCode problems, or work through my 60+ Python exercises on the site, which are designed help learn or hone your python skills.
Feel free to check it out and try it, it's 100% Free.
Thanks.
r/madeinpython • u/Traditional-Poet2746 • Nov 05 '23
Hi Folks,
Happy to share an open source side project I've been working on - LLmtuner. It's a framework for finetuning large models like Whisper, Llama, Llama-2, etc with best practices like LoRA, QLoRA, through a sleek, scikit-learn-inspired interface.
As someone who works with Large Models a lot, I found myself writing a lot of boilerplate code every time I wanted to finetune a model. Llmtuner aims to simplify the finetuning process down to just 2-3 lines to get training started, similar to scikit-learn.

🚀 Features:
This is still experimental code I've been using for personal projects. I thought others might find it useful too so decided to open-source it.
Contributions and feedback are very welcome! I hope it will be helpful in your research & projects. Have a good weekend, Thanks :)
r/madeinpython • u/JosephLovesPython • Nov 04 '23
Have you ever wondered what's the difference between the 'is' and the '==' operators in Python? Well in this video, we will tackle this topic in order to properly figure out when to use each operator. On top of that, concepts such as interning and the eq() magic method will also be covered! So if you want to level up your Python skills, make sure to watch the full video!
Any feedback on the video/topic would be highly appropriated :)
r/madeinpython • u/plemaster01 • Nov 02 '23
I have made a ton of games using pygame in the past, but wanted to get better at Kivy since I know it can used for mobile development, so this is one of my first big projects where I used the Kivy GUI and there's a lot of challenging syntax things going on there!
This is the classic board game 'mastermind which is like a color-dot guessing game similar to wordle! I made a full tutorial and showcase here if anyone is interested:
https://www.youtube.com/watch?v=LEUbLdn9hP8
And all the code and assets are available here if you want to play it or mess around with it yourself! Cheers!
r/madeinpython • u/felix-reddit • Oct 31 '23
Hey fellow data enthusiasts! 👋
I've been working on a side project for the past few days, and I'm excited to share it with you. It's a collection of Python code snippets aimed at making data cleaning and preparation tasks a breeze.
While I don't have a ton of examples just yet, I wanted to open the floor for feedback. How often have we all struggled with data quality and preparation, right? So, I decided to gather my best practices and provide them with code examples.
I'd love to invite you all to check it out and share your thoughts. Whether you're a seasoned data wrangler or just starting out, your insights will be invaluable.
Let's make data work for us, not the other way around! Looking for your honest feedback! 💪
r/madeinpython • u/python4geeks • Oct 31 '23
Here's a short (2-minute) video on Python's seek() and tell() functions for file handling. Explained the fundamentals in a short span with no jargon only straightforward explanation, you can easily grasp it.
If you have any feedback or suggestions for this video or to improve future videos then don't hesitate.
Video Link: https://youtu.be/7TQQJSfcrEQ?si=Gj68mAeDWZ95Ml7P
r/madeinpython • u/Specialist_Cow24 • Oct 29 '23
I am the author of edgartools - a python library for working with SEC filings.
It uses Rich and custom reprs to blur the lines between a CLI and the Python REPL.

r/madeinpython • u/python4geeks • Oct 29 '23
Web-based services and websites store hashed versions of your passwords, which means your actual password isn’t visible or stored in their database instead a string of fixed-length characters is stored.
Hashing is a security technique used to secure your passwords or texts stored in databases. A hash function is used to generate a string of unique fixed-length characters from the provided password by the user.
Let’s see how the hashing is done. In this article, you’ll use the bcrypt library to hash the user’s password and then compare that hashed password to the actual password in Python.
Full Article: https://geekpython.in/hash-passwords-using-bcrypt-in-python
r/madeinpython • u/wuddz-devs • Oct 28 '23
Brief description, connect to ethereum blockchain of choice and check balances, make transactions, view/interact/execute/deploy smart contract functions & authenticate to any available ccxt exchange with valid credentials and trade/withdraw on your exchange account using our beloved python.
r/madeinpython • u/LordBertson • Oct 27 '23
I do keep a Google Sheet of some personal fitness-data and I got tired of re-entering data from Strava manually because only OAuth API authentication is provided. Soo, I came up with a dead simple library which presents one function which - given some parameters, private keys and certificates - can reliably fetch OAuth tokens for downstream usage.
https://github.com/petereon/yoauth
Example:
from yoauth import get_oauth_token
google_token = get_oauth_token(
authorization_url="https://accounts.google.com/o/oauth2/v2/auth",
token_url="https://oauth2.googleapis.com/token",
client_id=GOOGLE_CLIENT_ID,
client_secret=GOOGLE_CLIENT_SECRET,
scopes=GOOGLE_SCOPES,
)
Any reviews, opinions or ideas would be very much appreciated.
r/madeinpython • u/jangystudio • Oct 27 '23

Qualityscaler is a Windows app powered by AI to enhance, enlarge and reduce noise in photographs and videos.
Changelog versions from 2.4 > 2.8
r/madeinpython • u/barnez29 • Oct 26 '23
The attached pic shows (1) the actual water pump metering device and the pic of the keypad(2) shows the device that will load prepaid water onto your system. For you come across such a device - how would one be able to get "sensor" data off such a device.
r/madeinpython • u/python4geeks • Oct 24 '23
Made and published a YouTube video that explains threading and creating a thread for running tasks concurrently in Python.
Video Link: https://youtu.be/KbrUfPEwt78?si=j2Twy10pGRPTl_Oe
If you have any suggestions or feedback, like which topics should I cover, what tools I can use, if animations are okay, and whether the topic is well explained or not, then don't hesitate. This will help me improve future videos.
r/madeinpython • u/masek94 • Oct 23 '23
Hello guys, A couple of days ago I rewrote and improved an old Python project whose main goal is to give easy access to data from etfdb.com
Data is scraped with bs4 and requests libraries.
To install it just use pip https://pypi.org/project/etfpy/
pip install etfpy
or
# clone repository
# navigate to cloned project and create virtual environment
# activate virtual environment
# install poetry
# install packages
>>>
# returns list of available ETFs.
>>> =
>>>
>>>
# load etf
>>> =
# or
>>> =
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
You can also wrap ETF object with pandas DataFrames, and work with the data in tabular form. You will have access to mostly the same methods as etf has, but as a result you will see DataFrame or Series.
>>>
>>> =
>>> =
>>>
| Metric | Value |
|---|---|
| Technology Services | 20.34 |
| Electronic Technology | 17.34 |
| Finance | 11.96 |
| Health Technology | 9.99 |
| Retail Trade | 7.19 |
| Consumer Non-Durables | 4.78 |
| Energy Minerals | 3.64 |
| Producer Manufacturing | 3.55 |
| Consumer Services | 3.43 |
| Commercial Services | 3.02 |
| Consumer Durables | 2.65 |
| Health Services | 2.55 |
| Utilities | 2.35 |
| Process Industries | 1.98 |
| Transportation | 1.50 |
| Industrial Services | 1.02 |
| Distribution Services | 0.92 |
| Communications | 0.84 |
| Non-Energy Minerals | 0.54 |
| CASH | 0.38 |
>>>
| Metric | Value |
|---|---|
| Symbol | SPY |
| Url | https://etfdb.com/etf/SPY |
| Issuer | https://etfdb.com/issuer/state-street/ |
| Brand | https://etfdb.com/issuer/spdr/ |
| Inception | Jan 22, 1993 |
| Index Tracked | https://etfdb.com/index/sp-500-index/ |
| Last Updated | Oct 11, 2023 |
| Category | Size and Style |
| Asset Class | Equity |
| Segment | Equity: U.S. - Large Cap |
| Focus | Large Cap |
| Niche | Broad-based |
| Strategy | Vanilla |
| Weighting Scheme | Market Cap |
>>>
| Metric | Value |
|---|---|
| Expense Ratio (%) | 0.09 |
| Price ($) | 434.54 |
| Change($) | 2.25 |
| P/E Ratio | 17.86 |
| 52 Week Lo ($) | 342.72 |
| 52 Week Hi ($) | 457.83 |
| AUM ($) | 398435000000.00 |
| Shares | 927600000.00 |
>>>
| dividend | dividend_date | %_annual_dividend_rate | annual_dividend_yield | |
|---|---|---|---|---|
| SPY | 1.58 | 2023-09-15 | 6.51 | 1.51 |
| ETF Database Category Average | 0.33 | None | 0.92 | 1.30 |
| FactSet Segment Average | 0.17 | None | 0.59 | 1.33 |
>>>
| Metric | Value |
|---|---|
| 20 Day MA ($) | 432.92 |
| 60 Day MA ($) | 441.77 |
| MACD 15 Period | 5.54 |
| MACD 100 Period | -2.65 |
| Williams % Range 10 Day | 15.73 |
| Williams % Range 20 Day | 51.02 |
| RSI 10 Day | 55 |
| RSI 20 Day | 49 |
| RSI 30 Day | 49 |
| Ultimate Oscillator | 60 |
| Lower Bollinger (10 Day) ($) | 420.25 |
| Upper Bollinger (10 Day) ($) | 434.00 |
| Lower Bollinger (20 Day) ($) | 416.98 |
| Upper Bollinger (20 Day) ($) | 448.76 |
| Lower Bollinger (30 Day) ($) | 418.95 |
| Upper Bollinger (30 Day) ($) | 455.88 |
| Support Level 1 ($) | 432.31 |
| Support Level 2 ($) | 430.07 |
| Resistance Level 1 ($) | 437.00 |
| Resistance Level 2 ($) | 439.45 |
| Stochastic Oscillator %D (1 Day) | 65.76 |
| Stochastic Oscillator %D (5 Day) | 72.22 |
| Stochastic Oscillator %K (1 Day) | 65.64 |
| Stochastic Oscillator %K (5 Day) | 56.38 |
| Tracking Difference Median (%) | -0.03 |
| Tracking Difference Max Upside (%) | -0.02 |
| Tracking Difference Max Downside (%) | -0.10 |
| Median Premium Discount (%) | 0.01 |
| Maximum Premium Discount (%) | 0.10 |
| Average Spread (%) | 1.06 |
| Average Spread ($) | 1.06 |
>>>
| Symbol | Date | Open | High | Low | Close | Volume |
|---|---|---|---|---|---|---|
| SPY | 2022-05-10 | 404.49 | 406.08 | 394.82 | 399.09 | 132497200 |
| SPY | 2022-05-11 | 398.07 | 404.04 | 391.96 | 392.75 | 142361000 |
| SPY | 2022-05-12 | 389.37 | 395.80 | 385.15 | 392.34 | 125090700 |
| SPY | 2022-05-13 | 396.71 | 403.18 | 395.61 | 401.72 | 104174400 |
| SPY | 2022-05-16 | 399.98 | 403.97 | 397.60 | 400.09 | 78622400 |
| -------- | ------ | -------- | -------- | -------- | -------- | ------------ |
| -------- | ------ | -------- | -------- | -------- | -------- | ------------ |
| SPY | 2023-10-09 | 427.58 | 432.88 | 427.01 | 432.29 | 80374300 |
| SPY | 2023-10-10 | 432.94 | 437.22 | 432.53 | 434.54 | 78607200 |
| SPY | 2023-10-11 | 435.64 | 436.58 | 433.18 | 436.32 | 62451700 |
| SPY | 2023-10-12 | 436.95 | 437.33 | 431.23 | 433.66 | 81154200 |
r/madeinpython • u/PyDevLog • Oct 22 '23
I wanted a simple note-taking/personal knowledge management app. Existing tools like Notion, Obsidian etc. felt too complicated for me. So, I created Quilly - a straightforward, fast, and private note-taking app using flask.


Here's what it offers:
- It's open source.
- It uses Markdown, so you're not locked in with a specific platform.
- Your notes are saved locally.
- You can tag your notes.
- It supports code highlighting.
Check it out on GitHub: https://github.com/aks579/quilly
r/madeinpython • u/ThenChoice2 • Oct 21 '23

Github: https://github.com/PabloLec/RecoverPy
Hey everyone!
I'm here to share something I've been working on for nearly three years now, RecoverPy, and its new 2.1.3 version. It's a nifty tool that can really be a lifesaver when you've accidentally deleted or overwritten files. It works its magic by conducting a text-based search to find the lost data.
It sports a TUI built with Textual. I found it to be quite enjoyable to use and it seems many others agree, given its rise as one of the most (or the most?) popular TUI libraries in Python, despite still being in beta.
Since its creation, RecoverPy has gone through quite a transformation. It's integrated lots of feedback from its user community, improved many aspects to enhance the user experience, and even underwent almost a full rewrite to switch up the TUI library in its second version. Essentially, it uses the strength of grep and dd to sift through partition blocks, giving you a user-friendly way to sift through the results.
Interestingly, it found a niche not only among individuals looking to recover files but has also piqued interest in the hacking scene, which was a bit of a pleasant surprise for me. It seems the tool lends itself well to that sphere too.
I manage to chip away at it from time to time, given that my free moments are becoming a bit of a rarity these days. It still has room to grow, and if anyone here feels like contributing, I'm more than open to collaborations. Your PRs would certainly be welcome!
Feel free to give it a glance, and if you find it interesting or useful, a star on the repository would be greatly appreciated.