My attempt at histogram_equalization (Digital Image Processing)
Does this seem correct? Is there anything I can do to improve speeds?
def histogram_equalization(image):
try:
assert len(image.shape) == 2
except ValueError as e: #what exception
image = imread(image)
assert len(image.shape) == 2
source, indicies, counts =np.unique(image, return_inverse= True, return_counts = True)
s_cdf = np.cumsum(counts).astype(np.float64)
s_cdf /= s_cdf[-1]
new_values = np.around(s_cdf * source).astype('uint8')
new_image = new_values[indicies].reshape(image.shape)
return new_image
/r/Python
https://redd.it/87o21t
Does this seem correct? Is there anything I can do to improve speeds?
def histogram_equalization(image):
try:
assert len(image.shape) == 2
except ValueError as e: #what exception
image = imread(image)
assert len(image.shape) == 2
source, indicies, counts =np.unique(image, return_inverse= True, return_counts = True)
s_cdf = np.cumsum(counts).astype(np.float64)
s_cdf /= s_cdf[-1]
new_values = np.around(s_cdf * source).astype('uint8')
new_image = new_values[indicies].reshape(image.shape)
return new_image
/r/Python
https://redd.it/87o21t
reddit
My attempt at histogram_equalization (Digital Image... • r/Python
Does this seem correct? Is there anything I can do to improve speeds? def histogram_equalization(image): try: assert...
New stable release of PySolFC — an open-source collection of over 1,000 card Solitaire/Mahjong games
[PySolFC](http://pysolfc.sourceforge.net/) is a free and open-source collection of over 1,000 card Solitaire and Mahjong games with many features and solver/analysis tools. It is almost [20 years old](http://solitaire.vegard2.net/pysol.html), and the current development efforts are concentrated on [the GitHub repository](https://github.com/shlomif/PySolFC).
The PySolFC developers are happy to announce a new stable release, 2.2.0, of PySolFC (the last one was in distant 2009!). Among the new features are:
* Compatibility with both Python 3.x and Python 2.7.
* Support for the Kivy user-interface toolkit, for Android devices and other systems.
* A Microsoft Windows binary installer.
* Support for dealing all [Freecell Pro deals](http://fc-solve.shlomifish.org/faq.html#what_are_ms_deals) by specifying "ms100000", or similar, as the seed.
* Support for the [Black Hole and All in a Row solver](http://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/) was added.
* Test suite and [CI](https://en.wikipedia.org/wiki/Continuous_integration) have been added to the repository.
* The code now passes [flake8](https://pypi.python.org/pypi/flake8) validation.
You can find [download links](https://sourceforge.net/projects/pysolfc/files/PySolFC/) for current Windows, source code, and Android versions.
Packages for Linux/BSD/etc. distributions and operating systems should be made
available soon from the downstream packagers.
Future plans:
* Vector-based fully scalable cards and graphics
* Large-scale cardsets for HD displays
* An online, WWW-based version
If you want to help, we need:
* Programmers
* Graphic designers who would help with improving the app’s look
* People to help with documentation and translations
* People who would spread the word
* Testers / QA people
* Monetary donations - see [this page](http://www.shlomifish.org/meta/how-to-help/)
We will gladly answer any questions!
Remember that apart from this thread you can also contact us using the [FOSS Card Games group](https://groups.google.com/forum/#!forum/foss-card-games), and using the ##pysol chat room on [Freenode](http://freenode.net/) (note the double octothorpe/hash-sign/pound-sign).
A final note is that while we are using GitHub for version control, and accept
pull requests and issue reports, we are still hosting the main site and the
downloads on SourceForge.net. See [the explanation](https://www.reddit.com/r/Python/comments/8237i3/help_is_needed_in_preparing_a_windows_binary/dv84xxu/)
for details.
/r/Python
https://redd.it/8cnoou
[PySolFC](http://pysolfc.sourceforge.net/) is a free and open-source collection of over 1,000 card Solitaire and Mahjong games with many features and solver/analysis tools. It is almost [20 years old](http://solitaire.vegard2.net/pysol.html), and the current development efforts are concentrated on [the GitHub repository](https://github.com/shlomif/PySolFC).
The PySolFC developers are happy to announce a new stable release, 2.2.0, of PySolFC (the last one was in distant 2009!). Among the new features are:
* Compatibility with both Python 3.x and Python 2.7.
* Support for the Kivy user-interface toolkit, for Android devices and other systems.
* A Microsoft Windows binary installer.
* Support for dealing all [Freecell Pro deals](http://fc-solve.shlomifish.org/faq.html#what_are_ms_deals) by specifying "ms100000", or similar, as the seed.
* Support for the [Black Hole and All in a Row solver](http://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/) was added.
* Test suite and [CI](https://en.wikipedia.org/wiki/Continuous_integration) have been added to the repository.
* The code now passes [flake8](https://pypi.python.org/pypi/flake8) validation.
You can find [download links](https://sourceforge.net/projects/pysolfc/files/PySolFC/) for current Windows, source code, and Android versions.
Packages for Linux/BSD/etc. distributions and operating systems should be made
available soon from the downstream packagers.
Future plans:
* Vector-based fully scalable cards and graphics
* Large-scale cardsets for HD displays
* An online, WWW-based version
If you want to help, we need:
* Programmers
* Graphic designers who would help with improving the app’s look
* People to help with documentation and translations
* People who would spread the word
* Testers / QA people
* Monetary donations - see [this page](http://www.shlomifish.org/meta/how-to-help/)
We will gladly answer any questions!
Remember that apart from this thread you can also contact us using the [FOSS Card Games group](https://groups.google.com/forum/#!forum/foss-card-games), and using the ##pysol chat room on [Freenode](http://freenode.net/) (note the double octothorpe/hash-sign/pound-sign).
A final note is that while we are using GitHub for version control, and accept
pull requests and issue reports, we are still hosting the main site and the
downloads on SourceForge.net. See [the explanation](https://www.reddit.com/r/Python/comments/8237i3/help_is_needed_in_preparing_a_windows_binary/dv84xxu/)
for details.
/r/Python
https://redd.it/8cnoou
GitHub
GitHub - shlomif/PySolFC: A comprehensive, feature-rich, open source, and portable, collection of Solitaire games.
A comprehensive, feature-rich, open source, and portable, collection of Solitaire games. - shlomif/PySolFC
[noob question] can't connect to web browser with jupyter notebook on docker
Hi I've been following this tutorial ([https://github.com/pkmital/CADL/blob/master/README.md#what-is-notebook](https://github.com/pkmital/CADL/blob/master/README.md#what-is-notebook)) and trying to set up jupyter notebook on docker. I'm using windows 10 home. I manage to set up docker toolbox and clone from the github repo
Then I copied the downloaded files into the virtual machines directory using:
docker run -it -p 8888:8888 -p 6006:6006 -v /$(pwd)/CADL:/notebooks --name tf pkmital/cadl
Now when I try jupyter notebook & it shows
(base) root@eaf652bccc31:/notebooks# [W 22:02:47.479 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[C 22:02:47.486 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
On the tutorial it says that it's suppose to be displaying:
[I 21:15:33.647 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 21:15:33.712 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[W 21:15:33.713 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
[I 21:15:33.720 NotebookApp] Serving notebooks from local directory: /root
[I 21:15:33.721 NotebookApp] 0 active kernels
[I 21:15:33.721 NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888/
[I 21:15:33.721 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
When I try to connect to [192.168.99.101:8888](https://192.168.99.101:8888) it says connection refused but i can successfully ping [192.168.99.101](https://192.168.99.101) \- the docker ip. Also Ive opened my port from my firewall between 49152 to 65535 and tried turning it off completely but it still doesn't seem to work.
Any help or pointers be great!
/r/IPython
https://redd.it/8tbk9b
Hi I've been following this tutorial ([https://github.com/pkmital/CADL/blob/master/README.md#what-is-notebook](https://github.com/pkmital/CADL/blob/master/README.md#what-is-notebook)) and trying to set up jupyter notebook on docker. I'm using windows 10 home. I manage to set up docker toolbox and clone from the github repo
Then I copied the downloaded files into the virtual machines directory using:
docker run -it -p 8888:8888 -p 6006:6006 -v /$(pwd)/CADL:/notebooks --name tf pkmital/cadl
Now when I try jupyter notebook & it shows
(base) root@eaf652bccc31:/notebooks# [W 22:02:47.479 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[C 22:02:47.486 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
On the tutorial it says that it's suppose to be displaying:
[I 21:15:33.647 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 21:15:33.712 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[W 21:15:33.713 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
[I 21:15:33.720 NotebookApp] Serving notebooks from local directory: /root
[I 21:15:33.721 NotebookApp] 0 active kernels
[I 21:15:33.721 NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888/
[I 21:15:33.721 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
When I try to connect to [192.168.99.101:8888](https://192.168.99.101:8888) it says connection refused but i can successfully ping [192.168.99.101](https://192.168.99.101) \- the docker ip. Also Ive opened my port from my firewall between 49152 to 65535 and tried turning it off completely but it still doesn't seem to work.
Any help or pointers be great!
/r/IPython
https://redd.it/8tbk9b
GitHub
pkmital/CADL
Course materials/Homework materials for the FREE MOOC course on "Creative Applications of Deep Learning w/ Tensorflow" #CADL
I made a tutorial on how to use Python to create a VAE
Hey everyone!
I wrote a tutorial on how to use Python to create a Variational Autoencoder that generates small images of clothing! The project uses TensorFlow, and comes with background information on how VAE's work that I tried to make digestible for beginners!
You can find a link to the guide here \- it has sections that cover:
1. A high level introduction to VAEs (link to section here)
2. An ordinary autoencoder recap (link to section here)
3. An overview of variational autoencoders (link to section here)
4. Understanding how variational autoencoders learn (link to section here)
5. Building a variational autoencoder for the Fashion MNIST dataset (link to section here)
At the end, you'll be able to create a GIF like the one below, where we can see the VAE learning to associate different regions of the plane with different types of clothing!
Landscape of generated images
Here you can find a link to the repo which contains a Jupyter notebook that follows the tutorial.
I'd love to hear your thoughts and feedback, or suggestions for other topics people are interested in learning about!
/r/Python
https://redd.it/s1ga35
Hey everyone!
I wrote a tutorial on how to use Python to create a Variational Autoencoder that generates small images of clothing! The project uses TensorFlow, and comes with background information on how VAE's work that I tried to make digestible for beginners!
You can find a link to the guide here \- it has sections that cover:
1. A high level introduction to VAEs (link to section here)
2. An ordinary autoencoder recap (link to section here)
3. An overview of variational autoencoders (link to section here)
4. Understanding how variational autoencoders learn (link to section here)
5. Building a variational autoencoder for the Fashion MNIST dataset (link to section here)
At the end, you'll be able to create a GIF like the one below, where we can see the VAE learning to associate different regions of the plane with different types of clothing!
Landscape of generated images
Here you can find a link to the repo which contains a Jupyter notebook that follows the tutorial.
I'd love to hear your thoughts and feedback, or suggestions for other topics people are interested in learning about!
/r/Python
https://redd.it/s1ga35
AssemblyAI Blog
Variational Autoencoders for Dummies
The complete guide to understanding and implementing Variational Autoencoders
Help Needed: I'm Trying to get Variables from the Load before // Load after Functions into the main function that serves my page. But I'm completely stuck on how.
So I'm making this web app using Flask, that returns Recipe's from the BreakFast API. To me it's the first time using Flask (although I did some python scripting before) and also the first time taking on a project with an API and using Bootstrap. So to summarize: I'm way out of my comfort zone.
\#What I'm doing
My program does the following:
1. Make call to the breakfast API, it returns a random recipe
2. Parse the response from that API to obtain things like recipe's. That looks like this:
3. Then I want to do an image search based on the RecipeName and obtain the URL for this. That also works using this section:
4. Then I render the page using:
\#The problem
The issue with this is that getting the Image URL takes a good few seconds and as a result reloading the page is very slow.
I'd like to speed this up, my first idea was to use the: Before request to set an initial recipe so I can render the page 1x on bootup which will be slow. And then after each request fetch a new Recipe for the next user. An alternative is to render the page, and only later add the image
/r/flask
https://redd.it/strrr2
So I'm making this web app using Flask, that returns Recipe's from the BreakFast API. To me it's the first time using Flask (although I did some python scripting before) and also the first time taking on a project with an API and using Bootstrap. So to summarize: I'm way out of my comfort zone.
\#What I'm doing
My program does the following:
1. Make call to the breakfast API, it returns a random recipe
2. Parse the response from that API to obtain things like recipe's. That looks like this:
3. Then I want to do an image search based on the RecipeName and obtain the URL for this. That also works using this section:
4. Then I render the page using:
\#The problem
The issue with this is that getting the Image URL takes a good few seconds and as a result reloading the page is very slow.
I'd like to speed this up, my first idea was to use the: Before request to set an initial recipe so I can render the page 1x on bootup which will be slow. And then after each request fetch a new Recipe for the next user. An alternative is to render the page, and only later add the image
/r/flask
https://redd.it/strrr2
reddit
Help Needed: I'm Trying to get Variables from the Load before //...
So I'm making this web app using Flask, that returns Recipe's from the BreakFast API. To me it's the first time using Flask (although I did some...
Is Django getting too old?
I found this JetBrains survey from 2022, and I was said to see that the popularity of Django is declining.What do you think about it? Is it because Django is for start-up, and we have bad times, or there is other reason?
https://preview.redd.it/kd1isdwkijxb1.png?width=2026&format=png&auto=webp&s=7e1e33faf726ce17ba04213a195ac478a68a46d3
/r/django
https://redd.it/17kl250
I found this JetBrains survey from 2022, and I was said to see that the popularity of Django is declining.What do you think about it? Is it because Django is for start-up, and we have bad times, or there is other reason?
https://preview.redd.it/kd1isdwkijxb1.png?width=2026&format=png&auto=webp&s=7e1e33faf726ce17ba04213a195ac478a68a46d3
/r/django
https://redd.it/17kl250
JetBrains: Developer Tools for Professionals and Teams
Python Programming - The State of Developer Ecosystem in 2022 Infographic
The State of Developer Ecosystem 2022 is a detailed report about the programming community, which covers the latest trends in languages, tools, technologies, and lifestyles of developers.
Django website template to speed up your development
Hi everyone!
I saw couple of posts about how tedious and time consuming its to get django website from scratch, especially from freelancers.
So to make things easier I put together a base template, so you can build on that, you can check it out here: [https://github.com/PaulleDemon/Django-website-template](https://github.com/PaulleDemon/Django-website-template)
You can also check out the [Django template demo](https://django-website-template.vercel.app/).
**Some of the features of Django template include**
* **Production ready**: Comes with configurations for production, you can start deploying immediately to Render.com, vercel.com, railway.app etc.
* **Responsive UI**: Comes with a responsive base template, so you can focus on other parts of your websites.
* **Landing page**: Comes with a landing page you can modify.
* **Contact us page**: An inquiry form, to allow your users to contact.
* **Blog with Trix Editor:** An integrated Trix editor on admin panel to manage and write blogs.
* **Custom User model**: Comes with an existing custom user model you can modify.
* **Tailwind Css:** For rapid prototyping and development
You can check out all the feature [here](https://github.com/PaulleDemon/Django-website-template?tab=readme-ov-file#what-features-does-django-template-include).
**Couple of technical details:**
* It comes with Function based views.
* Uses tailwind CSS
* Supports Sqlite / Postgres Database
* You can check the readme.md, to know how to get started and deploy it to production.
**Who is
/r/django
https://redd.it/1dnhlf5
Hi everyone!
I saw couple of posts about how tedious and time consuming its to get django website from scratch, especially from freelancers.
So to make things easier I put together a base template, so you can build on that, you can check it out here: [https://github.com/PaulleDemon/Django-website-template](https://github.com/PaulleDemon/Django-website-template)
You can also check out the [Django template demo](https://django-website-template.vercel.app/).
**Some of the features of Django template include**
* **Production ready**: Comes with configurations for production, you can start deploying immediately to Render.com, vercel.com, railway.app etc.
* **Responsive UI**: Comes with a responsive base template, so you can focus on other parts of your websites.
* **Landing page**: Comes with a landing page you can modify.
* **Contact us page**: An inquiry form, to allow your users to contact.
* **Blog with Trix Editor:** An integrated Trix editor on admin panel to manage and write blogs.
* **Custom User model**: Comes with an existing custom user model you can modify.
* **Tailwind Css:** For rapid prototyping and development
You can check out all the feature [here](https://github.com/PaulleDemon/Django-website-template?tab=readme-ov-file#what-features-does-django-template-include).
**Couple of technical details:**
* It comes with Function based views.
* Uses tailwind CSS
* Supports Sqlite / Postgres Database
* You can check the readme.md, to know how to get started and deploy it to production.
**Who is
/r/django
https://redd.it/1dnhlf5
GitHub
GitHub - PaulleDemon/Django-website-template: Django templates for freelancer's, agencies to supercharge development
Django templates for freelancer's, agencies to supercharge development - PaulleDemon/Django-website-template
sql-compare: package to compare SQL schemas
## What My Project Does
This package allows to compare two SQL files (or strings) to know whether their statements are the same or not. The comparison doesn't care about the order of the columns in a table or the order of the values in an enumerator. It also excludes irrelevant data like comments.
GitHub repository
PyPI
Its main usage is to compare the schemas of two databases (e.g. staging and production).
At Mergify, we use it in our test suite to check that the migration scripts generated by Alembic will create the database schema expected by the SQLAlchemy models. I wrote a blog post about the creation of the package.
## Target Audience
We use it in our CI/CD. This package is meant for testing mainly, but it could be used for something else probably.
This package is ready for production.
We have been using it at Mergify for several months now. Our test suite fails whenever Alembic misses something in a migration script. We deliver to production several times a day thanks to that.
## Comparison
We didn't find any suitable alternative.
Alembic can compare a database schema with SQLAlchemy models, but it doesn't detect every differences.
We used migra in the past, but it is not maintained anymore.
/r/Python
https://redd.it/1dvsqk7
## What My Project Does
This package allows to compare two SQL files (or strings) to know whether their statements are the same or not. The comparison doesn't care about the order of the columns in a table or the order of the values in an enumerator. It also excludes irrelevant data like comments.
GitHub repository
PyPI
Its main usage is to compare the schemas of two databases (e.g. staging and production).
At Mergify, we use it in our test suite to check that the migration scripts generated by Alembic will create the database schema expected by the SQLAlchemy models. I wrote a blog post about the creation of the package.
## Target Audience
We use it in our CI/CD. This package is meant for testing mainly, but it could be used for something else probably.
This package is ready for production.
We have been using it at Mergify for several months now. Our test suite fails whenever Alembic misses something in a migration script. We deliver to production several times a day thanks to that.
## Comparison
We didn't find any suitable alternative.
Alembic can compare a database schema with SQLAlchemy models, but it doesn't detect every differences.
We used migra in the past, but it is not maintained anymore.
/r/Python
https://redd.it/1dvsqk7
PyPI
sql-compare
Compare SQL schemas
Simon Willison: "Things I've learned serving on the board of the Python Software Foundation"
Pretty good insights on what the PSF is and how it relates to the Python language from Django co-creator Simon Willison:
https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/
The entire post is worth reading, but here are links to specific sections:
[What is the PSF?](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#what-is-the-psf)
The PSF employs staff
[A lot of this is about money](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#a-lot-of-this-is-about-money)
The PSF does not directly develop Python itself
[PyPI—the Python Package Index](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#pypi-the-python-package-index)
PyCon is a key commitment
[Other PSF activities](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#other-psf-activities)
Work Groups
[Acting as a fiscal sponsor](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#acting-as-a-fiscal-sponsor)
Life as a board member
[The kinds of things the board talks about](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#the-kinds-of-things-the-board-talks-about)
Want to know more?
/r/Python
https://redd.it/1fjzbk9
Pretty good insights on what the PSF is and how it relates to the Python language from Django co-creator Simon Willison:
https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/
The entire post is worth reading, but here are links to specific sections:
[What is the PSF?](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#what-is-the-psf)
The PSF employs staff
[A lot of this is about money](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#a-lot-of-this-is-about-money)
The PSF does not directly develop Python itself
[PyPI—the Python Package Index](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#pypi-the-python-package-index)
PyCon is a key commitment
[Other PSF activities](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#other-psf-activities)
Work Groups
[Acting as a fiscal sponsor](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#acting-as-a-fiscal-sponsor)
Life as a board member
[The kinds of things the board talks about](https://simonwillison.net/2024/Sep/18/board-of-the-python-software-foundation/#the-kinds-of-things-the-board-talks-about)
Want to know more?
/r/Python
https://redd.it/1fjzbk9
Simon Willison’s Weblog
Things I’ve learned serving on the board of the Python Software Foundation
Two years ago I was elected to the board of directors for the Python Software Foundation—the PSF. I recently returned from the annual PSF board retreat (this one was in …
I made a Vim Game in Python
I made a vim game in python using pygame. I would describe it as if Letter Invaders from Typing Tutor 7 had vim motions. It is in the early stages of development, so please go easy in the comments.
\#What My Project Does
It is a vim game in pygame designed to help the user build up speed and familiarity with the vim motions
\#Target Audience
People who use vim and want to become fast with the motions
\#Comparison
Alternative games include VimBeGood and Golf.Vim. This is closer to VimBeGood, in that it focuses on building up speed, rather than giving the user a single puzzle to study.
\# Repo
https://github.com/RaphaelKMandel/chronicles-of-vimia
/r/Python
https://redd.it/1kiseo7
I made a vim game in python using pygame. I would describe it as if Letter Invaders from Typing Tutor 7 had vim motions. It is in the early stages of development, so please go easy in the comments.
\#What My Project Does
It is a vim game in pygame designed to help the user build up speed and familiarity with the vim motions
\#Target Audience
People who use vim and want to become fast with the motions
\#Comparison
Alternative games include VimBeGood and Golf.Vim. This is closer to VimBeGood, in that it focuses on building up speed, rather than giving the user a single puzzle to study.
\# Repo
https://github.com/RaphaelKMandel/chronicles-of-vimia
/r/Python
https://redd.it/1kiseo7
GitHub
GitHub - RaphaelKMandel/chronicles-of-vimia
Contribute to RaphaelKMandel/chronicles-of-vimia development by creating an account on GitHub.
A script to get songs from a playlist with matching total length
#What my project does
Basically, you input:
- A public youtube playlist
- Target duration
You get:
- Song groups with a matching total length
#Target Audience
So I think this is one of the most specific 'problems'..
I've been making a slow return to jogging, and one of the changes to keep things fresh was to jog until the playlist ended. (Rather than meters, or a route)
I am incrementing the length of the playlist by 15 seconds between each run, and each time finding a group of songs with a matching length can be tiring, which is why I thought of this 😅
So I guess this is for people who want a shuffled playlist, with a specific duration, for some reason.
This is 'py-playlist-subset', try it out 👀
https://github.com/Tomi-1997/py-playlist-subset
/r/Python
https://redd.it/1nl4bxv
#What my project does
Basically, you input:
- A public youtube playlist
- Target duration
You get:
- Song groups with a matching total length
#Target Audience
So I think this is one of the most specific 'problems'..
I've been making a slow return to jogging, and one of the changes to keep things fresh was to jog until the playlist ended. (Rather than meters, or a route)
I am incrementing the length of the playlist by 15 seconds between each run, and each time finding a group of songs with a matching length can be tiring, which is why I thought of this 😅
So I guess this is for people who want a shuffled playlist, with a specific duration, for some reason.
This is 'py-playlist-subset', try it out 👀
https://github.com/Tomi-1997/py-playlist-subset
/r/Python
https://redd.it/1nl4bxv
GitHub
GitHub - Tomi-1997/py-playlist-subset: Generate a list of songs with requsted length, from a youtube playlist.
Generate a list of songs with requsted length, from a youtube playlist. - Tomi-1997/py-playlist-subset