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
New Jupyter Notebook competition

Are you passionate about coding, data science or Earth observation?

https://preview.redd.it/41ijb6p04vv81.png?width=1920&format=png&auto=webp&s=bb0ae5e70d7d1c427e0409abd224a2eda7ddc954

We're looking for bright-minded people from around the world to showcase their skills and develop new Jupyter Notebooks using Copernicus data!

Sound interesting? Find out more here: https://www.eumetsat.int/science-blog/new-jupyter-notebook-competition

/r/JupyterNotebooks
https://redd.it/ucasxr
How to Version Control your Django Project

Hey All,

I wrote a small guide for how I Version Control my Django Projects. If you are interested I would love to get your feedback. https://builtwithdjango.com/blog/django-version-control

It is aimed at the people who are just starting out.

TL;DR of the post is to use a good .gitignore 😃

/r/djangolearning
https://redd.it/ud4pkg
Django horizontal scaling with Kubernetes and Docker on AWS

Hello guys,

I'd like to horizontally scale my Django ecommerce app with Kubernetes and Docker on AWS.

What's the best tutorial available for that? is there any video tutorial that shows you how to scale it properly? I'll be using Redis cache as well.

/r/django
https://redd.it/udd91p
DRF - options for adding/deleting from ManyToMany field

I have a Django/drf backend and wanted opinions on how to handle updating ManyToMany relationships/fields.

For ex let’s say Users are able to favorite many homes on an Airbnb type app. From a single home/listing page would you request all the favorites and then if the user favorited/unfavorited that listing send back the full list of new favorites in the req? Deleting all the current favorites and replacing with this new favorites data? Or some other way? I guess wondering what the different options are and if there’s a way that’s easiest with Django/drf

/r/django
https://redd.it/udmham
Friday Daily Thread: Free chat Friday! Daily Thread

Use this thread to talk about anything Python related! Questions, news, projects and any relevant discussion around Python is permitted!

/r/Python
https://redd.it/ue8us0
What would your Reddit Upvoting Model look like?

I think it is easy to see that Users <-> Posts would be a many-to-many with Comments in between, but how would you deal with keeping track of Upvotes whilst retaining User information?

Was just browsing when the thought came to my mind and I can't come up with a good scalable solution...

/r/django
https://redd.it/uebgfj
Once VueJS mastered, does using VueJS with Django require more time to create sites from scratch compared to solutions like Django with HTMX

Hey everyone,

I work in finance as an analyst but i also happen to be involved in projects where i deploy web apps. Last one i deployed was using this stack : Django + MS SERVER (my company's DB server) + HTMX + Vanilla JS + HTML/CSS.

However, i would like to be more comfortable with JS. I mess around with JS Vanilla and HTMX which helped me make my web app SPA. But i like being close to the industry standards because maybe one day i will develop my own app for a personal business project, or i'd want to become a full time developer and move from finance.

The dilemma is that at my work, i don't have the time of being a real full stack dev. But i also hate libraries like Dash etc and the inflexibility they have. I started playing around with dash and i didn't like writing HTML in a Python file, i just didn't get the point, i'd rather write plain HTML and CSS like it's supposed to be done, it's the same time spent.

So my question is, as with CSS, does learning a front-end JS framework helps you deploy your apps faster once you get

/r/django
https://redd.it/ueu5dz
Saturday Daily Thread: Resource Request and Sharing! Daily Thread

Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?

Use this thread to chat about and share Python resources!

/r/Python
https://redd.it/ueyz7b
Just created my first pytest plugin: Pyshot!

Hey guys!

I created a pytest plugin called Pyshot. It is intended to facilitate screenshot taking during testcases using selenium, here are the links if you want to check it!

Package: https://pypi.org/project/pyshot/

Repo: https://github.com/anggelomos/pyshot

&#x200B;

Pyshot demo

/r/Python
https://redd.it/ufhzso
How to Set-up Jupyter notebook for C++ and Java.

I know there's a kernel xeus-cling for C++ but i guess it's not for windows. I've seen tutorials, tried with conda, pip but nothing helps. Can anyone give me a step by step tutorial please??

Thanks in advance

/r/JupyterNotebooks
https://redd.it/uf671w
Sunday Daily Thread: What's everyone working on this week?

Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.

/r/Python
https://redd.it/ufnesj
How To Monitor Open Source Trends With The OpenBB Terminal!

Admittedly, we are likely a little biased when it comes to open-source projects. The rest of the world may only be learning what OSS is because Elon Musk has been twatting about opening up the algorithm.

We all know the value, I don't need to sell y'all on it. When it comes to following projects, you can keep your ear even closer to the ground with the Open Source Menu of the OpenBB Terminal.

If you haven't already, the first thing you need to do is go to GitHub and star the OpenBB Terminal Repo.

OpenBB GitHub Repo

OpenBB GitHub Repo \(https:\/\/github.com\/OpenBB-finance\/OpenBBTerminal\)

While you're there, fork the repo and follow along!

Get To The OSS Menu

There are four commands to choose from in the OSS submenu:

rs: Repo Summary

(🦋) /alternative/oss/ $ rs -h
usage: rs -r REPO -h --export EXPORT --raw

Display a repo summary Source: https://api.github.com

optional arguments:
-r REPO, --repo REPO Repository to search for repo summary. Format: org/repo, e.g., openbb-finance/openbbterminal (default: None)
-h, --help

/r/Python
https://redd.it/ufrlwg
Hide sensitive information in PDF using Python and NLP

Cheers Python community!Just finished writing a module for PDF anonymization which detects sensitive information and hides it!

In a nutshell, here what it does (you can change the color of the boxes)

sample.jpg

Under the hood, it's all about pytesseract (for OCR) and transformers (for NER). I also used pdf2image for conversion and some RegEx.

I would appreciate if anyone tries to use! (or you can star the repository )
Feedback and reports a bug is highly welcomed!

I also did my best to write a comprehensive README.md, if you want to get started. So please check it out! GitHub Repo

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