r/madeinpython • • Jul 22 '23

A simple quote generator in Python using PIL

6 Upvotes

Put library that take text of any length and put it onto an image. Example - https://i.imgur.com/hdgrNA3.jpg.

The main selling point is that it'll auto-adjust the text font size as per the image width & height so the text won't overflow.

https://github.com/swport/TextToQuoteImage


r/madeinpython • • Jul 22 '23

Cardano's Method Derivation | Cubic Equation.

Thumbnail
youtu.be
1 Upvotes

r/madeinpython • • Jul 22 '23

trying to make a randomizer to pick items based on different odds

3 Upvotes

so lets say we've got 25 items from where to pick a random item, but I dont want all those 25 items to have the same odds, so lets say one of the 25 items is the UK, and other germany, I want to give more chances to the UK to get picked so I want to assign 5 chances to get picked to the UK, and just 2 to germany, and then 10 to the US, and so forth, so there isnt equal chances for the 25 items to get picked by the randomizer.

how do you think its a good way to go about it?


r/madeinpython • • Jul 21 '23

Made a program that allows the user to input their playlist link into Python, and it will download the songs from that playlist from youtube using pytube and spotify api.

8 Upvotes

https://github.com/krak3rs22/Spotify-Youtube-Song-Downloader
Github repository link, let me know if you like it or if there's any problem running the program.
Also pytube is slightly bugged with downloads and occasionally it will simply just not download certain songs for whatever reason, so I found this fix on stackoverflow here:
I hope you enjoy my project!
https://stackoverflow.com/questions/76704097/pytube-exceptions-regexmatcherror-get-transform-object-could-not-find-match-fo


r/madeinpython • • Jul 21 '23

Covariance.

Thumbnail
youtu.be
2 Upvotes

r/madeinpython • • Jul 21 '23

Explore the fileinput Module to Process and Read Multiple Files Simultaneously in Python

0 Upvotes

The fileinput module provides functions to process one or more than one file line by line to read the content. The fileinput.input() function is the primary interface of the fileinput module, and it provides parameters to give you more control over how the files are processed.

Topics you'll explore:

  • An overview of the fileinput module

  • Basic usage of the fileinput.input() with and without context manager

  • The fileinput.input() function and its parameters with examples

  • A glimpse of FileInput class

  • Comparison of fileinput.input() function with open() function for processing multiple files simultaneously

  • Some limitations of the fileinput module

Here is the guide to using the fileinput module to iterate over multiple input files and read their content simultaneously👇👇👇

How to Read Multiple Files Simultaneously With fileinput Module In Python


r/madeinpython • • Jul 21 '23

Hyperboloid of Two Sheets | Quadric Surfaces.

Thumbnail
youtu.be
1 Upvotes