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
Kids Python 101 learning materials

Hi Reddit folks,

I have developed free learning materials for young kids (targeting 8+ kids) to learn Python from scratch on https://kidspython.com lately. I put lots of efforts on simplifying the course materials, providing plenty of good examples and sufficient exercises for kids to practice coding. The Web site even provides a Python Playground that supports visualization mode for kids to trace their code execution.

I hope the information is helpful. Please give it a try, and subscribe to our YouTube channel for watching Kids Python 101 videos.

/r/Python
https://redd.it/leh4eg
Are Django Templates not enough?

I am learning Django and based on the resources I've covered so far I know that Django can handle frontend with the templates. But most often I read about people preferring Django + a JS frontend framework.

What are some of the limitations of templates that make people prefer working with React, Vue, or Angular?

/r/django
https://redd.it/levqcu
Better ways to use a csv file in Django

Hello everyone,

I am building a web app in django that relies on a deep learning model. In my backend, I have used pandas to store information about my dataset (my dataset consists of images, the CSV files contain columns such as name, path, and an embedding for the images), and I am using the embedding of these images in Django. However, I would like to know if there is a better way than parsing a CSV file to obtain my information.

​

Thanks in advance!

/r/django
https://redd.it/lev2ri
Django Rest Framework

Using Django Rest framework, ModelSerializer to be exact, I am able to serialize my Django models. However, when I send a get request using postman my data does not return as Json, but as HTML, I’m not sure exactly what I’m missing. Any suggestions?

/r/django
https://redd.it/lf053k
This media is not supported in your browser
VIEW IN TELEGRAM
[D] Convolution Neural Network Visualization - Made with Unity 3D and lots of Code / source - stefsietz (IG)

https://redd.it/leq2kf
@pythondaily
Monday Daily Thread: Project ideas!

Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code!

/r/Python
https://redd.it/lez6jg
Short Django Reset Password Tutorial

I published a short video earlier today based on a few requests. People have been asking for a tutorial on how to create reset password functionality with Django.

I use the built in functionality from Django, but I override the templates.

If you want to check it out, you can find it here:
https://www.youtube.com/watch?v=ZR8Ymkx30p0

I would love to hear what you think about the content and quality :-)

/r/djangolearning
https://redd.it/lf7d4e
Best ways to increase flask security?

This weekend, I got my first rest api running on heroku. It was a simple POST-GET api for moving data I had stored in a database to a simulation of a frontend interface.

My problem is that the domain branch is incredibly guessable, and it doesn’t take advantage of the random api key I have logged to every user in my database. I haven’t been able to research authentication methods built into flask so any resources on that would be insanely helpful.

My app is built in a way that flask moves json data around, but I want to do it in a way that the user never has to see, with security I don’t have to constantly monitor.

Any and all help is appreciated. Looking for a general-type view of authent on flask.

/r/flask
https://redd.it/lf2w4f
Bitcoin Clipper Malware made in Python




https://i.redd.it/rq0nklfcg6g61.gif

Hello everyone! I made bitcoin clipper malware in Python for educational purposes only. If it finds a bitcoin wallet address in your clipboard, it changes it to another bitcoin wallet address. Once the .py file is run, it deletes itself and replicates to the user's %appdata% and hides there. Then it adds itself to the startup registry so that it can run every time the user turns on their pc.

This is a project I created to make it easier for malware analysts or ordinary users to understand how Bitcoin clippers work and can be used for analysis, research, reverse engineering, or review.
(btw I made this for Windows only)

Github Link: https://github.com/NightfallGT/BTC-Clipper

/r/Python
https://redd.it/lf3kuo
Machine Learning Library by 14-year old : SeaLion

Recently as a 14-year old in high school I've created a machine learning library, SeaLion, from scratch. It took around 3 months of programming, and is 5k+ lines and uses Python and Cython. The library is very well maintained (80 releases in the last month.)

You can install this library with pip. It's on PyPI : https://pypi.org/project/sealion/ and GitHub : https://github.com/anish-lakkapragada/SeaLion

A problem I saw with the current ml libraries and tutorials was that they didn't go over too much into the theory of these libraries - more so on just the syntax and calling the functions. In the summer of 2020 I could easily build a CNN or RNN in tensorflow, but I didn't understand it - hence I decided to start learning from scratch.

SeaLion is an extremely comprehensive library that spans from basic Linear Regression up to modern approaches like deep neural networks. It mostly deals with regression, unsupervised clustering, bayesian models, dimensionality reduction, neural networks, etc. If you've never heard some of those algorithms before (or just are a complete beginner to ML), you are in the right place!! SeaLion has plenty of code examples to help guide you through each step of the way!

The examples

/r/Python
https://redd.it/lf59bw
hot

TILRAY INC2,900$28.1622+$2.4422+$2.4422

/r/IPython
https://redd.it/lfew2j
Ipython in the cloud?

Does anyone know of any ipython online websites that support sympy, scipy and matplotlib that can be used from tablet? I have found basic learn python websites but nothing advanced enough to what I want. Would even consider subscription service. Thanks.

/r/IPython
https://redd.it/lf3s1x
Some advice: will my setup be production ready?

Hi,

I'm a software developer of 1.5 years. I've just deployed my first django API for my small company solo into staging, and was looking for advice from others on how to make sure the app is absolutely safe and secure. The company is very small (6 people) and so I have to wear many hats. This is the first thing I've been solely responsible for, so I would like to make it through successfully.

It's a Django 3.0 application that is based on a Cookie Cutter template (that has three settings levels) that uses MongoDB (successfully) that's hosted on EC2 that at max should take about 500 requests a day for each consumer (only other servers). We expect the API right now only to have 1 consumer, and a few others on the way. I've set up HTTPS in Apache with LetsEncrypt. The database in MongoDB should **not** be externally visible, only available to localhost.

I've also set up Sentry for logging (which is just the best...), and I need to speak with my boss about purchasing the company plan since right now it is on the free version. I have EC2's dashboard for monitoring.

I know i need to do the following

/r/django
https://redd.it/lfd1l3
Can Jupyter Notebook be used with files saved on cloud, or computer only?

Do my Jupyter Notebook files have to be saved on my computer hard drive? Can they be saved on a cloud instead?

/r/JupyterNotebooks
https://redd.it/lfn7b8
Lazy load imports for jupyter notebooks

Usually, I have a ton of imports at the top of my notebooks which slows down my startup time. I created a dead-simple (less than 50 lines of code) jupyter extension that enables lazy imports, which only imports packages as needed. This enables rapid bootups and a faster workflow!

Check it out here: https://github.com/jungerm2/JupyterLazyLoader

Let me know what you think! Any help/contributions are welcome!

/r/IPython
https://redd.it/lezphk
D Low data regime, what are your moves?

Hi, it's more than a month now since i've started working on a Project.
Basically it can be viewed as a medical image classification task.

The main problem is the dataset size, actually its a huuge problem, (<100). I've tried with GANs, TL, some sort of analitycal ROI extraction to feed the net.

But onestly right now I'm running out of ideas.
What do you tipically do in these situations? What was the size of the smallest dataset you've been able to achieve some valid results?
Any advice on papers to read?

Thanks.

/r/MachineLearning
https://redd.it/lfpw1w
Tuesday Daily Thread: Advanced questions

Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.

If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.

This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.

/r/Python
https://redd.it/lfpln1