Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
I feel so valued

Today my coworker asked me to help him with something. Basically, we had a bunch of gift cards that were supposed to be for employee giveaways, but they were all about to expire. We had about 100 of them. These gift cards were only redeemable as a guest user so we couldn't just log in to the website and load them all into one user. We had to perform a separate order for every single gift card. The worst part is none of the form data was saving in my browser either, so I had to fill in the shipping information manually. The whole order process took 5 minutes per card. If done manually, that is..

​

I've never used selenium before but I figured this was literally the perfect task, since the orders were all the same save for the gift card codes. I told my coworker to just help me type out all the codes into a text file and told him I would take it from there. 20 minutes later I had written up a selenium script that ran through the list of codes and performed the orders. I let

/r/Python
https://redd.it/cemtlr
Is the Kite AI Autocomplete for Python safe to use ? The privacy of my code is endangered ?

Hello ! I recently have a look back to a tool that I used in the past, one year ago. It was a commercial software, but had some free usage too.

If there is someone that can respond to my questions please do.

Some other questions that I have:

What made Kite to make its product free ?

/r/Python
https://redd.it/cepj00
Struggling to find and answer online, where is the best place to execute code when a model is created in Django Rest Framework?

I need to make some requests to third party APIs when an object is created via a POST request. There's so many different places I can override, whether it's in the model itself or in the DRF serializer, where is the best place to make these API calls? They must succeed or else I don't want to save this object in the database.

Hopefully this is clear.

/r/django
https://redd.it/cep279
AMA: We are Noam Brown and Tuomas Sandholm, creators of the Carnegie Mellon / Facebook multiplayer poker bot Pluribus. We're also joined by a few of the pros Pluribus played against. Ask us anything!

Hi all! We are [Noam Brown](http://www.cs.cmu.edu/~noamb/) and Professor [Tuomas Sandholm](http://www.cs.cmu.edu/~sandholm/). We recently developed the poker AI [Pluribus](https://science.sciencemag.org/content/early/2019/07/10/science.aay2400), which has proven capable of defeating elite human professionals in six-player no-limit Texas hold'em poker, the most widely-played poker format in the world. Poker was a long-standing challenge problem for AI due to the importance of hidden information, and Pluribus is the first AI breakthrough on a major benchmark game that has more than two players or two teams. Pluribus was trained using the equivalent of less than $150 worth of compute and runs in real time on 2 CPUs. You can read our blog post on this result [here](https://ai.facebook.com/blog/pluribus-first-ai-to-beat-pros-in-6-player-poker/).

We are happy to answer your questions about Pluribus, the experiment, AI, imperfect-information games, Carnegie Mellon, Facebook AI Research, or any other questions you might have! A few of the pros Pluribus played against may also jump in if anyone has questions about what it's like playing against the bot, participating in the experiment, or playing professional poker.

We are opening this thread to questions now and will be here starting at 10AM ET on Friday, July 19th to answer them.

/r/MachineLearning
https://redd.it/ceece3
CS on Python3 by the Moscow Institute of Physics and Technology

Unsure if this will be helpful for someone, but you can use google translate and learn a bit and interesting stuff from the (Moscow Institute of Physics and Technology) [http://judge.mipt.ru/mipt\_cs\_on\_python3/](http://judge.mipt.ru/mipt_cs_on_python3/)

Seems they have a lot of information on this site as well as very nice lectures on python algorithms and such on youtube, you can use a subtitle translator on youtube to translate their videos, sadly they don't have this fully in the English language :( but it's still cool IMO.

​

Cheers ;)

/r/Python
https://redd.it/ceq64n
Where is css for admin pages?

Hi there, could someone point me at the css for the admin pages so I can make sure I don't change them in my own css by unwittingly using django class and id naming please?

/r/djangolearning
https://redd.it/cephv6
Python Machine Learning

2 months ago, I created and posted videos from my Python Machine Learning basics course on the this subreddit. So far they have been received very well! But as some videos were never posted I decided to include them all in this updated post for people in need of the new videos or for those who where not around when the first ones where posted. Feel free to give some feedback on my work. (All Implementation is done using Python 3)

* **Part 1 - Machine Learning For Beginners - Basics**

[https://youtu.be/E3l\_aeGjkeI](https://youtu.be/E3l_aeGjkeI)

* **Part 2 - MI environment**

[https://youtu.be/HqyrqxyDwPU](https://youtu.be/HqyrqxyDwPU)

* **Part 3 - Python Decision Tree (Theory)**

[https://youtu.be/8isUCINSmys](https://youtu.be/8isUCINSmys)

* **Part 4 - Python Decision Tree (Coding)**

[https://youtu.be/24mxQzd3EsU](https://youtu.be/24mxQzd3EsU)

* **Part 5 - Python Decision Tree (Graphiviz)**

[https://youtu.be/aVEfKRfWjHc](https://youtu.be/aVEfKRfWjHc)

* **Part 6 - Knn(Friend Recommender)**

[https://youtu.be/LK0zgA6Mr6k](https://youtu.be/LK0zgA6Mr6k)

* **Part 7- 5-Fold Cross Validation**

[https://youtu.be/Zx5cz8pXnOM](https://youtu.be/Zx5cz8pXnOM)

/r/Python
https://redd.it/cew4iw
Python script to install modules

I made a small python script which can parse other python scripts, and install modules/packages declared in an import or a from.


I made this because it's annoying to be receiving a script/file to work on, and not being provided a requirements.txt.


This install script can also intake multiple script inputs, and download specific versions of packages.


\*the specific version part is not convenient at all, but it's something\*

​

I'm just trying to make anything I can, to continue improving my python and developing in general. Hopefully this helps someone.

​

[https://github.com/alex067/Python-Module-Installer-Script](https://github.com/alex067/Python-Module-Installer-Script)

/r/Python
https://redd.it/cf0kw8
So many libraries, so little time.

Anyone else have that "I need to learn and know everything now!" syndrome? I listed like 15 libraries and a handful of other technologies I found being requested on Indeed. It was more or less a way to compensate for the inevitable imposter syndrome. Has anyone gotten hired for jobs not knowing the "required proficiencies"?



I've only been coding Python for a year and feel like I have a pretty good grasp on the language. That is, until I look for jobs. I have a feeling I'm not the only one thinking to just learn what I need to right now and figure the rest will be taught to me at whatever job I'm able to acquire.

/r/Python
https://redd.it/ceycit
How does a Flask app serve multiple users/requests at once?

How does a Flask/Django app which is synchronous and single threaded serve multiple users at once?

Im learning a bit of JS off a playlist on Youtube and a video discusses async programming and its advantages in context of I/O. This made me wonder: are there certain kinds of web applications which are better suited to being developed using Node.js than a Python framework? Since a lot of the general web apps(read CRUD) need database access, would all such apps be better off being written in Node ?

/r/flask
https://redd.it/cesmvt