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
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
Reloadium - Hot Reloading aka Edit and Continue for Python

​

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

More details here: https://github.com/reloadware/reloadium

Using is very simple. Just edit your file and hit save (Ctrl-S).

If you guys use PyCharm then you can try out the plugin:

https://plugins.jetbrains.com/plugin/18509-reloadium

It enables hot reloading capabilities in Python like changing code during debugging, fixing errors after exceptions occur, restarting current functions etc.

/r/Python
https://redd.it/ucbzry
A free tool to seed your dev database with real data

A bunch of developers and myself have created RepliByte - an open-source tool to seed a development database from a production database.

Features:

- Support data backup and restore for PostgreSQL, MySQL, and MongoDB
- Replace sensitive data with fake data
- Works on large database (> 10GB) (read Design)
- Database Subsetting: Scale down a production database to a more reasonable size
- Start a local database with the prod data in a single command
- On-the-fly data (de)compression (Zlib)
- On-the-fly data de/encryption (AES-256)
- Fully stateless (no server, no daemon) and lightweight binary
- Use custom transformers

My motivation:

As a developer, creating a fake dataset for running tests is tedious. Plus, it does not reflect real-world data and is painful to keep updated. If you prefer to run your app tests with production data. Then RepliByte is for you as well.

Available for MacOSX, Linux and Windows.

https://github.com/Qovery/replibyte

/r/django
https://redd.it/uc8rc5
Creating a web application that processes data

Will Django allow me to take my (already functional) python program and convert it to a web application that I can access locally for execution?

My program takes some user input(selecting things), processes some data in the background, organizes it in excel, then sends it to my printer. I've been working through some Django tutorials and I'm struggling to see where the Model/View/Template system will allow me to incorporate that functionality into the app?

/r/django
https://redd.it/ucjsrb
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