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
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/u8a5pq
Make a page password protected in flask

Also, I want to make each page's password unique. Like I can manually set the password for each page.

/r/flask
https://redd.it/u8ko4i
Unpopular opinion: Matplotlib is a bad library

I work with data using Python a lot. Sometimes, I need to do some visualizations. Sadly, matplotlib is the de-facto standard for visualization. The API of this library is a pain in the ass to work with. I know there are things like Seaborn which make the experience less shitty, but that's only a partial solution and isn't always easily available. Historically, it was built to imitate then-popular Matlab. But I don't like Matlab either and consider it's API and plotting capabilities very inferior to e.g. Wolfram Mathematica. Plus trying to port the already awkward Matlab API to Python made the whole thing double awkward, the whole library overall does not feel very Pythonic.

Please give a me better plotting libary that works seemlessly with Jupyter!

/r/Python
https://redd.it/u8j6fn
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/u915sx
copilot getting creepy

hey, yesterday I was making an auto reply bot with telethon (+ copilot)

I got a phone number as a suggestion in plain text , meaning that copilot does not have a 'personal info filter' or whatever.

Someone said that GitHub also used private repos to train copilot, well, let's hope that nobody gets a suggestion with my bybit api keys

https://preview.redd.it/i8mw9t26s2v81.jpg?width=384&format=pjpg&auto=webp&s=55d082b6ff58f8c9b1e527f424a72de9a88c3504

https://preview.redd.it/q3mhee6ir2v81.jpg?width=1354&format=pjpg&auto=webp&s=f2325cb1e6f144a9e6d571c3c86bae178e2ecfbd

/r/Python
https://redd.it/u9dobe
Question regarding parameters passed via Apache to Flask

Hello, I've posted another post just now regarding a web app I'm currently putting together. I want to make this web app available via Apache proxy to localhost:5000 (or whatever). I know how to do that. But what I'm not quite sure of yet is whether or not I can pass certain parameters from Apache to Flask.

Here's the situation: I want to put an Apache proxy before Flask and perform authentication there. Authentication will be done via OIDC and a Keycloak server. Apache receives "Claims" from the Keycloak server and can use them for access control. For example: require Claims "xyz"

Can I pass these claims on further to Flask in order to perform granular access control? So that people with claim "xyz" can get on the page, but only people with claim "123" can see special admin-only options?

/r/flask
https://redd.it/u9k347
Need some Help new here, Can Jypyter run Linux script on Windows?

Greetings Dear Guys,
I hope you all are doing great.

I've a very specific doubt, can I run Linux Script on a Windows machine with Jypyter?

I want to use a software ROOT by CERN, it says that ROOT can be used in Jypyter. But root has native support for Linux and MacOS, my question is can I use Linux Command Lines on Jypyter on Windows.
Or the only option is to use WSL?

​

Thanks in Advance

/r/JupyterNotebooks
https://redd.it/u8txt4
Questions regarding HTML tables in Flask

Hey all,

as a side project I'm building a prototype of a new version of a web app my company uses. It's a firewall policy viewer for people such as service managers or other server admins who don't have administrative access to our firewall infrastructure, but might need to see the policy structure for some reason or another.

The previous version was built a long time ago on php that uses archaic text parsing in order to literally read through backed up firewall configurations, parse all the information out and present a firewall ruleset view via HTML. Since the configs were backed up twice a day, the old viewer can only be accurate to those points in time.

My version is far sleeker and uses the firewall API to extract configuration information on the fly and present a live view. I've already gotten it to the point where I can choose a firewall, choose a virtual domain and list all firewall policies in a single big table. The above mentioned parameters firewall and virtual domain are passed along as URL parameters, so if you access the site with ?firewall=xxx&vdom=yyy you'll get the table straight away. Pretty nifty if I don't say so myself.

I'd

/r/flask
https://redd.it/u9jz0g
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/u9sdh3
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/uai5y5
Prebuilt frontend so I can focus on building the backend

so I am in the early stages in specialising in backend development but I am trying to search for a collection of front end code that are pre built visually wise but are a blank canvas when it comes to the backend which I can build using flask or express. I have made some basic todolists websites and a signup-login project that is connected to database that stores users in a table along with their hashed password. Users can then login or signup.

However, I believe I need to develop the backend on more complex apps without having the extra worry of developing the front end first. Frontend is something I respect and have basic knowledge of but I do not want to get into and I have figured that any future job would have a team of frontend devs and backend devs working together. Can anyone recommend me anything or give some advice?

/r/flask
https://redd.it/ub8sgg
Android Malware Analysis YARA with JupyterLab

アマヤラ (Android Malware Analysis YARA) Lab is a project that provides a
ready-to-use Jupyter Lab environment to help out with Android malware
analysis using YARA rules. Give a look at the GitHub repo!

/r/JupyterNotebooks
https://redd.it/uaaps4
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! If you're looking for project ideas, you might be interested in checking out Al Sweigart's, "The Big Book of Small Python Projects" which provides a list of projects and the code to make them work.

/r/Python
https://redd.it/ub7ugb
Django Freelancers

Hey guys, can you share with us your Freelance experience as a Django/Rest developer? How it started and on what Platform?

/r/django
https://redd.it/uby19a
I have a Django app running that allows users to make comments, users can delete comment objects, but how can i have an audit of everything? I want to allow everyone to be able to retrieve all deleted comments, so in other words, it would be a "fake deletion"



/r/django
https://redd.it/ubgz4l
SPA + Django Rest Framework API authentication for Microsoft Azure AD

Hi, I'm developing an Angular SPA + Django Rest Framework API and need to implement the sign-in flow for Microsoft Azure AD. The existing authentication is based on JWT tokens and it works fine. But now I don't know how to incorporate the new sign-in functionality - should I implement the sign-in and redirect directly on the Angular client-side and then pass the Azure AD token to DRF API to validate it somehow with Azure AD? Or is there some better practice for this?

/r/django
https://redd.it/uc1cf2
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/ubz9be
Robyn - A Python web framework with a Rust runtime - crossed 200k installs on PyPi

Hi Everyone! 👋

I wrote this blog to celebrate 200k install of Robyn. This blog documents the journey of Robyn so far and sheds some light on the future plans of Robyn.

I hope you all enjoy the read and share any feedback with me.

Blog Link: https://www.sanskar.me/hello\_robyn.html

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