Why we dropped Docker for Python environments
TL;DR Docker is a great tool for managing software environments, but we found that it’s just too slow, especially for exploratory data workflows where users change their Python environments frequently.
We find that clusters depending on docker images often take 5+ minutes to launch. Ouch. In Coiled you can use a new system for creating software environments on the fly using only mamba instead. We’re seeing start times 3x faster, or about 1–2 minutes.
This article goes into the challenges we (Coiled) faced, the solution we chose, and the performance impacts of that choice.
https://medium.com/coiled-hq/just-in-time-python-environments-ade108ec67b6
/r/Python
https://redd.it/12jojj7
TL;DR Docker is a great tool for managing software environments, but we found that it’s just too slow, especially for exploratory data workflows where users change their Python environments frequently.
We find that clusters depending on docker images often take 5+ minutes to launch. Ouch. In Coiled you can use a new system for creating software environments on the fly using only mamba instead. We’re seeing start times 3x faster, or about 1–2 minutes.
This article goes into the challenges we (Coiled) faced, the solution we chose, and the performance impacts of that choice.
https://medium.com/coiled-hq/just-in-time-python-environments-ade108ec67b6
/r/Python
https://redd.it/12jojj7
Medium
Just in time Python environments
Authors: Samantha Hughes and Sarah Johnson
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/12k4o7f
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/12k4o7f
Reddit
r/Python on Reddit: Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Posted by u/Im__Joseph - 4 votes and no comments
A Python package written in Rust for email verification without sending any emails.
Hello everyone, I just released this package that allows for email verification without actually sending any emails.
check it out here.
https://github.com/Mng-dev-ai/pyrustify
/r/Python
https://redd.it/12k5uba
Hello everyone, I just released this package that allows for email verification without actually sending any emails.
check it out here.
https://github.com/Mng-dev-ai/pyrustify
/r/Python
https://redd.it/12k5uba
GitHub
GitHub - Mng-dev-ai/pyrustify: A Python package written in Rust for email verification without sending any emails.
A Python package written in Rust for email verification without sending any emails. - GitHub - Mng-dev-ai/pyrustify: A Python package written in Rust for email verification without sending any emails.
Large-Scale Datamining & Built a Reddit Bot for r/boardgames to reply with BGG Links
Disclaimer: I am in no way affiliated with BoardGameGeek aside from being a user of the site.
I was inspired by u/MTGCardFetcher who replies on the Magic: The Gathering subreddits with links to the card images and text when called with a card name in double brackets. I've often found myself replying to a thread on r/boardgames with the name of a game (or, more appropriately, reading others' suggestions) without a link, making it slightly more annoying to look the game up.
As a result, I built two Python scripts - one to discover the game pages on BoardGameGeek.com and extract the game name and year and another to serve as the reddit bot.
I'm used to crawling sites using Screaming Frog and had fully intended to use it to pull the game names and other details out, but it turns out BoardGameGeek uses a degree of client-side rendering, making a non-rendered request fall short of extracting data. My solution was to use Selenium to hit the pages, wait for
/r/Python
https://redd.it/12k5yfb
Disclaimer: I am in no way affiliated with BoardGameGeek aside from being a user of the site.
I was inspired by u/MTGCardFetcher who replies on the Magic: The Gathering subreddits with links to the card images and text when called with a card name in double brackets. I've often found myself replying to a thread on r/boardgames with the name of a game (or, more appropriately, reading others' suggestions) without a link, making it slightly more annoying to look the game up.
As a result, I built two Python scripts - one to discover the game pages on BoardGameGeek.com and extract the game name and year and another to serve as the reddit bot.
I'm used to crawling sites using Screaming Frog and had fully intended to use it to pull the game names and other details out, but it turns out BoardGameGeek uses a degree of client-side rendering, making a non-rendered request fall short of extracting data. My solution was to use Selenium to hit the pages, wait for
//h1/a to be discoverable, then extract the text. At the time of writing this, there are just over 174,000 board game and board game expansion pages on BoardGameGeek. It took several full days/r/Python
https://redd.it/12k5yfb
Boardgamegeek
The definitive source for board game and card game content. Find millions of ratings, reviews, videos, photos, and more from our community of experts.
(Help Needed) Trying to make DateField Input set to date
Hi all,
I've been trying to have a datepicker for my DateField but it rendered as text instead of date. I understand from the Django documentation that by default the input is text, here is my code trying to change the input to date. (I am using crispy forms)
​
https://preview.redd.it/qhsvozgk5lta1.png?width=813&format=png&auto=webp&v=enabled&s=dc9decb66919fd7e334d416d6685d2ced3ea0a18
Inspect browser
<input type="text" name="close_date" class="dateinput form-control" id="id_close_date">
​
#Model
class Tender(models.Model):
owner = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=255)
description = models.TextField()
issue_date = models.DateField(default=timezone.now)
close_date = models.DateField(blank=True)
proposal_files = models.FileField(
verbose_name="Tender Proposal ", upload_to="tender_docs"
)
category = models.ForeignKey(
Category,
on_delete=models.SET_NULL,
blank=True,
/r/django
https://redd.it/12kczuu
Hi all,
I've been trying to have a datepicker for my DateField but it rendered as text instead of date. I understand from the Django documentation that by default the input is text, here is my code trying to change the input to date. (I am using crispy forms)
​
https://preview.redd.it/qhsvozgk5lta1.png?width=813&format=png&auto=webp&v=enabled&s=dc9decb66919fd7e334d416d6685d2ced3ea0a18
Inspect browser
<input type="text" name="close_date" class="dateinput form-control" id="id_close_date">
​
#Model
class Tender(models.Model):
owner = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=255)
description = models.TextField()
issue_date = models.DateField(default=timezone.now)
close_date = models.DateField(blank=True)
proposal_files = models.FileField(
verbose_name="Tender Proposal ", upload_to="tender_docs"
)
category = models.ForeignKey(
Category,
on_delete=models.SET_NULL,
blank=True,
/r/django
https://redd.it/12kczuu
PokéSearch: FastAPI + React (Open Source)
# Context
Hey everyone, I'm new to the Pokémon games and currently I'm playing the latest one. When playing online, you have to to pick your team based on your enemy's team. However, it's difficult for me because I'm not familiar with most of the Pokémon types and you can't see their names to look them up.
# PokéSearch
That's why I created PokéSearch, a web app that allows you to search for a Pokémon based on characteristics. For example, if you search for the word "green" all green Pokémon will appear (other search examples: robot, red, legendary, eevee, water, fire).
Live web app:
https://pokesearch.help/
# Technical Details
The API is made with FastAPI and the frontend with React + Tailwind.
The API is in charge of providing a list of all the Pokémon given a region, along with their respective types, resistances, and weaknesses. The frontend then filters the list based on user input.
Backend repo:
https://github.com/jalvaradosegura/PokeSearchAPI
Frontend repo:
https://github.com/jalvaradosegura/PokeSearch
/r/Python
https://redd.it/12k4qhe
# Context
Hey everyone, I'm new to the Pokémon games and currently I'm playing the latest one. When playing online, you have to to pick your team based on your enemy's team. However, it's difficult for me because I'm not familiar with most of the Pokémon types and you can't see their names to look them up.
# PokéSearch
That's why I created PokéSearch, a web app that allows you to search for a Pokémon based on characteristics. For example, if you search for the word "green" all green Pokémon will appear (other search examples: robot, red, legendary, eevee, water, fire).
Live web app:
https://pokesearch.help/
# Technical Details
The API is made with FastAPI and the frontend with React + Tailwind.
The API is in charge of providing a list of all the Pokémon given a region, along with their respective types, resistances, and weaknesses. The frontend then filters the list based on user input.
Backend repo:
https://github.com/jalvaradosegura/PokeSearchAPI
Frontend repo:
https://github.com/jalvaradosegura/PokeSearch
/r/Python
https://redd.it/12k4qhe
pokesearch.help
PokéSearch
Search for a Pokémon by name, type or its characteristics
I recorded a Python Data Analysis project (pandas - numpy - matplotlib - seaborn) video in tutorial type and uploaded it on Youtube
Hello, I made a data analysis project from scratch using Python and uploaded it to youtube with the explanations of outputs and codes. Also I provided the Data Set so everyone can run the codes for exercising. I am leaving the link, have a nice day
https://www.youtube.com/watch?v=Za8dnxN3Vc8
/r/Python
https://redd.it/12kg5mm
Hello, I made a data analysis project from scratch using Python and uploaded it to youtube with the explanations of outputs and codes. Also I provided the Data Set so everyone can run the codes for exercising. I am leaving the link, have a nice day
https://www.youtube.com/watch?v=Za8dnxN3Vc8
/r/Python
https://redd.it/12kg5mm
YouTube
Python Data Analysis Project - Phone Prices
Unlock the secrets of phone price data with this hands-on Python data analysis project. Dive deep into real-world datasets and learn how to uncover valuable insights about smartphone pricing trends. This tutorial covers essential data manipulation techniques…
I made an advanced math flash card game in python using tkinter!
[Gameplay](https://i.redd.it/n8wmei9opjta1.gif)
**Features**
* Score and Highscore System
* Timed Flash Card Gameplay
* Dynamic Settings for *Time*, *Difficulty*, and *Operation*
* Game Log System to Track Your Progress
* User Management System
* User Data Encryption to Deter Tampering and Cheating
* Fully Implemented Sound Effects
* User Grading System to Track Overall Performance
* Anti Problem Duplication System
​
[User Screen](https://i.redd.it/wdom9jnppjta1.gif)
[Settings Screen](https://i.redd.it/mgwhj3hqpjta1.gif)
[Logging Games](https://i.redd.it/q2qm08brpjta1.gif)
/r/Python
https://redd.it/12k5djw
[Gameplay](https://i.redd.it/n8wmei9opjta1.gif)
**Features**
* Score and Highscore System
* Timed Flash Card Gameplay
* Dynamic Settings for *Time*, *Difficulty*, and *Operation*
* Game Log System to Track Your Progress
* User Management System
* User Data Encryption to Deter Tampering and Cheating
* Fully Implemented Sound Effects
* User Grading System to Track Overall Performance
* Anti Problem Duplication System
​
[User Screen](https://i.redd.it/wdom9jnppjta1.gif)
[Settings Screen](https://i.redd.it/mgwhj3hqpjta1.gif)
[Logging Games](https://i.redd.it/q2qm08brpjta1.gif)
/r/Python
https://redd.it/12k5djw
Django Form Field - cant apply Tailwind css class
Hello Team,
for some reason i cant apply Tailwindcss styling to form inputs.
Forms.py
class BasicForm(forms.ModelForm):
class Meta:
model = CustomUser
fields = ('first_name',)
labels = {
'first_name': 'First Name'
}
widgets = {
'first_name': forms.widgets.TextInput(attrs={'class': 'bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white',
/r/django
https://redd.it/12kg9rv
Hello Team,
for some reason i cant apply Tailwindcss styling to form inputs.
Forms.py
class BasicForm(forms.ModelForm):
class Meta:
model = CustomUser
fields = ('first_name',)
labels = {
'first_name': 'First Name'
}
widgets = {
'first_name': forms.widgets.TextInput(attrs={'class': 'bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white',
/r/django
https://redd.it/12kg9rv
Reddit
r/django on Reddit: Django Form Field - cant apply Tailwind css class
Posted by u/BoringInvestigator1 - 5 votes and 5 comments
Federated-Recommendation-Neural-Collaborative-Filtering
Neural Collaborative Filtering (NCF) is a paper published in 2017. It is a common methodology for creating a recommendation system. However, recommendation data might not want to be shared beyond your own device. Therefore, last year, I looked into applying this ML algorithm in a Federated Learning setting, where your data stays on your own devices.
AmanPriyanshu/Federated-Recommendation-Neural-Collaborative-Filtering (github.com)
/r/Python
https://redd.it/12ko8f5
Neural Collaborative Filtering (NCF) is a paper published in 2017. It is a common methodology for creating a recommendation system. However, recommendation data might not want to be shared beyond your own device. Therefore, last year, I looked into applying this ML algorithm in a Federated Learning setting, where your data stays on your own devices.
AmanPriyanshu/Federated-Recommendation-Neural-Collaborative-Filtering (github.com)
/r/Python
https://redd.it/12ko8f5
GitHub
GitHub - AmanPriyanshu/Federated-Recommendation-Neural-Collaborative-Filtering: Neural Collaborative Filtering (NCF) is a paper…
Neural Collaborative Filtering (NCF) is a paper published by National University of Singapore, Columbia University, Shandong University, and Texas A&M University in 2017. It utilizes the fl...
My friend and I created a learning platform to teach kids how to problem solve and create cool projects with Python. We made it incredibly fun, since it's something we wish we had when we were younger.
You can check it out here: codera.app
/r/Python
https://redd.it/12kphmi
You can check it out here: codera.app
/r/Python
https://redd.it/12kphmi
codera.app
Codera | The Next Era of Coding Education
Introducing Codera: Learn how to code in a fun and engaging way as you battle aliens and save the world from an astroid impact. Learning has never been more fun.
My first Django project
Hello everyone, I'm 17 years old and have been learning Python for 6 months, and I've been studying Django for the last 2 months. During this time, I completed my first Django pet project. I'm interested in your opinion about this project. How does it compare to the average statistical project, and what improvements or additions could be made, or vice versa, what should be removed? Overall, I would appreciate hearing your thoughts on it.
Project: https://github.com/FCTL3314/SpecialRecipe
/r/django
https://redd.it/12kpvrp
Hello everyone, I'm 17 years old and have been learning Python for 6 months, and I've been studying Django for the last 2 months. During this time, I completed my first Django pet project. I'm interested in your opinion about this project. How does it compare to the average statistical project, and what improvements or additions could be made, or vice versa, what should be removed? Overall, I would appreciate hearing your thoughts on it.
Project: https://github.com/FCTL3314/SpecialRecipe
/r/django
https://redd.it/12kpvrp
GitHub
GitHub - FCTL3314/SpecialRecipe: Django-based web application created for educational purposes that allows to find and optionally…
Django-based web application created for educational purposes that allows to find and optionally bookmark recipes. - FCTL3314/SpecialRecipe
codecov gone from PyPi
The codecov package (all versions of it) seems to have disappeared from PyPi
https://pypi.org/project/codecov/ <-- 404 :(
I'm assuming this breaks a ton more than just my project (https://github.com/locustio/locust/actions/runs/4687344723/jobs/8315803536)
Does anybody know anything?
/r/Python
https://redd.it/12kukhk
The codecov package (all versions of it) seems to have disappeared from PyPi
https://pypi.org/project/codecov/ <-- 404 :(
I'm assuming this breaks a ton more than just my project (https://github.com/locustio/locust/actions/runs/4687344723/jobs/8315803536)
Does anybody know anything?
/r/Python
https://redd.it/12kukhk
Help on selecting the sum of a specific value
so this is a line of code form a program I'm working on to handle suers purchases. This code mostly works and adds the values to the proper database in the end as this is to compile all the purchases and sum them together based on each category. However for some reason when this line of code is executed it only adds one number to the system instead of summing them all, any help would be much appreciated. Thank you
/r/flask
https://redd.it/12kwt4n
category.current = db.session.query(db.func.sum(`db.select`(Expense.amount).filter_by(category_id=category_id).order_by(Expense.amount))).scalar()so this is a line of code form a program I'm working on to handle suers purchases. This code mostly works and adds the values to the proper database in the end as this is to compile all the purchases and sum them together based on each category. However for some reason when this line of code is executed it only adds one number to the system instead of summing them all, any help would be much appreciated. Thank you
/r/flask
https://redd.it/12kwt4n
Python quiz game to Flask web app
Hello!
So, I created a python quiz game which is currently running all text based with questions asked, alternatives (1-4) presented and a user input (1-4) checking if the answers are correct.
Basically the questions are presented (one at a time) like this:
Who had a hit with 'St. Elmo's Fire (Man In Motion)' in 1985?
1 : The S.O.S. Band
2 : John Parr
3 : Neil Diamond
4 : New Kids On The Block
Please select 1, 2, 3 or 4:
If the answer is correct the user gains a point. If the user gets a certain amount of points new and harder questions will be available.
I would love to create a Flask web app running this concept but with clickable buttons. Something like this:
​
https://preview.redd.it/38y6entg3nta1.jpg?width=800&format=pjpg&auto=webp&v=enabled&s=2342cd98da42e71fcca32627285a71b954e1e684
I guess this would require me to use something like Javascript or similar. That is my guess as I am new to this...
So I guess my question is: Would learning javascript be the way to go? Or are there other (better?) options available?
I know Python and
/r/flask
https://redd.it/12kmb2g
Hello!
So, I created a python quiz game which is currently running all text based with questions asked, alternatives (1-4) presented and a user input (1-4) checking if the answers are correct.
Basically the questions are presented (one at a time) like this:
Who had a hit with 'St. Elmo's Fire (Man In Motion)' in 1985?
1 : The S.O.S. Band
2 : John Parr
3 : Neil Diamond
4 : New Kids On The Block
Please select 1, 2, 3 or 4:
If the answer is correct the user gains a point. If the user gets a certain amount of points new and harder questions will be available.
I would love to create a Flask web app running this concept but with clickable buttons. Something like this:
​
https://preview.redd.it/38y6entg3nta1.jpg?width=800&format=pjpg&auto=webp&v=enabled&s=2342cd98da42e71fcca32627285a71b954e1e684
I guess this would require me to use something like Javascript or similar. That is my guess as I am new to this...
So I guess my question is: Would learning javascript be the way to go? Or are there other (better?) options available?
I know Python and
/r/flask
https://redd.it/12kmb2g
Python File manager
Hi, I recently created a post about a file manager in it's early stages, and got some feedback that I should create a GUI so Ive created a GUI version of the file manager using Tkinter and I've left the command line version too. If anyone wanted to check it out and provide feedback on it I would appreciate it 😃. Here is the link to my github repository:
https://github.com/Tristan296/FileManager
/r/Python
https://redd.it/12l99zp
Hi, I recently created a post about a file manager in it's early stages, and got some feedback that I should create a GUI so Ive created a GUI version of the file manager using Tkinter and I've left the command line version too. If anyone wanted to check it out and provide feedback on it I would appreciate it 😃. Here is the link to my github repository:
https://github.com/Tristan296/FileManager
/r/Python
https://redd.it/12l99zp
GitHub
GitHub - Tristan296/FileManager: File-Manager | GUI Desktop Application made in Python using PySimpleGUI
File-Manager | GUI Desktop Application made in Python using PySimpleGUI - GitHub - Tristan296/FileManager: File-Manager | GUI Desktop Application made in Python using PySimpleGUI
openaipricinglogger: A Python package to easily log your OpenAI API costs and timestamps
Hey everyone! Ive created a Python package called openai_pricing_logger that helps you log OpenAI API costs and timestamps. It's designed to help you keep track of API usage and related costs, providing an easy way to monitor and analyze the expenses.
​
GitHub repo: https://github.com/yachty66/openai\_pricing\_logger
Python package: https://pypi.org/project/openai-pricing-logger/0.0.2/
​
Key features:
\- Automatically logs API call costs and timestamps
\- Easy integration with OpenAI's GPT-3.5-turbo and GPT-4 models
\- Lightweight and easy to use
​
Thought this might be helpful for anyone working with OpenAI's API. Enjoy!
/r/Python
https://redd.it/12lec2s
Hey everyone! Ive created a Python package called openai_pricing_logger that helps you log OpenAI API costs and timestamps. It's designed to help you keep track of API usage and related costs, providing an easy way to monitor and analyze the expenses.
​
GitHub repo: https://github.com/yachty66/openai\_pricing\_logger
Python package: https://pypi.org/project/openai-pricing-logger/0.0.2/
​
Key features:
\- Automatically logs API call costs and timestamps
\- Easy integration with OpenAI's GPT-3.5-turbo and GPT-4 models
\- Lightweight and easy to use
​
Thought this might be helpful for anyone working with OpenAI's API. Enjoy!
/r/Python
https://redd.it/12lec2s
GitHub
GitHub - yachty66/openai_pricing_logger: 🚀 openai_pricing_logger: Track & log OpenAI API costs with ease. A Python package for…
🚀 openai_pricing_logger: Track & log OpenAI API costs with ease. A Python package for monitoring GPT-3.5-turbo & GPT-4 usage costs. Lightweight, automatic cost logging. Ideal for de...
Is there any API or anything else that can help extract flight information from a ticket?
So far I tried using OCR.Space to feed the image, extract data from the ticket and try to work with it but it’s not so accurate. I was wondering if there are other way of doing so perhaps an API where you enter flight ticket number and gets you all the information or maybe another way?
/r/djangolearning
https://redd.it/12kahgo
So far I tried using OCR.Space to feed the image, extract data from the ticket and try to work with it but it’s not so accurate. I was wondering if there are other way of doing so perhaps an API where you enter flight ticket number and gets you all the information or maybe another way?
/r/djangolearning
https://redd.it/12kahgo
Reddit
r/djangolearning on Reddit: Is there any API or anything else that can help extract flight information from a ticket?
Posted by u/sami-tech - 5 votes and 1 comment
Bing AI made up a package that doesn't, but maybe should, exists and even gave examples of how to use it. Read/Write session splitter for sqlalchemy.
I notched today that my skype has a Bing chatbot built into it now, so I thought I'd see what it had to say about what I'm working on.
https://preview.redd.it/jyepb53opqta1.png?width=1030&format=png&auto=webp&v=enabled&s=9c9a2d68dbbd41a7862e21138f275f07128c6348
As far as I could find, there is no package named sqlalchemy-splitter, or even something that works similar to the way they describe it.
https://preview.redd.it/jzbz3ii7qqta1.png?width=1030&format=png&auto=webp&v=enabled&s=54c2b88f97a79516885086864b055ed92a7f893d
It seems pretty sure of itself. After thinking about it though It seems like a package like this would probably have to do a lot of extra work in order to manage both sessions and move objects between them. Maybe its not as difficult as I'm thinking though?
Either way, when I called it out it immediately back peddled.
​
https://preview.redd.it/u5ugk60gtqta1.png?width=1026&format=png&auto=webp&v=enabled&s=4c6110cdf68ee3edfbc52db549e2ca4b7d5864fe
/r/Python
https://redd.it/12lcp6j
I notched today that my skype has a Bing chatbot built into it now, so I thought I'd see what it had to say about what I'm working on.
https://preview.redd.it/jyepb53opqta1.png?width=1030&format=png&auto=webp&v=enabled&s=9c9a2d68dbbd41a7862e21138f275f07128c6348
As far as I could find, there is no package named sqlalchemy-splitter, or even something that works similar to the way they describe it.
https://preview.redd.it/jzbz3ii7qqta1.png?width=1030&format=png&auto=webp&v=enabled&s=54c2b88f97a79516885086864b055ed92a7f893d
It seems pretty sure of itself. After thinking about it though It seems like a package like this would probably have to do a lot of extra work in order to manage both sessions and move objects between them. Maybe its not as difficult as I'm thinking though?
Either way, when I called it out it immediately back peddled.
​
https://preview.redd.it/u5ugk60gtqta1.png?width=1026&format=png&auto=webp&v=enabled&s=4c6110cdf68ee3edfbc52db549e2ca4b7d5864fe
/r/Python
https://redd.it/12lcp6j